Dangerous Workflow: some user input are not being detected as untrusted input. #3915
Labels
check/Dangerous-workflow
good first issue
Good for newcomers
kind/enhancement
New feature or request
Is your feature request related to a problem? Please describe.
The current Dangerous Workflow check looks for places where untrusted user inputs could be used for Script Injection, such as:
The problem is that Scorecard is not considering the whole range of user input that might lead to Script Injection. The piece of code that lists the user inputs is the following:
And I can point that it isn't able to detect the following inputs, for example:
${{ github.event.issue_comment.comment.body }}
, described in github's doc${{ github.event.commit_comment.comment.body }}
, described in github's doc${{ github.event.fork.forkee.name }}
Describe the solution you'd like
As Dangerous Workflow is a very important check, Scorecard should be able to identify as many Script Injection risks as possible.
We should study more types of GitHub Events, their payloads, and make Scorecard as reliable as possible to identify different ways that Script Injections could take place.
Additional context
I'd be happy to complete my search and also raise a PR to fix this, but I won't be able to do this in a near future. However, I'm marking this as "Good First issue", as the biggest effort to solve this would be actually a research on GitHub's API. The changes on Scorecard would be simple.
The text was updated successfully, but these errors were encountered: