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.
Sanitizing HTML input with regular expressions, what could possibly go wrong?
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).
The real question is, Why is anybody still runing WordPress?
"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.
The real question is, Why is anybody still runing WordPress?
Because Drupal has security flaws, too.
Not everyone wants to write their own CMS and deal with the security issues. Wordpress probably is the absolutely worst choice, though.
"You're right," Fisheye says. "I should have set it on 'whip' or 'chop.'"
Because it's very easy to use for people with their own domain but little tech knowledge, it has a massive amount of themes and plugins to choose from (which I admit can be a problem) and it has much less security issues than any comparable CMS.
I've worked with hosting abuse for a long time, and it's fairly rare to see a hacked WP nowadays - unless the owner of the site has turned off auto-updating. Hacked Joomla-, modX- or Drupal-sites are much more common.
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.
The real question is, Why is anybody still runing WordPress?
Yeah, nearly a quarter of the Internet runs it...what imbeciles!
http://w3techs.com/technologie...
Why not? I'm using it for a couple of my sites. Comments must be approved by me and I've locked down access to the admin directory to only accept logins from my home machine.
Instead of saying "Why?", provide suggestions as to a good replacement.
"WordPress has so many security holes mostly due to unsecure themes and plugins. Why not use Drupal or at least make sure you follow these steps to secure your site."
It's just annoying to hear "what a piece of shit, what idiot uses [whatever you don't particularly like]?" Folks like me will simply disregard your comment as unhelpful and continue using whatever software (or Wine or Whiskey or Car or Programming Language or Beer or Blog Software or Linux distro (or BSD distro)) you don't particularly like.
[John]
Shit better not happen!
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).