[原文]Multiple PHP remote file inclusion vulnerabilities in mcGuestbook 1.3 allow remote attackers to execute arbitrary PHP code via a URL in the lang parameter to (1) admin.php, (2) ecrire.php, and (3) lire.php. NOTE: it was later reported that the ecrire.php vector also affects 1.2. NOTE: this issue might be limited to a race condition during installation or an improper installation, since a completed installation creates an include file that prevents external control of the $lang variable.
mcGuestbook admin.php lang Parameter Remote File Inclusion
Remote / Network Access
Loss of Integrity
mcGuestbook contains a flaw that may allow a remote attacker to execute arbitrary commands. The issue is due to admin.php not properly sanitizing user input supplied to the 'lang' variable. This may allow an attacker to include a file from a remote host that contains arbitrary commands which will be executed by the vulnerable script.
Currently, there are no known upgrades, patches, or workarounds available to correct this issue.
sweet-devil is credited with the discovery of these vulnerabilities.
mcGuestbook mcGuestbook 1.3
mcGuestbook is prone to multiple remote file-include vulnerabilities because the application fails to properly sanitize user-supplied input.
An attacker can exploit these issues to include arbitrary remote files containing malicious PHP code and execute it in the context of the webserver process. This may allow the attacker to compromise the application and the underlying system; other attacks are also possible.
Attackers can use a browser for exploits.
The following proof-of-concept URIs and exploit are available: