rc3.org

Strong opinions, weakly held

XSS and WordPress Themes

Dave Smith just emailed to let me know that the theme I’m using is vulnerable to a cross-site scripting attack. He’s detailed the fix here, which I’ve applied. If you’re using depo-skinny, you’ll want to fix it as well.

2 Comments

  1. strip_tags()seems a bit harsh. Maybe htmlentities() would be nicer?

    Grepping the theme I use, WP seems to have a wp_specialchars() function of its own. I didn’t look at exactly how it does what it does, but that would unify all HTML output filtering through a single place.

  2. Thanks for telling us about it. Some of my sites have the same problem. Will fix it now.

Leave a Reply

Your email address will not be published.

*

© 2024 rc3.org

Theme by Anders NorenUp ↑