CodeQL library for Go
codeql/go-all 6.0.1-dev (changelog, source)
Search

Predicate isSensitiveCookie

Holds if cw has the sensitive name name, from the expression nameExpr. source and sink represent the data flow path from the sensitive name expression to the cookie write.

Import path

import semmle.go.security.CookieWithoutHttpOnly
predicate isSensitiveCookie(CookieWrite cw, string name, PathNode source, PathNode sink)