{"id":58407,"date":"2024-07-23T18:30:09","date_gmt":"2024-07-23T15:30:09","guid":{"rendered":"https:\/\/packetstormsecurity.com\/files\/179651\/ppdbonline13-redirectdisclose.txt"},"modified":"2024-07-23T18:30:09","modified_gmt":"2024-07-23T15:30:09","slug":"ppdb-online-1-3-administrative-page-disclosure","status":"publish","type":"post","link":"https:\/\/afaghhosting.net\/blog\/ppdb-online-1-3-administrative-page-disclosure\/","title":{"rendered":"PPDB ONLINE 1.3 Administrative Page Disclosure"},"content":{"rendered":"<p>====================================================================================================================================<br \/>| # Title : PPDB ONLINE V.1.3 HTML Form in redirect page Vulnerability |<br \/>| # Author : indoushka |<br \/>| # Tested on : windows 10 Fr(Pro) \/ browser : Mozilla firefox 125.0.1 (64 bits) |<br \/>| # Vendor : https:\/\/berkas.siap-ppdb.com\/ |<br \/>====================================================================================================================================<\/p>\n<p>poc :<\/p>\n[+] Dorking \u0130n Google Or Other Search Enggine.<\/p>\n[+] Vulnerability description :<\/p>\n<p>An HTML form was found in the response body of this page. However, the current page redirects the visitor to another page by returning an HTTP status code of 301\/302.<br \/>Therefore, all browser users will not see the contents of this page and will not be able to interact with the HTML form. <\/p>\n<p>Sometimes programmers don&#8217;t properly terminate the script after redirecting the user to another page. For example: <br \/>&lt;?php<br \/>if (!isset($_SESSION[&#8220;authenticated&#8221;])) {<br \/>header(&#8220;Location: auth.php&#8221;);<br \/>}<br \/>?&gt;<br \/>&lt;title&gt;Administration page&lt;\/title&gt;<br \/>&lt;form action=&#8221;\/admin\/action&#8221; method=&#8221;post&#8221;&gt;<br \/>&lt;!&#8211; &#8230; form inputs &#8230; &#8211;&gt;<br \/>&lt;\/form&gt;<\/p>\n<p>&lt;!&#8211; &#8230; the rest of the administration page &#8230; &#8211;&gt;<br \/>This script is incorrect because the script is not terminated after the &#8220;header(&#8220;Location: auth.php&#8221;);&#8221; line. An attacker can access the content the administration page by using an HTTP client that doesn&#8217;t follow redirection (like HTTP Editor). This creates an authentication bypass vulnerability. <br \/>The correct code would be <\/p>\n<p>&lt;?php<br \/>if (!isset($_SESSION[auth])) {<br \/>header(&#8220;Location: auth.php&#8221;);<br \/>exit();<br \/>}<br \/>?&gt;<br \/>&lt;title&gt;Administration page&lt;\/title&gt;<br \/>&lt;form action=&#8221;\/admin\/action&#8221; method=&#8221;post&#8221;&gt;<br \/>&lt;!&#8211; &#8230; form inputs &#8230; &#8211;&gt;<br \/>&lt;\/form&gt;<\/p>\n<p>&lt;!&#8211; &#8230; the rest of the administration page &#8230; &#8211;&gt;<\/p>\n[+] infected item : \/pass. <\/p>\n[+] Attack details :<\/p>\n<p>Form action=&#8221;<\/p>\n<p>GET \/pass\/ HTTP\/1.1<br \/>Pragma: no-cache<br \/>Cache-Control: no-cache<br \/>Referer: https:\/\/127.0.0.1\/elearning7.smpn49-jkt.sch.id\/pass<br \/>Acunetix-Aspect: enabled<br \/>Acunetix-Aspect-Password: 082119f75623eb7abd7bf357698ff66c<br \/>Acunetix-Aspect-Queries: filelist;aspectalerts<br \/>Cookie: PHPSESSID=dc1a2974e1afffa5b1926d0e4f3ff57f<br \/>Host: elearning7.smpn49-jkt.sch.id<br \/>Connection: Keep-alive<br \/>Accept-Encoding: gzip,deflate<br \/>User-Agent: Mozilla\/5.0 (Windows NT 6.1; WOW64) AppleWebKit\/537.21 (KHTML, like Gecko) Chrome\/41.0.2228.0 Safari\/537.21<br \/>Accept: *\/*<\/p>\n<p>Response<br \/>HTTP\/1.1 302 Found<br \/>Connection: Keep-Alive<br \/>Keep-Alive: timeout=5, max=100<br \/>x-powered-by: PHP\/7.3.33<br \/>location: https:\/\/127.0.0.1\/elearning7.smpn49-jkt.sch.id\/login.php<br \/>content-type: text\/html; charset=UTF-8<br \/>content-length: 16992<br \/>vary: Accept-Encoding,User-Agent<br \/>date: Fri, 19 Jul 2024 10:09:49 GMT<br \/>server: LiteSpeed<br \/>cache-control: no-cache, no-store, must-revalidate, max-age=0<br \/>platform: hostinger<br \/>strict-transport-security: max-age=31536000; includeSubDomains; preload<br \/>x-xss-protection: 1; mode=block<br \/>x-content-type-options: nosniff<br \/>Original-Content-Encoding: gzip<\/p>\n[+] The impact of this vulnerability : depends on the affected web application.<\/p>\n[+] How to fix this vulnerability : Make sure the script is terminated after redirecting the user to another page<\/p>\n<p>Greetings to :==================================================<br \/>jericho * Larry W. Cashdollar * LiquidWorm * Hussin-X * D4NB4R |<br \/>================================================================<\/p>\n","protected":false},"excerpt":{"rendered":"<p>====================================================================================================================================| # Title : PPDB ONLINE V.1.3 HTML Form in redirect page Vulnerability || # Author : indoushka || # Tested on : windows 10 Fr(Pro) \/ browser : Mozilla firefox 125.0.1 (64 bits) || # Vendor : https:\/\/berkas.siap-ppdb.com\/ |==================================================================================================================================== poc : [+] Dorking \u0130n Google Or Other Search Enggine. [+] Vulnerability description : An &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-58407","post","type-post","status-publish","format-standard","hentry","category-vulnerability"],"_links":{"self":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/58407","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=58407"}],"version-history":[{"count":0,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/58407\/revisions"}],"wp:attachment":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/media?parent=58407"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/categories?post=58407"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/tags?post=58407"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}