As detailed in this blog post, failing to set the form-action CSP directive can lead to data being sent to unauthorizeddomains.
If some rogue JS executes on a page with a form, that JS could be used to change the form's action attribute to evil.com, for example.
Adding the ability to set the form-action CSP directive would prevent form submission in this scenario.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 2935167-add-support-for-form-action.patch | 1.12 KB | melonangie |
Comments
Comment #2
melonangie commentedComment #3
the_g_bomb commentedUpdated URL for the relevant blog post:
https://david-gilbertson.medium.com/im-harvesting-credit-card-numbers-an...
I think it may no longer be available on hackernoon even though it still shows up in the search results
Comment #4
the_g_bomb commentedClosing as a duplicate of #3219294: Add form-action directive