-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sidebars API - XSS or not XSS? #24863
Comments
I'd have to agree with that assessment... The people that can use this are the people than should be able to use it. |
Is this the built in text widget? |
@TimothyBJacobs it is |
Looks like a feature :) |
Before concluding this issue I will confirm whether or not |
It does, we're good to close this issue. I prepared some related unit tests in #24886 |
Let's talk about the experimental
/__experimental/sidebars
API endpoint.As initially discovered in an unrelated issue, it is possible to send a POST request like:
And store a script that will be executed when the widget is rendered.
Initially I considered it to be a vulnerability, but then I tested
widgets.php
and discovered it exhibits the exact same behavior. That's perhaps unsurprising, considering that experimental endpoint reuses the exact same code:The endpoint access is restricted to administrators and editors who, by design, are allowed to use custom scripts. Therefore it seems to me like it's not a bug, it's a feature. What do you think @draganescu @noisysocks @TimothyBJacobs ?
The text was updated successfully, but these errors were encountered: