Skip to content

Observing Taint Flows

Lukas Hock edited this page Nov 15, 2022 · 1 revision

Observing Taint Flows

Whenever a taint flow appears, Foxhound will (1) log a warning message to the console and (2) emit an event containing more detailed information about the taint flow.

The emitted event uses the name __taintreport. Add an event listener to collect taint flows and/or get more detailed information about taint flows.

Example usage:

window.addEventListener("__taintreport", (report) => {
    console.log(report.detail);
    console.log(report.detail.str.taint);
});