HackThisSite - Basic Mission 3
Challenge
This time Network Security Sam remembered to upload the password file, but there were deeper problems than that.
这次 Sam 记得上传密码文件了,但问题比这更深层。
页面上有一个密码输入框。查看源代码后发现一个隐藏的表单字段:
1 | <input type="hidden" name="file" value="password.php" /> |
Solution
HTML 表单中的 hidden
类型字段对用户来说完全是可见的——只要查看源代码就能看到。这里隐藏字段暴露了密码文件的路径:password.php。
直接在浏览器中访问这个文件即可获得密码:
1 | https://www.hackthissite.org/missions/basic/3/password.php |
页面会直接返回密码内容。
e656d2bd