Skip to content
This repository has been archived by the owner on Jun 14, 2022. It is now read-only.

Sanitize location.hash before using it #353

Open
fabiankaegy opened this issue Apr 10, 2020 · 0 comments
Open

Sanitize location.hash before using it #353

fabiankaegy opened this issue Apr 10, 2020 · 0 comments

Comments

@fabiankaegy
Copy link

In https://github.com/studiopress/atomic-blocks/blob/develop/dist/getting-started/settings.js#L20 you are currently taking the unsanitized location.hash and working with it. This might be insecure because the user or someone else can exploit that for some XSS.

Using something like https://github.com/cure53/DOMPurify to make sure the hash is checked before working with it might be a nice addition to just make sure there are not XSS explorations of this.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant