-
Notifications
You must be signed in to change notification settings - Fork 1
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
Add more tests #11
Add more tests #11
Conversation
taint/xss/testdata/src/e/main.go Lines 9 to 30 in e1653cb
Callgraphn0:e.main
→ n5:net/http.HandleFunc
→ n7:net/http.ListenAndServe
n1:e.echo
→ n3:(io.Writer).Write
→ n6:io.ReadAll
→ n8:fmt.Errorf
→ n9:(io.Writer).Write
n3:(io.Writer).Write
→ n4:(net/http.ResponseWriter).Write
n4:(net/http.ResponseWriter).Write
n7:net/http.ListenAndServe
n2:e.handler
→ n1:e.echo
n5:net/http.HandleFunc
→ n2:e.handler
n6:io.ReadAll
n8:fmt.Errorf
n9:(io.Writer).Write Tainted Pathn5:net/http.HandleFunc → n2:e.handler → n1:e.echo → n3:(io.Writer).Write → n4:(net/http.ResponseWriter).Write Importantly, |
🤔 Continuing to add more test cases, if we add an "f" test based
Sink Path for En5:net/http.HandleFunc → n2:e.handler → n1:e.echo → n3:(io.Writer).Write → n4:(net/http.ResponseWriter).Write Sink Path for Fn7:net/http.HandleFunc → n2:f.handler → n3:bufio.NewWriterSize → n4:(io.Writer).Write → n5:(net/http.ResponseWriter).Write This confusion likely partially stems from the "virtual" function calls now tracked for interfaces (like |
This pull request sets up GitHub code scanning for this repository. Once the scans have completed and the checks have passed, the analysis results for this pull request branch will appear on this overview. Once you merge this pull request, the 'Security' tab will show more code scanning analysis results (for example, for the default branch). Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results. For more information about GitHub code scanning, check out the documentation. |
Simplifies call graph construction, making it reliable
This was a very imperfect, but fun PR to work on. Learned a lot, and I hope to follow this up in the near future. |
This PR adds more tests.