{"id":58254,"date":"2024-07-17T21:31:43","date_gmt":"2024-07-17T18:31:43","guid":{"rendered":"https:\/\/packetstormsecurity.com\/files\/179583\/hmsp1-sql.txt"},"modified":"2024-07-17T21:31:43","modified_gmt":"2024-07-17T18:31:43","slug":"hospital-management-system-project-in-asp-net-mvc-1-sql-injection","status":"publish","type":"post","link":"https:\/\/afaghhosting.net\/blog\/hospital-management-system-project-in-asp-net-mvc-1-sql-injection\/","title":{"rendered":"Hospital Management System Project In ASP.Net MVC 1 SQL Injection"},"content":{"rendered":"<p># Exploit Title: Hospital Management System Project in ASP.Net MVC &#8211; SQL<br \/>Injection \/ Authentication Bypass<br \/># Date: 07\/16\/2024<br \/># Exploit Author: 0xMykull<br \/># Vendor Hompage:<br \/>https:\/\/itsourcecode.com\/free-projects\/asp\/hospital-management-system-project-in-asp-net-mvc-with-source-code\/<br \/># Software Link:<br \/>https:\/\/itsourcecode.com\/free-projects\/asp\/hospital-management-system-project-in-asp-net-mvc-with-source-code\/<br \/># Version: 1<br \/># CVE: CVE-2024-40502<\/p>\n<p>Description:<br \/>An SQL injection vulnerability has been discovered in the btn_login_b_Click<br \/>function of the affected web application. The vulnerability exists due to<br \/>the improper sanitization of user-supplied input in the login form.<br \/>Specifically, the txt_login_username.Text and txt_login_pass.Text fields<br \/>are concatenated directly into an SQL query string without proper<br \/>parameterization or escaping.<\/p>\n<p>Endpoint: https:\/\/localhost:44306\/Users\/Loginpage.aspx<\/p>\n<p>Bypass Payloads:<\/p>\n<p>(default user)<br \/>Username: kihsan&#8217;&#8211;<br \/>password: &lt;anything&gt;<\/p>\n<p>Username: &lt;anyvaliduser&gt;&#8217;&#8211;<br \/>password: &lt;anything&gt;<\/p>\n","protected":false},"excerpt":{"rendered":"<p># Exploit Title: Hospital Management System Project in ASP.Net MVC &#8211; SQLInjection \/ Authentication Bypass# Date: 07\/16\/2024# Exploit Author: 0xMykull# Vendor Hompage:https:\/\/itsourcecode.com\/free-projects\/asp\/hospital-management-system-project-in-asp-net-mvc-with-source-code\/# Software Link:https:\/\/itsourcecode.com\/free-projects\/asp\/hospital-management-system-project-in-asp-net-mvc-with-source-code\/# Version: 1# CVE: CVE-2024-40502 Description:An SQL injection vulnerability has been discovered in the btn_login_b_Clickfunction of the affected web application. The vulnerability exists due tothe improper sanitization of user-supplied input in the &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[26],"tags":[],"class_list":["post-58254","post","type-post","status-publish","format-standard","hentry","category-vulnerability"],"_links":{"self":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/58254","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/comments?post=58254"}],"version-history":[{"count":0,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/58254\/revisions"}],"wp:attachment":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/media?parent=58254"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/categories?post=58254"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/tags?post=58254"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}