Back to list
phpMyBackupPro v.2.5 Remote Command Execution / CSRF
Feb 16 2016 05:46AM
hyp3rlinx lycos com
[+] Credits: hyp3rlinx
[+] Website: hyp3rlinx.altervista.org
[+] Source: http://hyp3rlinx.altervista.org/advisories/PHPMYBACKUPPRO-v2.5-RCE.txt
phpMyBackupPro v.2.5 (PMBP)
phpMyBackup Pro is a very easy to use, free, web-based MySQL backup application, licensed under the GNU GPL.
You can create scheduled backups, manage and restore them, download or email them and a lot more.
Remote Command Execution / CSRF
phpMyBackupPro uses PHP configuration files (global_conf.php) to manage settings, allowing user to change things like sql host, language, email etc..
However, a malicious local user can also inject persistent arbitrary PHP/OS commands into the configuration to be executed on the host system.
The remote command execution can also be a result of a CSRF driveby by if currently logged admin visits an attackers webpage.
Attackers can inject and write to disk arbitrary PHP code into the global_conf.php configuration file if a victim visits a malicious webpage or clicks an
infected link via a CSRF vector or additionally from a local malicious user in shared host type environment.
first we escape the single quotes etc... so we can close the expected entry, then we leverage the backtick "`" operator to have PHP execute OS commands
on victims system as it works just as well without having to deal with all the quote escaping.
e.g. payload that handles the single "'" quote an forward slashes "/"...
The above when injected will result in a write to $CONF variables in global_conf.php as follows...
Send admin infected link or convince them to visit our malicious webpage, then if the user is logged in and...
a) clicks our link or visits our evil webpage or
b) submits the form locally (malicious user) then BOOOOOOOOOOOM!
Exploit to run calc.exe on Windows
var xhr=new XMLHttpRequest()
xhr.withCredentials = true;
Vendor Notification: NR
February 16, 2016 : Public Disclosure
Request Method(s): [+] POST
Vulnerable Product: [+] phpMyBackupPro v.2.5 (PMBP)
Vulnerable Parameter(s): [+] $CONF
Permission is hereby granted for the redistribution of this advisory, provided that it is not altered except by reformatting it, and that due credit is given. Permission is explicitly given for insertion in vulnerability databases and similar, provided that due credit is given to the author.
The author is not responsible for any misuse of the information contained herein and prohibits any malicious use of all security related information or exploits by the author or elsewhere.
[ reply ]
Copyright 2010, SecurityFocus