Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing writing Taint flow information to file #247

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

tmbrbr
Copy link
Contributor

@tmbrbr tmbrbr commented Jan 13, 2025

There were a few issues with writing tainting information to file, which are fixed with this PR.

Now the user has two options:

  1. Enable taint spewing via the JIT spewer. This option requires the usual ac_add_options --enable-jitspew compile flag plus the SPEW=TaintFlowSpewer,AtStartup environment variable at the start.
  2. Enable taint spewing via a new option: ac_add_options --enable-taintspew. This option will output a single file per taint flow determined by the TAINT_FILE environment variable (or taint_output) as the default.

In both cases, information from the __taintreport function such as URL and timestamp are now also included.

@tmbrbr
Copy link
Contributor Author

tmbrbr commented Jan 13, 2025

This should also address #246 once it is merged.

@tmbrbr
Copy link
Contributor Author

tmbrbr commented Jan 13, 2025

We need to first merge #248 for the playwright merge action to succeed again.

@tmbrbr tmbrbr requested a review from leeN January 13, 2025 13:08
// Enable this with ac_add_options --enable-taintspew
#if defined(JS_TAINTSPEW)
WriteTaintToFile(cx, str, retVal);
#endif
}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to add a call to MaybeSpewStringTaint here in the case that JitSpew is enabled.

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.

1 participant