WordPress XSS And What Can You Do About It

Dec 10th, 09 by Jeff Orloff | View Comments |
You maybe interested in our latest article Personal Facebook Fan Pages of Celebrities.

Just recently, WordPress released 2.8.6 with a critical security update that patches a cross-site scripting vulnerability found by Benjamin Flesch. That’s right, the same kid who discovered a way to patch your WordPress blog by exploiting a similar XSS vulnerability has found another.

Cross-site scripting

When I started working more with web application security, I was amazed at the amount of web developers who are unaware of all the possible entry points the applications they develop have. Of these vulnerabilities, cross-site scripting (or XSS) still leads the pack according to WhiteHat Security.

A cross-site scripting vulnerability takes place when an attacker injects a client-side script into a web page. This attack can be used to bypass access controls, steal cookies, and hijack an active session to steal sensitive information.



What does this have to do with WordPress

So you have been running a pretty successful blog for the past couple of years. You don’t store credit card data or social security numbers, so what’s the big deal right? After all, no one is going to try to break into your database to read your posts right? If only it were that easy.

Exploiting an XSS vulnerability, an attacker can upload a link containing malicious content in a comment on your blog. When an unsuspecting user clicks on this link, the attacker is able to collect data from the unsuspecting visitor who clicked on the link. Your blog serving as the springboard to the attack.

What can you do about it?

Of course, upgrading your WordPress blog to 2.8.6 will address the immediate problem found in this vulnerability. However, this isn’t the last XSS vulnerability that will be found on WordPress, or any other popular web-based application.

To better protect your blog, a few simple steps can be taken:

  • Always keep your WordPress software up-to-date. Most of the time, critical updates are released to address security issues such as XSS vulnerabilities.
  • Make sure that any plug-ins or widgets you install are free of XSS vulnerabilities. Third-party add-ons can be full of vulnerabilities if the developer has not taken care to ensure that all input is validated and escaped (http://www.w3.org/TR/charmod/#sec-Escaping).
  • Take care to make sure any themes you use for your blog are not vulnerable to XSS exploits. Themes, like plug-ins and widgets, that have been created be people who may not even know that a vulnerability exists. You can check themes for these exploits by accessing http://<blog-URL>/index.php/index.php/”><script>alert()</script> . If an alert window opens, the theme is vulnerable. You can find more about this check from The H Security.
We regularly update articles about resources, tutorials and Wordpress to help designers and developers. If you are new to WebDesignBooth, why not subscribe to our RSS feed and get the latest updates immediately. You can also subscribe through email or follow us on Twitter.
Jeff Orloff wrote this on behalf of Tophost.gr, a Greek web hosting company.
  • Md. Mizwan

    this article was helpful for me…….

  • http://www.bigthink.it/rubriche/il-meglio-della-settimana-42/ Il meglio della settimana #42 | BigThink

    [...] WordPress XSS and what can you do about it Aumentare la sicurezza di WordPress, facendo attenzione agli attacchi XSS [...]

  • http://ysdetector.com Yahoo! Detector

    yes, I absolutely agree with you, I am working on it too! thanks.

  • http://www.afiffattouh.com/web-design/manage-your-blog%e2%80%99s-content-with-two-simple-wordpress-hacks Manage Your Blog’s Content with Two Simple WordPress Hacks | Afif Fattouh – Web Specialist

    [...] WordPress XSS And What Can You Do About It [...]

  • http://www.bizimhost.biz/wordpress/manage-your-blog%e2%80%99s-content-with-two-simple-wordpress-hacks/ Manage Your Blog’s Content with Two Simple WordPress Hacks | Bizimhost.biz

    [...] WordPress XSS And What Can You Do About It [...]

  • http://www.afiffattouh.com/web-design/wordpress-usability-plugins-that-make-your-blog-more-visitor-friendly WordPress Usability: Plugins That Make Your Blog More Visitor Friendly | Afif Fattouh – Web Specialist

    [...] WordPress XSS And What Can You Do About It [...]

  • http://delicious.com/Louisa.Podkowka Yael Flink

    Thanks lots, I have found this article extremely nice!

  • http://heart5.com/?p=1650 StatPressCN,1.9.1版本(修复安全漏洞,请紧急升级) | 天高云淡

    [...] 赶紧检查相关代码,果不其然,此问题确实存在。最后参阅WordPress XSS And What Can You Do About It文章解决之。 [...]

  • Guest

    javascript:alert(“XSS”);

blog comments powered by Disqus