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

Module RedirectCheckBarrierGuard

Provides an implementation of a commonly used barrier guard for sanitizing untrusted URLs.

Import path

import semmle.go.dataflow.barrierguardutil.RedirectCheckBarrierGuard

Imports

go

Provides classes for working with Go programs.

Classes

RedirectCheckBarrier

A call to a function called isLocalUrl, isValidRedirect, or similar, which is considered a barrier guard for sanitizing untrusted URLs.