{"exploit":{"id":"EDB-49469","name":"CASAP Automated Enrollment System 1.0 - 'First Name' Authenticated Stored Cross-Site Scripting (XSS)","description":"CASAP Automated Enrollment System 1.0 - 'First Name' Authenticated Stored Cross-Site Scripting (XSS)","cves":["CVE-2021-3294"],"author":"Anita Gaud","published":"2021-01-25","platform":"php","type":"webapps","language":"Text","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/49469","path":"exploits/php/webapps/49469.txt","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-49469.txt","vulnerabilities":[{"id":"CVE-2021-3294","state":"PUBLISHED","title":null,"titleSource":null,"description":"CASAP Automated Enrollment System 1.0 is affected by cross-site scripting (XSS) in users.php. An attacker can steal a cookie to perform user redirection to a malicious website.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2021-3294","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-3294"},"updatedAt":"2026-07-09T00:13:37.771Z","retrievedAt":"2026-11-27T15:12:10.269Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-49469.png?v=2","url":"https://exploitbin.com/exploits/EDB-49469","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-49469/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-49469/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"# Exploit Title: CASAP Automated Enrollment System 1.0 - 'First Name' Stored XSS\n# Exploit Author: Anita Gaud\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\n# Tested on Windows\n# CVE: CVE-2021-3294\n\n*XSS IMPACT:*\n1: Steal the cookie\n2: User redirection to a malicious website\n\nVulnerable Parameters: First Name\n\n*Steps to reproduce:*\n1: Log in with a valid username and password. Navigate to the Users tab (http://localhost/Final/Final/users.php) on the left-hand side.\n2: Add the new user and then add the payload <script>alert(document.cookie)</script>in First Name parameter and click on save button. Post Saved successfully.\n3: Now, XSS will get stored and trigger every time and the attacker can steal authenticated users' cookies.","sha256":"ed63ea419bdeab62f7c0e256ae6b1e21826b28a4a89fed9e0c771fce6d7e9cf9","bytes":949,"fetchedAt":"2026-11-27T15:12:09.967Z","encoding":"utf-8 (display only; download retains original bytes)"}