Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGolang : Add Email Content Injection query #100
Closed
Labels
Comments
|
Created Hackerone report 892465 for bounty 221542 : [66] CodeQL query to detect JNDI injections |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
CVE
The final version of this query has not been tested against all lgtm projects.
However, a run of a draft version of query against all lgtm databases found two alerts both of them valid. I haven't reported them yet. Hence, I am not listing them here.
Report
Using untrusted input to construct an email can cause multiple security
vulnerabilities. For instance, inclusion of an untrusted input in an email body
may allow an attacker to conduct Cross Site Scripting (XSS) attacks, while
inclusion of an HTTP header may allow a full account compromise as shown in the
example below.
This query detects instances where untrusted content is written to an email. It models the Golang's net/smtp library as well as the Sendgrid library (581 stars)
I also include
library-tests,query-testsandqhelpfiles along with well documented code.Link to the now merged PR:[github/codeql-go#108]