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

Shopify Input Validation

Shopify Input Validation
Posted Sep 14, 2015
Authored by Hadji Samir, Vulnerability Laboratory | Site vulnerability-lab.com

Shopify suffered from an input validation vulnerability.

tags | exploit
SHA-256 | 3b22718ee3a691098c84a1145c3a76387a4be88f853e0df123706369b26b2ff9

Shopify Input Validation

Change Mirror Download
Document Title:
Shopify Bug Bounty #8 - (FilePath) Persistent Vulnerability

References (Source):

Release Date:

Vulnerability Laboratory ID (VL-ID):

Common Vulnerability Scoring System:

Product & Service Introduction:
Shopify is a Canadian commerce company headquartered in Ottawa, Ontario that develops computer software for online stores and retail
point-of-sale systems. Shopify was founded in 2004, and was initially based on earlier software written by its founders for their online snowboard store.

(Copy of the Vendor Homepage: http://www.shopify.com/ )

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

Vulnerability Disclosure Timeline:
2015-08-09: Researcher Notification & Coordination (Hadji Samir - Evolution Security GmbH)
2015-08-11: Vendor Notification (Shopify - Security & Bug Bounty Team)
2015-08-13: Vendor Response/Feedback (Shopify - Security & Bug Bounty Team
2015-08-14: Vendor Fix/Patch (Shopify - Developer Team)
2015-09-04: Public Disclosure (Vulnerability Laboratory)

Discovery Status:

Affected Product(s):
Shopify Inc.
Product: Shopify - Online Service (Web-Application) 2015 Q3

Exploitation Technique:

Severity Level:

Technical Details & Description:
An application-side validation vulnerability has been discovered in the official Shopify online service web-application.
The vulnerability allows remote attackers to comrpomise user accounts by persistent malicious inject of script codes.

The vulnerability has been located in the `attachment%5Bfilepath` value of the `attachments` module POST method request. Remote attackers
are able to inject malicious script codes to the application-side of the online-service module. The request method to inject is POST and
the attack vector is located on the application-side of the service. The attacker manipulates via live session tamper the `attachment >
filepath` value to compromise the follow up application GET method requests.

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

Request Method(s):
[+] POST

Vulnerable Page:
[+] attachments

Vulnerable Parameter(s):
[+] attachment%5Bfilepath

Proof of Concept (PoC):
The persistent vulnerability can be exploited by remote attackers with low privilege application user account and low 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 in shopify ...
1. Installing the Digital Downloads App in *.myshopify.com
2. Install the app https://apps.shopify.com/digital-downloads
3. Select product and click Add Digital Attachment
4. Click to upload file and upload file with name <svg onload=alert(1)>
5. The code <svg onload=alert(1)> will execute XSS
Note: <span class="file-name"><strong>Success:</strong> <svg onload="alert(1)"/></span> [tested and verified with mozilla firefox]
6. Successful reproduce of the remote vulnerability!

--- PoC Session Logs [POST] ---
POST https://delivery.shopifyapps.com/attachments
Load Flags[LOAD_BYPASS_CACHE LOAD_BACKGROUND ] Content Size[-1] Mime Type[application/json]
Request Headers:
User-Agent[Mozilla/5.0 (X11; Linux i686; rv:18.0) Gecko/20100101 Firefox/18.0]
Accept-Encoding[gzip, deflate]
Content-Type[application/x-www-form-urlencoded; charset=UTF-8]
Post Data:
Response Headers:
Date[Fri, 14 Aug 2015 12:00:41 GMT]
Status[200 OK]
X-XSS-Protection[1; mode=block]
P3P[CP="Shopify does not support P3P."]
Content-Type[application/json; charset=utf-8]
Cache-Control[max-age=0, private, must-revalidate]
Set-Cookie[_delivery_session=dXVldzlGWkNkZHluMDE2SEt5N1RMeURnVDdnYU0rK3dlekVReHExTTBEMEdBdVJ0SDJvcVRXYUhxdGl3TVRCdlY1N1dGZ1FaTWNycVVzc0x6dmhTOVN5L05rcko5VGdLN3BRZFBVODVjWFhvTnBEUDFkc21yN2RkRjlGekdDYU9MdTY0UTBsZFhzUkE2R2ptMU95U25udS9iZGM5d3VlcTVFT3UrR2wyR2JRL3R1K1paeWRNcVdsTGloZ1N5WVZsZERDamY4MWsveldCcU5GTTM1cW01ZURKbXNCRzZia3RqRkgrY0lSd09yeEREQmR2a0dvaGc0V1hBWUhnclI1Zy92aDlHTnFYaFhlUVJzUjNGWUFhR1VGRXA5ZFhZQmNTNlVKNkU0VVBTc0pQSkdyWk4wczQ1N1dXQVZNcHFRM2ZjUmMyYmx0UU1uMzlyVEdBME1rKzhLYmxRLzQ5aWNEaHBMcFBKU091MC9VPS0tUXNpUkM1cks5NHp5ZWFZbTFIcDBPdz09--2d0ebbcf2adcca4a94ee12e732b4900085faa6e0; path=/; HttpOnly]
Via[1.1 vegur]


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

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: magazine.vulnerability-db.com - vulnerability-lab.com/contact.php - evolution-sec.com/contact
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 © 2015 | Vulnerability Laboratory - [Evolution Security GmbH]™

SERVICE: www.vulnerability-lab.com
CONTACT: research@vulnerability-lab.com
PGP KEY: http://www.vulnerability-lab.com/keys/admin@vulnerability-lab.com%280x198E9928%29.txt

Login or Register to add favorites

File Archive:

September 2022

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

Top Authors In Last 30 Days

File Tags


packet storm

© 2022 Packet Storm. All rights reserved.

Hosting By