Description
Stonewuu ai-fusion-video through 1.2.0 contains a path traversal vulnerability that allows authenticated users to write uploaded files outside the media directory via the subDir parameter of POST /api/storage/upload. Attackers can supply parent-directory sequences that LocalStorageStrategy.storeBytes never normalizes, creating directories and writing attacker-controlled files with chosen extensions anywhere the service account can write.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Stonewuu | ai-fusion-video | ≤ 1.2.0 | — |
References
- https://hackmd.io/@1ExmmukzRMWN7B4gQ4W-4Q/ai-fusion-video-broken-access-control-and-upload-path-traversal third-party-advisory
- https://github.com/Stonewuu/ai-fusion-video/blob/v1.2.0/ai-fusion-video/src/main/java/com/stonewu/fusion/service/storage/strategy/LocalStorageStrategy.java#L77-L92 technical-description
- https://github.com/Stonewuu/ai-fusion-video/blob/v1.2.0/ai-fusion-video/src/main/java/com/stonewu/fusion/controller/storage/FileUploadController.java#L72-L99 technical-description
- VulnCheck Advisory: ai-fusion-video through 1.2.0 Path Traversal in Media Upload subDir Parameter third-party-advisory