Documentation
¶
Index ¶
- Constants
- func AlgNoneJwtScanHandler(operation *request.Operation, ss auth.SecurityScheme) (*report.ScanReport, error)
- func BlankSecretScanHandler(operation *request.Operation, ss auth.SecurityScheme) (*report.ScanReport, error)
- func NotVerifiedScanHandler(operation *request.Operation, ss auth.SecurityScheme) (*report.ScanReport, error)
- func NullSignatureScanHandler(operation *request.Operation, ss auth.SecurityScheme) (*report.ScanReport, error)
- func ShouldBeScanned(securitySheme auth.SecurityScheme) bool
- func WeakHMACSecretScanHandler(o *request.Operation, ss auth.SecurityScheme) (*report.ScanReport, error)
Constants ¶
View Source
const ( AlgNoneVulnerabilitySeverityLevel = 9 AlgNoneVulnerabilityName = "JWT None Algorithm" AlgNoneVulnerabilityDescription = "JWT with none algorithm is accepted allowing to bypass authentication." )
View Source
const ( NotVerifiedVulnerabilitySeverityLevel = 9 NotVerifiedVulnerabilityName = "JWT Not Verified" NotVerifiedVulnerabilityDescription = "JWT is not verified allowing attackers to issue valid JWT." )
View Source
const ( NullSigVulnerabilitySeverityLevel = 9 NullSigVulnerabilityName = "JWT Null Signature" NullSigVulnerabilityDescription = "JWT with null signature is accepted allowing to bypass authentication." )
View Source
const ( WeakSecretVulnerabilitySeverityLevel = 9 WeakSecretVulnerabilityName = "JWT Weak Secret" WeakSecretVulnerabilityDescription = "JWT secret is weak and can be easily guessed." )
Variables ¶
This section is empty.
Functions ¶
func AlgNoneJwtScanHandler ¶
func AlgNoneJwtScanHandler(operation *request.Operation, ss auth.SecurityScheme) (*report.ScanReport, error)
func BlankSecretScanHandler ¶
func BlankSecretScanHandler(operation *request.Operation, ss auth.SecurityScheme) (*report.ScanReport, error)
func NotVerifiedScanHandler ¶
func NotVerifiedScanHandler(operation *request.Operation, ss auth.SecurityScheme) (*report.ScanReport, error)
func NullSignatureScanHandler ¶
func NullSignatureScanHandler(operation *request.Operation, ss auth.SecurityScheme) (*report.ScanReport, error)
func ShouldBeScanned ¶ added in v0.4.2
func ShouldBeScanned(securitySheme auth.SecurityScheme) bool
func WeakHMACSecretScanHandler ¶ added in v0.4.3
func WeakHMACSecretScanHandler(o *request.Operation, ss auth.SecurityScheme) (*report.ScanReport, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.