filedescriptor / untrusted-types

Apache License 2.0
654 stars 71 forks source link

Notifications when a keyword is found #10

Open 0xblackbird opened 2 years ago

0xblackbird commented 2 years ago

Hello

I've been using this tool for quite a while now, and one thing that I feel is missing, is a notification once one of the predefined keywords are detected by untrusted-types. It would be extremely helpful, since untrusted-types only has an interface located in the developer tools. That way, I won't have to keep checking, or leave the developer tools open while looking for potential dom-based cross-site scripting issues.

Thanks!

0xblackbird commented 2 years ago

I've created a pull request that takes care of this issue: #11 Below is a screenshot that displays the notification once something is injected (don't mind the webpage's title :wink:): notification

If possible, we can further enhance the notification (by for example, displaying a more verbose message, or even for some cases a proof of concept link??)