howdy o/
I found a small bug I figured you'd want to know about
Heads up first, I did this on my own profile, meant no harm I was just curious and really into customizing my profile lol, just want staff to know about it too
Basically the theme save endpoint validates input but not authorization, It checks that each field is a valid value, but it never checks whether my account is allowed to use that value, so the hidden options (the staff hidden backgrounds, a shadow style that isn't in the UI, etc) can get saved by a normal user just by putting them in the save payload, It's broken access control, and kind of a mass assignment thing too since the handler trusts whatever fields the client sends
The effects field is inconsistent in a related way, If I set a cursor trail or custom colour through the builder, the server strips itm but copy theme pulls those same tokens from another profile and keeps them, so one path sanitizes and the other doesn't
tho it's all cosmetic, so not really a threat to anything
For the fix I'd check authorization server side on every field at save time, so it confirms the value is allowed for that specific account and not just that it's a real value, probably an allowlist per tier or something and run the same sanitization on the effects field in both the builder and copy theme so they match
I found it because some profiles had looks I couldn't pick from the menu and wanted to look cool :P