webapp-cache-cachepoisoning
-| | CDN/Cache | Cloudflare | | Cache-Control | max-age=3600, public | | Unkeyed Headers | X-Forwarded-Host, X-Forwarded-Proto | | Affected Pages | All HTML pages (/*.
- License 许可
- MIT
- 最近更新
- 2026-09-01
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- webapp-cache-cachepoisoning
- domain
- cybersecurity
- description
- -| | CDN/Cache | Cloudflare | | Cache-Control | max-age=3600, public | | Unkeyed Headers | X-Forwarded-Host, X-Forwarded-Proto | | Affected Pages | All HTML pages (/*.
02 资源文件 1
- 参考文档index.json647 B
03 SKILL.md 正文
-| | CDN/Cache | Cloudflare | | Cache-Control | max-age=3600, public | | Unkeyed Headers | X-Forwarded-Host, X-Forwarded-Proto | | Affected Pages | All HTML pages (/*.html) |
Reproduction Steps
- Send request with X-Forwarded-Host: evil.example.com
- Response includes: <link href="https://evil.example.com/style.css">
- This response is cached by Cloudflare for 3600 seconds
- All subsequent visitors receive the poisoned response
Impact
- JavaScript execution in all users' browsers (via poisoned script src)
- Credential theft, session hijacking, defacement
- Affects estimated 50,000 daily visitors during 1-hour cache window
- Can be re-poisoned continuously for persistent attack
Recommendation
- Include X-Forwarded-Host and similar headers in the cache key via Vary header
- Do not reflect unkeyed headers in response content
- Configure the cache to strip unknown headers before forwarding to origin
- Use application-level hardcoded base URLs instead of deriving from headers
- Implement cache key normalization to prevent key manipulation
04 同仓库更多 Skills
devel-jb-algorithmic-art
- Embed algorithms inline in the HTML artifact (don't create separate .
services-wmi-persistence-detect
Detect WMI event subscription persistence by enumerating ActiveScriptEventConsumer, CommandLineEventConsumer, and permanent subscriptions in the WMI repository.
services-wmi-exec-exploit
Perform lateral movement across Windows networks using WMI-based remote execution techniques including Impacket wmiexec.py, CrackMapExec, and native WMI commands for stealthy post-exploitation during red team engagements.
registry-artifact-extract
Extract and analyze Windows Registry hives to uncover user activity, installed software, autostart entries, and evidence of system compromise.
processes-token-impersonate-detect
Detect Windows token impersonation and privilege abuse including SeImpersonatePrivilege exploitation via Potato attacks and token stealing techniques.
processes-thread-injection-detect
Detect Windows thread injection techniques including CreateRemoteThread, QueueUserAPC, NtCreateThreadEx, and thread hijacking via process memory analysis.