Wordpress Multiple Cross-Site Scripting, HTML Injection, And SQL Injection Vulnerabilities

BID:11984

Info

Wordpress Multiple Cross-Site Scripting, HTML Injection, And SQL Injection Vulnerabilities

Bugtraq ID: 11984
Class: Input Validation Error
CVE:
Remote: Yes
Local: No
Published: Dec 16 2004 12:00AM
Updated: Dec 16 2004 12:00AM
Credit: Thomas Waldegger <[email protected]> disclosed these vulnerabilities.
Vulnerable: WordPress WordPress 1.2.2
WordPress WordPress 1.2.1
+ Gentoo Linux
Not Vulnerable:

Discussion

Wordpress Multiple Cross-Site Scripting, HTML Injection, And SQL Injection Vulnerabilities

Wordpress is reported vulnerable to multiple cross-site scripting, HTML injection, and SQL injection vulnerabilities. These issues are due to a lack of proper sanitization of user-supplied data.

The cross-site scripting and HTML injection issues could permit a remote attacker to create a malicious URI link, or post data to the affected application that includes hostile HTML and script code. If this link were to be followed, or resulting pages were to be viewed, the hostile code may be rendered in the web browser of the victim user. This would occur in the security context of the affected web site and may allow for theft of cookie-based authentication credentials or other attacks.

An attacker may exploit the SQL injection issues to manipulate SQL queries to the underlying database. This may facilitate theft of sensitive information, potentially including authentication credentials, and data corruption.

Update: These vulnerabilities were originally reported to affect Wordpress 1.2.1. Subsequent to the release of this BID, the vendor released Wordpress 1.2.2 to address these issues. It is reported that version 1.2.2 is still vulnerable to some of these issues. Wordpress 1.2.2 is being removed as an invulnerable package and the vulnerabilities affecting version 1.2.2 are described in Wordpress Multiple Cross-Site Scripting and SQL Injection Vulnerabilities (BID 12066). A message reference with more information is attached to this BID as well.

Exploit / POC

Wordpress Multiple Cross-Site Scripting, HTML Injection, And SQL Injection Vulnerabilities

Example URIs have been provided:

Cross-site scripting examples:
http://www.example.com/wp-admin/edit-comments.php?s=[XSS]
http://www.example.com/wp-admin/edit-comments.php?s=bla&submit=Search&mode=[XSS]
http://www.example.com/wp-admin/templates.php?file=[XSS]
http://www.example.com/wp-admin/link-add.php?linkurl=[XSS]
http://www.example.com/wp-admin/link-add.php?name=[XSS]
http://www.example.com/wp-admin/link-categories.php?cat_id=[XSS]&action=Edit
http://www.example.com/wp-admin/link-manager.php?order_by=[XSS]
http://www.example.com/wp-admin/link-manager.php?cat_id=[XSS]
http://www.example.com/wp-admin/link-manager.php?action=linkedit&link_url=[XSS]
http://www.example.com/wp-admin/link-manager.php?action=linkedit&link_name=[XSS]
http://www.example.com/wp-admin/link-manager.php?action=linkedit&link_description=[XSS]
http://www.example.com/wp-admin/link-manager.php?action=linkedit&link_rel=[XSS]
http://www.example.com/wp-admin/link-manager.php?action=linkedit&link_image=[XSS]
http://www.example.com/wp-admin/link-manager.php?action=linkedit&link_rss_uri=[XSS]
http://www.example.com/wp-admin/link-manager.php?action=linkedit&link_notes=[XSS]
http://www.example.com/wp-admin/link-manager.php?action=linkedit&link_id=[XSS]
http://www.example.com/wp-admin/link-manager.php?action=linkedit&order_by=[XSS]
http://www.example.com/wp-admin/link-manager.php?action=linkedit&cat_id=[XSS]
http://www.example.com/wp-admin/post.php?content=[XSS]
http://www.example.com/wp-admin/moderation.php?action=update&item_approved=[XSS]

SQL injection examples:
http://www.example.com/index.php?m=[SQL]
http://www.example.com/wp-admin/edit.php?m=[SQL]
http://www.example.com/wp-admin/link-categories.php?cat_id=[SQL]&action=Edit

Solution / Fix

Wordpress Multiple Cross-Site Scripting, HTML Injection, And SQL Injection Vulnerabilities

Solution:
Gentoo has released an advisory to provide updates for these issues. Updates may be appplied by running the following commands as the superuser:

emerge --sync
emerge --ask --oneshot --verbose ">=www-apps/wordpress-1.2.2"

The vendor has released version 1.2.2 of the affected package to resolve these issues, however, it is reported that the new version only fixes some of the issues described in this BID. Please see the attached message reference and BID 12066 for more information.


WordPress WordPress 1.2.1

WordPress WordPress 1.2.2

References

Wordpress Multiple Cross-Site Scripting, HTML Injection, And SQL Injection Vulnerabilities

References:

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report