Checking current implementation, we allow any user to post a body to write to server storage ([here](https://github.com/nuxt-themes/config/blob/385c9ae1cd9ff478f23a717b4ff9a47627928ac9/src/runtime/server/api/options.ts#L12)). An attacker can cause large file writes or intentionally break the whole production website by corrupting the theme config and its types. A quick fix would be only enabling and allowing updates via a secret to authenticate.
Checking current implementation, we allow any user to post a body to write to server storage (here).
An attacker can cause large file writes or intentionally break the whole production website by corrupting the theme config and its types.
A quick fix would be only enabling and allowing updates via a secret to authenticate.