TITLE: WordPress PHP Code Injection Vulnerability SECUNIA ADVISORY ID: SA20271 VERIFY ADVISORY: http://secunia.com/advisories/20271/ CRITICAL: Moderately critical IMPACT: System access WHERE: >From remote SOFTWARE: WordPress 2.x http://secunia.com/product/6745/ DESCRIPTION: rgod has discovered a vulnerability in WordPress, which can be exploited by malicious users to compromise a vulnerable system. Input passed to various fields when registering or updating the user profile isn't properly sanitised before being stored in PHP scripts in the wp-content/cache/userlogins/ and wp-content/cache/users/ directories inside the web root. This can be exploited to inject and execute arbitrary PHP code via the newline character. It is also possible to supply a spoofed IP address when registering by setting the "PC_REMOTE_ADDR" HTTP header. The vulnerability has been confirmed in version 2.0.2. Other versions may also be affected. SOLUTION: Restrict web access to the wp-content/cache/userlogins/ and wp-content/cache/users/ directories (e.g. with a .htaccess file). PROVIDED AND/OR DISCOVERED BY: rgod ORIGINAL ADVISORY: http://retrogod.altervista.org/wordpress_202_xpl.html ---------------------------------------------------------------------- About: This Advisory was delivered by Secunia as a free service to help everybody keeping their systems up to date against the latest vulnerabilities. Subscribe: http://secunia.com/secunia_security_advisories/ Definitions: (Criticality, Where etc.) http://secunia.com/about_secunia_advisories/ Please Note: Secunia recommends that you verify all advisories you receive by clicking the link. Secunia NEVER sends attached files with advisories. Secunia does not advise people to install third party patches, only use those supplied by the vendor. ---------------------------------------------------------------------- Unsubscribe: Secunia Security Advisories http://secunia.com/sec_adv_unsubscribe/?email=packet%40packetstormsecurity.org ----------------------------------------------------------------------