Skip to content
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

Update wmd vendor to fix XSS #6543

Merged
merged 1 commit into from
May 12, 2022
Merged

Conversation

cdrini
Copy link
Collaborator

@cdrini cdrini commented May 12, 2022

Closes #6533 . Closes #6544 . Makes the wmd preview have a strict includelist of html attributes. NOTE! This will still allow all attrs to be added / saved, but just ignored when rendering the preview.

See internetarchive/wmd@f07d5e4 for actual diff.

Technical

Testing

Screenshot

Stakeholders

@cdrini cdrini added On testing.openlibrary.org This PR has been deployed to testing.openlibrary.org for testing Priority: 0 Fix now: Issue prevents users from using the site or active data corruption. [managed] labels May 12, 2022
@cdrini
Copy link
Collaborator Author

cdrini commented May 12, 2022

P0 so it goes out in the next deploy.

@cdrini
Copy link
Collaborator Author

cdrini commented May 12, 2022

Auto-merging; small change with low consequences (if there's an error, it'll just prevent the preview from rendering entirely, which also fixes the XSS :P ). Confirmed working correctly on FF. Not can't patch deploy JS changes easily, so deployed a temporary patch instead.

@cdrini cdrini merged commit 3df73d7 into internetarchive:master May 12, 2022
@cdrini cdrini deleted the update-wmd branch May 12, 2022 23:28
@jimchamp jimchamp removed the On testing.openlibrary.org This PR has been deployed to testing.openlibrary.org for testing label Apr 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority: 0 Fix now: Issue prevents users from using the site or active data corruption. [managed]
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Sanitize "work details" field of add book UI
2 participants