Skip to content
This repository was archived by the owner on Sep 9, 2022. It is now read-only.
This repository was archived by the owner on Sep 9, 2022. It is now read-only.

/api/_theme/options endpoint is unprotected #6

@pi0

Description

@pi0

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions