CVE-2024-4439
published 2024-05-03CVE-2024-4439: WordPress Core is vulnerable to Stored Cross-Site Scripting via user display names in the Avatar block in various versions up to 6.5.2 due to insufficient…
PriorityP358medium6.1CVSS 3.1
AVNACLPRNUIRSCCLILAN
EXPLOIT
EPSS
70.82%
99.3th percentile
WordPress Core is vulnerable to Stored Cross-Site Scripting via user display names in the Avatar block in various versions up to 6.5.2 due to insufficient output escaping on the display name. This makes it possible for authenticated attackers, with contributor-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page. In addition, it also makes it possible for unauthenticated attackers to inject arbitrary web scripts in pages that have the comment block present and display the comment author's avatar.
Affected
16 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | wordpress | < wordpress 6.1.9+dfsg1-0+deb12u1 (bookworm) | wordpress 6.1.9+dfsg1-0+deb12u1 (bookworm) |
| wordpress | wordpress | >= 0 < 6.1.9+dfsg1-0+deb12u1 | 6.1.9+dfsg1-0+deb12u1 |
| wordpress | wordpress | >= 0 < 6.5.2+dfsg1-1 | 6.5.2+dfsg1-1 |
| wordpress | wordpress | >= 0 < 6.5.2+dfsg1-1 | 6.5.2+dfsg1-1 |
| wordpress | wordpress | 6.0 – 6.0.7 | — |
| wordpress | wordpress | 6.1 – 6.1.5 | — |
| wordpress | wordpress | 6.2 – 6.2.4 | — |
| wordpress | wordpress | 6.3 – 6.3.3 | — |
| wordpress | wordpress | 6.4.0 – 6.4.3 | — |
| wordpress | wordpress | 6.5 – 6.5.1 | — |
| wordpress_foundation | wordpress | 6.0 – 6.0.7 | — |
| wordpress_foundation | wordpress | 6.1 – 6.1.5 | — |
| wordpress_foundation | wordpress | 6.2 – 6.2.4 | — |
| wordpress_foundation | wordpress | 6.3 – 6.3.3 | — |
| wordpress_foundation | wordpress | 6.4 – 6.4.3 | — |
| wordpress_foundation | wordpress | 6.5 – 6.5.1 | — |
Detection & IOCsextracted from sources · hover to see the quote
url/wp-admin/profile.php
url/wp-comments-post.php
command_wpnonce={{profile_nonce}}&first_name=%22+onmouseover%3Dalert%28document.domain%29%3B+%2F%2F&last_name=&nickname=admin&display_name=%22+onmouseover%3Dalert%28document.domain%29%3B+%2F%2F&email=admin%40gmail.com&action=update&user_id={{userid}}&submit=Update+Profile
commandcomment=Unauthenticated+Comment&author=%22+onmouseover%3Dalert%28document.domain%29%3B+%2F%2F&email=example%40gmail.com&url=example.com&submit=Post+Comment&comment_post_ID={{postid}}
otheraria-label="(" onmouseover=alert(document.domain);
- →Detect XSS payload injection in WordPress display_name or comment author fields: look for URL-encoded quote+event-handler pattern (%22+onmouseover%3D) in POST body to /wp-admin/profile.php or /wp-comments-post.php
- →Monitor POST requests to /wp-comments-post.php where the author parameter contains URL-encoded quote characters followed by event handlers, indicating unauthenticated XSS via comment author avatar
- →In rendered page responses, detect the XSS trigger string in aria-label attributes of avatar blocks as evidence of successful injection
- →Authenticated attackers require contributor-level access or above; unauthenticated attackers can exploit via pages with the comment block that displays comment author's avatar ↗
- ·Vulnerability affects WordPress Core versions up to 6.5.2; patched in 6.5.2+dfsg1-1 (Debian forky/sid/trixie) and 6.1.9+dfsg1-0+deb12u1 (bookworm) ↗
- ·The XSS is stored and triggers on page load for any visitor accessing a page with an injected Avatar block or comment block showing the malicious author avatar — not just on profile edit ↗
CVSS provenance
nvdv3.16.1MEDIUMCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
osv6.1MEDIUM
vendor_debian7.2HIGH
CVEs like this are exactly what “Exploited This Week” covers.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
OSV
CVE-2024-4439: WordPress Core is vulnerable to Stored Cross-Site Scripting via user display names in the Avatar block in various versions up to 6
osv·2024-05-03·CVSS 6.1
CVE-2024-4439 [MEDIUM] CVE-2024-4439: WordPress Core is vulnerable to Stored Cross-Site Scripting via user display names in the Avatar block in various versions up to 6
WordPress Core is vulnerable to Stored Cross-Site Scripting via user display names in the Avatar block in various versions up to 6.5.2 due to insufficient output escaping on the display name. This makes it possible for authenticated attackers, with contributor-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page. In addition, it also makes it possible for unauthenticated attackers to inject arbitrary web scripts in pages that have the comment block present and display the comment author's avatar.
GHSA
GHSA-682x-vcqv-v7v6: WordPress Core is vulnerable to Stored Cross-Site Scripting via user display names in the Avatar block in various versions up to 6
ghsa_unreviewed·2024-05-03
CVE-2024-4439 [HIGH] CWE-80 GHSA-682x-vcqv-v7v6: WordPress Core is vulnerable to Stored Cross-Site Scripting via user display names in the Avatar block in various versions up to 6
WordPress Core is vulnerable to Stored Cross-Site Scripting via user display names in the Avatar block in various versions up to 6.5.2 due to insufficient output escaping on the display name. This makes it possible for authenticated attackers, with contributor-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page. In addition, it also makes it possible for unauthenticated attackers to inject arbitrary web scripts in pages that have the comment block present and display the comment author's avatar.
Debian
CVE-2024-4439: wordpress - WordPress Core is vulnerable to Stored Cross-Site Scripting via user display nam...
vendor_debian·2024·CVSS 7.2
CVE-2024-4439 [HIGH] CVE-2024-4439: wordpress - WordPress Core is vulnerable to Stored Cross-Site Scripting via user display nam...
WordPress Core is vulnerable to Stored Cross-Site Scripting via user display names in the Avatar block in various versions up to 6.5.2 due to insufficient output escaping on the display name. This makes it possible for authenticated attackers, with contributor-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page. In addition, it also makes it possible for unauthenticated attackers to inject arbitrary web scripts in pages that have the comment block present and display the comment author's avatar.
Scope: local
bookworm: resolved (fixed in 6.1.9+dfsg1-0+deb12u1)
bullseye: resolved
forky: resolved (fixed in 6.5.2+dfsg1-1)
sid: resolved (fixed in 6.5.2+dfsg1-1)
trixie: resolved (fixed in 6.5.2+dfsg1-1)
No detection rules found.
Nuclei
WordPress Core <6.5.2 - Cross-Site Scripting
nuclei·CVSS 6.1
CVE-2024-4439 [MEDIUM] WordPress Core <6.5.2 - Cross-Site Scripting
WordPress Core ","status":"publish"}
- |
GET /wp-admin/profile.php HTTP/1.1
Host: {{Hostname}}
- |
POST /wp-admin/profile.php HTTP/1.1
Host: {{Hostname}}
Content-Type: application/x-www-form-urlencoded
_wpnonce={{profile_nonce}}&first_name=%22+onmouseover%3Dalert%28document.domain%29%3B+%2F%2F&last_name=&nickname=admin&display_name=%22+onmouseover%3Dalert%28document.domain%29%3B+%2F%2F&email=admin%40gmail.com&action=update&user_id={{userid}}&submit=Update+Profile
- |
GET wp-login.php?action=logout&_wpnonce={{logout_nonce}} HTTP/1.1
Host: {{Hostname}}
- |
POST /wp-comments-post.php HTTP/1.1
Host: {{Hostname}}
Content-Type: application/x-www-form-urlencoded
comment=Unauthenticated+Comment&author=%22+onmouseover%3Dalert%28document.domain%29%3B+%2F%2F&email=example%40gmail.com&url=exampl
No writeups or analysis indexed.
https://core.trac.wordpress.org/changeset/57951/branches/6.4/src/wp-includes/blocks/avatar.phphttps://core.trac.wordpress.org/changeset?sfp_email=&sfph_mail=&reponame=&old=57950%40%2F&new=57950%40%2F&sfp_email=&sfph_mail=#file3https://wordpress.org/news/2024/04/wordpress-6-5-2-maintenance-and-security-release/https://www.wordfence.com/blog/2024/04/unauthenticated-stored-cross-site-scripting-vulnerability-patched-in-wordpress-core/https://www.wordfence.com/threat-intel/vulnerabilities/id/e363c09a-4381-4b3a-951c-9a0ff5669016?source=cvehttps://core.trac.wordpress.org/changeset/57951/branches/6.4/src/wp-includes/blocks/avatar.phphttps://core.trac.wordpress.org/changeset?sfp_email=&sfph_mail=&reponame=&old=57950%40%2F&new=57950%40%2F&sfp_email=&sfph_mail=#file3https://wordpress.org/news/2024/04/wordpress-6-5-2-maintenance-and-security-release/https://www.wordfence.com/blog/2024/04/unauthenticated-stored-cross-site-scripting-vulnerability-patched-in-wordpress-core/https://www.wordfence.com/threat-intel/vulnerabilities/id/e363c09a-4381-4b3a-951c-9a0ff5669016?source=cve
2024-05-03
Published