header-logo
Suggest Exploit
vendor:
Gadget Works Online Ordering System
by:
Vinay H C
8.8
CVSS
HIGH
Stored Cross-site scripting(XSS)
79
CWE
Product Name: Gadget Works Online Ordering System
Affected Version From: 1.0
Affected Version To: 1.0
Patch Exists: YES
Related CWE: N/A
CPE: cpe:a:sourcecodester:gadget_works_online_ordering_system:1.0
Metasploit: N/A
Other Scripts: N/A
Platforms Tested: Windows 10/XAMPP
2021

Gadget Works Online Ordering System 1.0 – ‘Category’ Persistent Cross-Site Scripting (XSS)

This vulnerability can result in the attacker to inject the XSS payload in the add Category field of the page and each time any user will open the website, the XSS triggers and attacker can able to steal the cookie according to the crafted payload.

Mitigation:

1) Input validation should be done on the server-side. 2) Sanitize the user input before storing it in the database. 3) Use the latest version of the software. 4) Use the latest security patches.
Source

Exploit-DB raw data:

# Exploit Title: Gadget Works Online Ordering System 1.0 - 'Category' Persistent Cross-Site Scripting (XSS)
# Date: 24-05-2021
# Exploit Author: Vinay H C
# Vendor Homepage: https://www.sourcecodester.com/
# Software Link: https://www.sourcecodester.com/php/13093/gadget-works-online-ordering-system-phpmysqli.html
# Version: 1.0
# Tested on: Windows 10/XAMPP

Stored Cross-site scripting(XSS):
Stored XSS, also known as persistent XSS, is the more damaging of the two. It occurs when a malicious script is injected directly into a vulnerable web application.

Attack Vector :

This vulnerability can result in the attacker to inject the XSS payload in the add Category field of the page and each time any user will open the website, the XSS triggers and attacker can able to steal the cookie according to the crafted payload.

Vulnerable Parameters: +New==>Category input field.

Payload : <script>alert(document.domain)</script>

Vulnerable URL :
http://localhost/philosophy/admin/category/index.php?view=add

Steps To Reproduce :
1) Go to the admin Dashboard
2) Click on New and select Category..
3) Put Payload into the 'Add Category' parameter.
4) Click on Save.
5) XSS payload will be triggered.