在 nginx 和所服务的某个应用程序(例如 WordPress)以同一用户身份运行的特定情况下,ngx_cache_purge 模块(版本低于 3.0.4)存在通过符号链接(symlink)攻击实现文件删除的风险。攻击者必须能够在缓存路径中创建符号链接。 版本 3.0.4 修复了由在任意先前时间创建的符号链接引发的问题,但未能解决一个适用的时间戳检查到使用(TOCTOU)竞态条件。 (原因分析:ngx_cache_purge 模块在执行清理操作、遍历缓存目录树时,会跟随符号链接。该模块依赖于 nginx 的 ng
| Vendor | Product | Version Range | Status |
|---|---|---|---|
| denji | ngx_cache_purge | 2.4.0≤ 2.5.6 |
affected |
3.0.0< 3.0.4 |
affected |
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.
| Vendor | Product | Affected Versions | CPE | Subscribe |
|---|---|---|---|---|
| denji | ngx_cache_purge | 2.4.0 ~ 2.5.6 | - |
|
| # | POC Description | Source Link | Shenlong Link |
|---|
No public POC found.
Login to generate AI POCNo comments yet