Critical XSS Flaws Patched In WordPress and Popular Plug-In
itwbennett writes The WordPress development team on Thursday released critical security updates that address an XSS vulnerability in the comment boxes of WordPress posts and pages. An attacker could exploit this flaw to create comments with malicious JavaScript code embedded in them that would get executed by the browsers of users seeing those comments. 'In the most obvious scenario the attacker leaves a comment containing the JavaScript and some links in order to put the comment in the moderation queue,' said Jouko Pynnonen, the security researcher who found the flaw.
This is why Slashdot shouldn't use unicode...
Sanitizing HTML input with regular expressions, what could possibly go wrong?
Follow the rats!
that this "security researcher"'s website doesn't render and doesn't do graceful degradation.
Why isn't everybody just running Slashcode? Would it be because the messaging system gets borked occasionally?
Hiiiii, can you fix please?
This is an appeal to all Web site designers.
Instead of scrambling to plug each hole, allow your users to protect themselves by browsing scriptless (and for another reason: cookieless).
I mean: do degrade the bling-bling, but degrade *gracefully*.
I browse scriptless (and for the most part cookieless) and from time to time stumble upon pages which turn up blank when Javascript is disabled. Those come into my blacklist (perhaps, one day I'll publish that blacklist).
WordPress is an unauthenticated remote shell that, as a useful side feature, also contains a blog.
Hmm, the humour and sarcasm seem to have been be lost on you.
There are some good PHP-based libraries like htmLawed to protect against such issues.
"New security updates released for the WordPress .. fix cross-site scripting (XSS) vulnerabilities that could allow attackers to take control of websites ."
Embedded javascript in a comment box could trigger exploits on Microsoft Internet Explorer running on Microsoft Windows desktops.
One highly underused technology is the Content Security Policy. It is supported in all major browsers, including IE10+.
With simple headers you can prevent anyone from using inline javascript or including scripts from non-whitelisted domains. For instance, the following headers would make inline scripts not execute, and only execute javascript from the whitelisted domains:
Content-Security-Policy: script-src 'self' www.google-analytics.com ajax.googleapis.com;
X-Content-Security-Policy: script-src 'self' www.google-analytics.com ajax.googleapis.com;
If projects like Wordpress would pick this up, it would make it very difficult to do XSS attacks.
onLoad=(yourscrewed)
No script tag there.
How about if I enter scrscriptipt? When you remove "script" from the middle, you end up with - script.
Removing stuff will pretty much never work. You have to htmlencode the output.
Do you mean to tell me that running overcomplicated garbage code on 10 million websites that uses 15 divs and 3 databases to draw the word "the" on the page might be vulnerable to cross site scripting? I never would have guessed! (I'm a by-hand HTML designer by the way).