Protego 是一个纯 Python 编写的 robots.txt 解析器,支持现代约定。在 0.6.2 版本之前, 方法会将 Allow 或 Disallow 指令中的每个星号( )转换为懒惰正则表达式通配符,因此,包含大量星号的指令会引发指数级回溯(exponential backtracking)。在 处理了经过精心构造的 robots.txt 文件后, 在匹配一个几乎不匹配的 URL 时可能花费攻击者可控的时间,从而对爬虫造成拒绝服务(DoS)影响。存在漏洞的代码路径位于 中的 匹配逻辑。该问题已在 0.
Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.
| # | POC Description | Source Link | Shenlong Link |
|---|
No public POC found.
Login to generate AI POCNo comments yet