Skip to content

sanitize javascript: urls in formaction on button and input#21438

Open
rootvector2 wants to merge 1 commit into
emberjs:mainfrom
rootvector2:sanitize-formaction
Open

sanitize javascript: urls in formaction on button and input#21438
rootvector2 wants to merge 1 commit into
emberjs:mainfrom
rootvector2:sanitize-formaction

Conversation

@rootvector2
Copy link
Copy Markdown

The sanitizer in sanitized-values.ts blocks javascript:/vbscript: in form[action], but its badTags/badAttributes lists leave out button, input and formaction, so a submit button or image input can override the form action with an unsanitized javascript: url. Add BUTTON/INPUT and formaction to the lists so the per-control override is checked the same as form[action].

@NullVoxPopuli
Copy link
Copy Markdown
Contributor

Can you create a reproduction on https://limber.glimdown.com for all of your prs?

Thank you!

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.

2 participants