⚡Megatron LLM Hub
←返回搜索
Twitter

路径穿越过滤只拦 /../,少一个斜杠的 ../ 即可穿过

常见正则写法的实测绕过样例,可直接自查同类校验
绕过web议题
Why use ../../ when ../ is enough... The check looks reasonable: /../ means someone is walking up the path, let's return a 404! But do you really need ../../: request $page verdict --------------------------------------------------------- /static/../../../𝗲𝘁𝗰/𝗽𝗮𝘀𝘀𝘄𝗱   ../../../𝗲𝘁𝗰/𝗽𝗮𝘀𝘀𝘄𝗱 BLOCKED /static/../munin.conf ../munin.conf PASSES The first / gets consumed by the first regular expression, so $page is ../munin.conf and doesn't contain /../ but it still allows you to get what matters... Sometimes, you don't need a full directory traversal... just one directory up is all it takes.