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

test: use CSS hex-encoded strings to test sanitization #220

Merged
merged 1 commit into from Oct 29, 2021

Conversation

flavorjones
Copy link
Owner

This adds onto #205. The original reported exploit in 2006 used CSS
hex encoding (e.g., "\0075" for "u"), which was ...

  • mistakenly put into a double-quoted Ruby string in the Instiki test
    suite in 2007,
  • then copied into html5lib-ruby's test suite,
  • then copied into html5lib-python's suite,
  • then finally copied into the html5lib shared suite,
  • which was imported into Loofah

This adds onto #205. The original reported exploit in 2006 used CSS
hex encoding (e.g., "\0075" for "u"), which was ...

- mistakenly put into a double-quoted Ruby string in the Instiki test
  suite in 2007,
- then copied into html5lib-ruby's test suite,
- then copied into html5lib-python's suite,
- then finally copied into the html5lib shared suite,
- which was imported into Loofah
@flavorjones flavorjones merged commit 483a7e7 into main Oct 29, 2021
@flavorjones flavorjones deleted the flavorjones-test-css-hex-encoded-exploit branch October 29, 2021 20:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant