Nmap Security Scanner
*Intro
*Ref Guide
*Install Guide
*Download
*Changelog
*Book
*Docs
Security Lists
*Nmap Hackers
*Nmap Dev
*Bugtraq
*Full Disclosure
*Pen Test
*Basics
*More
Security Tools
*Pass crackers
*Sniffers
*Vuln Scanners
*Web scanners
*Wireless
*Exploitation
*Packet crafters
*More
Site News
Site Search:
Exploit World
Advertising
About/Contact
Credits
Sponsors:
edgeos network security services platform







Bugtraq: Wordpress All versions XSS

Wordpress All versions XSS

From: <jcarlos.norte_at_gmail.com>
Date: 2 May 2007 00:11:20 -0000
('binary' encoding is not supported, stored as-is) Advisory by Jose Carlos Norte

Wordpress is vulnerable to XSS attacks when custom 404 pages are used by the template.

The problem (sidebar.php):

<form method="get" id="searchform" action="<?php echo $_SERVER['PHP_SELF']; ?>">

if wordpress template use custom 404 pages, like:

<?php get_header(); ?>

        <div id="content" class="narrowcolumn">

                <h2 class="center">Error 404 - Not Found</h2>

        </div>

<?php get_sidebar(); ?>

$_SERVER['PHP_SELF']; can contain special characters to break out html and perform XSS attacks, example:

http://www.example.com/index.php/"><script>alert(document.cookie)</script>

if no custom 404 page set by wordpress theme this attacks is not posible.
Received on May 02 2007

[ Nmap | Sec Tools | Mailing Lists | Site News | About/Contact | Advertising | Privacy ]