Title: Jelsoft vBulletin PHP Command Execution Vulnerability
Severity: MODERATE
Description:
Jelsoft vBulletin is an online discussion forum package written in PHP. The package utilizes templates to allow customization of discussion forum features. A function named gettemplate(), in the file global.php, is responsible for retrieving template contents and returning them to a function that processes various HTML-like tags in the template. This function uses an array (templatecache[])to store template data, but it fails to initiate this array allowing values to be passed to it from a URL request. The data from this array is returned by the gettemplate() function to an "eval" function in index.php, and is not filtered. This allows double quotes to be embedded, providing a mechanism for attackers to execute arbitrarily defined PHP code. This combination could allow an attacker to gain access to an interactive shell. One instance of a vulnerable call to gettemplate() exists in index.php and is called when the variable "action" is set to "faq", and eval() processes the string returned from gettemplate() which corresponds to templatecache[faq] in this case.
The call to gettemplate() looks like this:
if ($action=3D=3D"faq") {
eval("echo dovars(\"".gettemplate("faq")."\");");
}
If gettemplate() returns a string with a double quote character in it followed by syntactically correct PHP code, this code will be executed.
Affected Products:
- Jelsoft vBulletin 1.0.0Lite
- Jelsoft vBulletin 1.1.0
- Jelsoft vBulletin 2.0.0beta 2
Juniper Networks provides this content via a wide variety of sources and production methods. If notified of errors or omissions in the content of this page, Juniper Networks, at its discretion, will modify or remove the page or leave the content as is, depending on various factors including but not limited to the reputation and authority of the party providing the notification. Please use the contact information displayed elsewhere on this page to report any errors or omissions regarding the content on this page.