📄 qdav-2001-7-3
字号:
Interactive Story File Disclosure VulnerabilityqDefense Advisory Number QDAV-2001-7-3Product: Interactive StoryVendor: Valerie Mates (http://www.valeriemates.com)Severity: Remote; Attacker may read arbitrary fileVersions Affected: Version 1.3Vendor Status: Vendor contacted; has released new version, 1.4, which is not vulnerableCause: Failure to validate inputIn Short: Interactive Story does not properly validate the contents of a hidden field entitled "next". By setting that field to the name of a file, and using double dots and poison nulls, an attacker can cause Interactive Story to display the contents of any file.The current version of this document is available at http://qDefense.com/Advisories/QDAV-2001-7-3.html.Details:Interactive Story contains the following lines:$nextfile = "$story_dir/$in{'next'}.txt";...elsif ((-e $nextfile) && ($in{'submit'} eq "")) {... while (<STORY>) { print $_; }...}If an attacker sets the "next" field to something like ../../../../../../../../../../etc/passwd%00, Interactive Story will open and display the password file. This technique can be used to display any file that the web server has permission to read.Solution:Valerie Mates has released an upgrade, version 1.4, which strips special characters from the "next" field.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -