Description: Benjamin Flesch has discovered a vulnerability in WordPress, which can be exploited by malicious people to conduct cross-site scripting attacks.
Input passed to the "style" parameter in wp-admin/upload.php (when "post_id" is set to a negative integer value) is not properly sanitised before being returned to the user. This can be exploited to execute arbitrary HTML and script code in a user's browser session in context of an affected site.
Successful exploitation requires that the target user has valid author or higher credentials.
The vulnerability is confirmed in version 2.2.1. Prior versions may also be affected.
Solution: Update to version 2.2.2.
Provided and/or discovered by: Benjamin Flesch
Changelog: 2007-08-09: Added CVE reference.
2007-08-15: Updated "Solution" section.
If you have new information regarding this Secunia advisory or a product in our database, please send it to us using either our web form or email us at vuln@secunia.com.
Ideas, suggestions, and other feedback are most welcome.