Security: OauthController::authorize() missing CSRF check #108

Closed
opened 2026-06-06 11:50:06 +00:00 by jmiller · 1 comment
Owner

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 of authorize(). Update service edit template to include CSRF token.

Files: OauthController.php

## 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 of `authorize()`. Update service edit template to include CSRF token. **Files:** `OauthController.php`
Author
Owner

Branch created: feature/108-security-oauthcontroller-authorize-missi

git fetch origin
git checkout feature/108-security-oauthcontroller-authorize-missi
Branch created: [`feature/108-security-oauthcontroller-authorize-missi`](https://git.mokoconsulting.tech/MokoConsulting/MokoJoomCross/src/branch/feature/108-security-oauthcontroller-authorize-missi) ```bash git fetch origin git checkout feature/108-security-oauthcontroller-authorize-missi ```
Sign in to join this conversation.