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 |
| 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.
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
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
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 Latest Release Download
http://wordpress.org/latest.tar.gz
WordPress WordPress 1.2.2
-
WordPress WordPress Latest Release Download
http://wordpress.org/latest.tar.gz
References
Wordpress Multiple Cross-Site Scripting, HTML Injection, And SQL Injection Vulnerabilities
References:
References:
- WordPress 1.2.2 (WordPress)
- WordPress Homepage (WordPress)
- Multiple XSS Vulnerabilities in Wordpress 1.2.1 (Thomas Waldegger
) - Re: Wordpress 1.2.2 is still vulnerable (Thomas Waldegger
)