You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 20, 2022. It is now read-only.
Transparently log all data passed into known JavaScript sinks - Sink Logger extension for Burp.
Description
Sink Logger is a Burp Suite Extension that allows to transparently monitor various JavaScript sinks. All data passed into the defined sinks is logged into the browser's console. This is done by injecting a custom Proxy initialization script into chosen HTTP responses and "proxifying" all sinks.
Technical details
The extension intercepts responses and does 2 major things:
In case the response is HTML or JavaScript it injects a script initializing a custom Proxy.
Note: You can easily add custom sinks, or any other assignment / method call you want to proxify, by extending this dictionary. No other code changes are needed.
"Proxifying" a sink means to edit existing JavaScript so that every sink is preceded by an assignment to the proxy:
No sematic changes, no syntax errors (please report an issue if you find out otherwise).
Remarks
During the process CSP headers (and the <meta> tag) as well as SRI checks are stripped. This puts you at risk when surfing the web.
Websites may break. The aim is to be completely transparent, in some cases, however, the modifications may result in invalid JavaScript syntax or otherwise break web-apps. Please consider reporting an issue if you encounter such behavior.
About
Transparently log all data passed into known JavaScript sinks - Sink Logger extension for Burp.