Dexter panel (CasinoLoader) SQLi to PHP code exec - Initial

SQL injection in the panel used by the point of sale malware Dexter.  Input into the gateway for bots to call home (gateway.php) is not sanitized, and can be exploited in quite a few ways.  For this module, the exploit extracts credentials from the MySQL back end, uses those credentials to login then abuse the upload ability in the panel to upload our payload.  The upload page gives a location for the upload folder, which gives us a detectable and reliable writable location.  The payload could be written from just SQLi, but it would have been less reliable and require more information beforehand.  No platform dependency has been seen for the exploit given that the panel is functional.

The source code for the panel has been leaked in various locations, this is a mirror of one (for verification purposes): https://www.dropbox.com/s/nj4ogw5chnbfp36/DexterPOS%26CasinoLoader.rar (password 'MalDev.net')

*Edit* Link changed to dropbox