manyfold3d / manyfold

A self-hosted digital asset manager for 3d print files.
https://manyfold.app
MIT License
749 stars 47 forks source link

MAF-011: [LOW] Library path can be set arbitrarily, including root #2242

Closed Floppy closed 4 weeks ago

Floppy commented 4 months ago

System paths in the library functionality allow administrators to configure root directories as the path.

Technical description:

The library system functionality allow administrators to set paths to root directories. Paths should be restricted to only allow specific directories to minimize the attack vector.

Impact:

Allowing access to root directories significantly increases the risk of unauthorized access, data breaches, and potential system compromises. Attackers could exploit this misconfiguration to gain elevated privileges and access sensitive files or directories.

Recommendation:

Floppy commented 4 months ago

This is due a rewrite soon as part of #1670, so I'm leaving it for now.

Floppy commented 4 weeks ago

sanitization checks done in #2729