WordPress post.php Multiple Variable XSS

2005-06-29T04:19:32
ID OSVDB:17636
Type osvdb
Reporter James Bercegay()
Modified 2005-06-29T04:19:32

Description

Vulnerability Description

WordPress contains a flaw that allows a remote cross site scripting attack. This flaw exists because the application does not validate the 'comment' and 'p' variables upon submission to the 'post.php' script. This could allow a user to create a specially crafted URL that would execute arbitrary code in a user's browser within the trust relationship between the browser and the server, leading to a loss of integrity.

Solution Description

Upgrade to version 1.5.1.3 or higher, as it has been reported to fix this vulnerability. An upgrade is required as there are no known workarounds.

Short Description

WordPress contains a flaw that allows a remote cross site scripting attack. This flaw exists because the application does not validate the 'comment' and 'p' variables upon submission to the 'post.php' script. This could allow a user to create a specially crafted URL that would execute arbitrary code in a user's browser within the trust relationship between the browser and the server, leading to a loss of integrity.

Manual Testing Notes

http://[target]/wp-admin/post.php?action=confirmdeletecomment&p=1&comment=22%3E%3Cscript%3Ealert(document.cookie)%3C/script%3E%3C/script%3E http://[target]/wp-admin/post.php?action=confirmdeletecomment&p=122%3E%3Cscript%3Ealert(document.cookie)%3C/script%3E%3C/script%3E&comment=2

References:

Vendor URL: http://wordpress.org/ Secunia Advisory ID:15831 Related OSVDB ID: 17637 Related OSVDB ID: 17639 Related OSVDB ID: 17640 Related OSVDB ID: 17641 Related OSVDB ID: 17638 Related OSVDB ID: 17642 Other Advisory URL: http://www.gulftech.org/?node=research&article_id=00085-06282005 Mail List Post: http://archives.neohapsis.com/archives/bugtraq/2005-06/0267.html ISS X-Force ID: 21227 CVE-2005-2107