Security: OauthController::authorize() missing CSRF check #108
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Audit Finding
Severity: High
Issue:
OauthController::authorize()does not call$this->checkToken(). An attacker could trick an admin into clicking a crafted link to initiate an OAuth flow. While the callback has nonce protection, the initiation should be CSRF-protected.Fix: Add
$this->checkToken()at start ofauthorize(). Update service edit template to include CSRF token.Files:
OauthController.phpBranch created:
feature/108-security-oauthcontroller-authorize-missi