Skip to content

Commit

Permalink
Test for script tag inside style
Browse files Browse the repository at this point in the history
Reproducer for #83.
  • Loading branch information
slovdahl committed Sep 13, 2024
1 parent cba2904 commit 1bb95b7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ private static Stream<Arguments> evilUseCases() {
Arguments.of("hacked/with-onclick-attribute.svg", "onclick"),
Arguments.of("hacked/with-script-tag.svg", "script"),
Arguments.of("hacked/with-script-tag-in-styles.svg", "script"),
Arguments.of("hacked/with-invalid-script-tag-in-styles.svg", "script"),
Arguments.of("hacked/with-css-url-syntax.svg", "style"),
Arguments.of("hacked/with-xlink-injection.svg", "script")
);
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 1bb95b7

Please sign in to comment.