Skip to main content

[FIX] Opencart leak of database information on database connection error

Opencart have a serious leak of database informations when there's a database connection error.

The fix/workaround can be downloaded here


Is it a problem?

With a simple script I got ~800.000 results and I've been able to scrap more than ~30.000 (in hours due to google limitations) and dumped more than 500 complete databases (those without restrictions from remote connections).
From accessing the db several things can be done, even writing files, replacing informations (ex. malicious scripts, the paypal account, etc), getting more rights, etc.

I just proved that it can be done and nothing else.

 ----------------------------

 
You can add the domain TLD to have more results from google. I even found some important websites.
 

something like that

https://www.google.com/search?q=system\library\db.php(31):+DB\MySQLi->__construct(


I took the first results from my search (and replaced the passwords):

berardomacchine.com

'89.46.111.189', 'Sql1428497', '####',...

 

sabrytendedasole.com

 /home/lzvmcffn/public_html

'localhost', 'lzvmcffn_opencv...',  '####', ...

 

  moves-consulting.com

/users/auraqt/movesconsulting/shop/

'sql616.your-ser...', 'mconsulting',  '####', ...




NOTE: I didn't (mis)use any information. The current post is meant to understand the problem and to give you a simple solution. I'm not interested in other people data and I wouldn't use it even if I possibly have interests in it.

Comments

Popular posts from this blog

Moodle 3.8.1+ - path leak via errors in several files

Moodle 3.8.1+ ----------------------------------------------- File: admin/mailout-debugger.php #!/usr/bin/php Notice : Disabled. in \admin\mailout-debugger.php on line 73 File: admin/settings/appearance.php Notice : Undefined variable: hassiteconfig in \admin\settings\appearance.php on line 10 Fatal error : Uncaught Error: Call to undefined function has_any_capability() in \admin\settings\appearance.php:10 Stack trace: #0 {main} thrown in \admin\settings\appearance.php on line 10 File: admin/settings/badges.php Notice : Undefined variable: hassiteconfig in \admin\settings\badges.php on line 30 Fatal error : Uncaught Error: Call to undefined function has_any_capability() in \admin\settings\badges.php:30 Stack trace: #0 {main} thrown in \admin\settings\badges.php on line 30 File: admin/settings/courses.php Notice : Undefined variable: hassiteconfig in \admin\settings\courses.php on line 32 Fatal error : Uncaught Error: Call to undefined function

2022 - Remove (the too many) Ads from Memu launcher

Simple method Download from pureapk "MEmu Launcher2" ex: MEmu Launcher2_v6.0.9_apkpure.com Install "System app remover" (root) remove from system apps the "memu launcher 2" import the "purified" MEmu Launcher2 apk with the Memu utility ("apk" on the right toolbar) Longer method Install "Export Apk" Export the memu launcher2  Install purify https://github.com/echo-devim/purify/raw/master/Purify.apk use purify with the exported memu launcher 2 Install "System app remover" (root) remove from system apps the "memu launcher 2" import the "purified" MEmu Launcher2 apk with the Memu utility ("apk" on the right toolbar)