vendor:
iDB
by:
Unknown
5.5
CVSS
MEDIUM
Local File Inclusion
22
CWE
Product Name: iDB
Affected Version From: 0.2.5 Pre-Alpha SVN 243 (released March 30, 2009)
Affected Version To: 0.2.5 Pre-Alpha SVN 243 (released March 30, 2009)
Patch Exists: NO
Related CWE: Unknown
CPE: a:idb:idb:0.2.5_pre-alpha_svn_243
Platforms Tested:
2009
Local require() vulnerability in iDB (a PHP/MySQL BBS)
This exploit takes advantage of a local require() vulnerability in iDB, a PHP/MySQL BBS. The vulnerability allows an attacker to include arbitrary local files by manipulating the 'skin' variable before it is saved to the database. By setting the 'skin' variable to a malicious value, an attacker can include sensitive files, such as the passwd file, and retrieve their contents. The vulnerability is limited by the length of the 'skin' variable, which is restricted to 26 characters.
Mitigation:
To mitigate this vulnerability, ensure that user input is properly validated and sanitized before using it in any file inclusion or require() functions. Additionally, limit the length of user input to prevent potential SQL structure manipulation.