Affected by GO-2022-1065
and 2 other vulnerabilities
GO-2022-1065: Gitea vulnerable to Argument Injection in code.gitea.io/gitea
GO-2023-1894: code.gitea.io/gitea Open Redirect vulnerability
GO-2024-3056: Gitea Cross-site Scripting Vulnerability in code.gitea.io/gitea
package
Version:
v1.17.2
Opens a new window with list of versions in this module.
Published: Sep 6, 2022
License: MIT
Opens a new window with license information.
Imports: 9
Opens a new window with list of imports.
Imported by: 12
Opens a new window with list of known importers.
Documentation
¶
Verify calls Google Recaptcha API to verify token
ErrorCode is a reCaptcha error
Error fulfills the error interface
String fulfills the Stringer interface
type Response struct {
Success bool `json:"success"`
ChallengeTS string `json:"challenge_ts"`
Hostname string `json:"hostname"`
ErrorCodes []ErrorCode `json:"error-codes"`
}
Response is the structure of JSON returned from API
Source Files
¶
Click to show internal directories.
Click to hide internal directories.