header-logo
Suggest Exploit
vendor:
YaBB.pl
by:
SecurityFocus
7.5
CVSS
HIGH
Path Traversal
22
CWE
Product Name: YaBB.pl
Affected Version From: YaBB.pl 1.5.2
Affected Version To: YaBB.pl 1.5.3
Patch Exists: YES
Related CWE: N/A
CPE: a:yabb:yabb
Metasploit: N/A
Other Scripts: N/A
Tags: N/A
CVSS Metrics: N/A
Nuclei References: N/A
Nuclei Metadata: N/A
Platforms Tested: N/A
2002

YaBB.pl Path Traversal Vulnerability

YaBB.pl, a web-based bulletin board script, stores board postings in numbered text files. The numbered file name is specified in the call to YaBB.pl in the variable num=<file>. Before retrieving the file, YaBB will append a .txt extension to <file>. Due to input validation problems in YaBB, relative paths can be specified in <file>. This includes ../ style paths. Additionally, <file> does not need to be numerical, and the .txt extension can be avoided by appending %00 to <file>. By exploiting these problems in a single request, a malicious user can view any file that the webserver has access to.

Mitigation:

Input validation should be used to prevent path traversal attacks.
Source

Exploit-DB raw data:

source: https://www.securityfocus.com/bid/1668/info

YaBB.pl, a web-based bulletin board script, stores board postings in numbered text files. The numbered file name is specified in the call to YaBB.pl in the variable num=<file>. Before retrieving the file, YaBB will append a .txt extension to <file>.

Due to input validation problems in YaBB, relative paths can be specified in <file>. This includes ../ style paths.

Additionally, <file> does not need to be numerical, and the .txt extension can be avoided by appending %00 to <file>.

By exploiting these problems in a single request, a malicious user can view any file that the webserver has access to.

http://www.my_target.com/cgi-bin/YaBB.pl?board=news&action=display&num=../../../../../../../../etc/passwd%00