webpack-dev-server 是一个为 Webpack 项目提供实时重载功能的开发服务器。在 5.2.7 之前的版本以及 6.0.0 版本中,当代理配置项被设置为转发 WebSocket 时,服务器会将非热模块替换(HMR)的 WebSocket 升级请求直接转发至代理目标,而不会验证 Host 或 Origin 请求头,因此 allowedHosts 防护机制不适用于这些被代理的升级请求。攻击者可利用开发者访问的恶意网页,通过开发服务器建立跨源 WebSocket 连接,从而读取和写入被代理的后端服务,即
| Vendor | Product | Version Range | Status |
|---|---|---|---|
| webpack-dev-server | webpack-dev-server | < 5.2.7 |
affected |
5.2.7 |
unaffected | ||
6.0.0< 6.1.0 |
affected | ||
6.1.0 |
unaffected |
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 |
|---|---|---|---|---|
| webpack-dev-server | webpack-dev-server | 0 ~ 5.2.7 | - |
|
| # | POC Description | Source Link | Shenlong Link |
|---|
No public POC found.
Login to generate AI POCNo comments yet