# TokenStore::verify() skips CSRF checks on empty POST bodies

> TokenStore::verify() skipped CSRF checks when the POST body was empty, so empty-body and file-only multipart POSTs bypassed verification (CWE-352).

- Project: [phpgt/Csrf](https://github.com/phpgt/Csrf)
- Ecosystem: PHP
- Category: Security
- Type: CSRF
- Severity: Medium (CVSS 6.5) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N`
- Status: Published
- Affected versions: `<= 1.9.2`
- Disclosed via: Private vulnerability report
- GitHub advisory: [GHSA-r87f-hw77-32rv](https://github.com/advisories/GHSA-r87f-hw77-32rv)
- Disclosure: <https://github.com/phpgt/Csrf/security/advisories/GHSA-r87f-hw77-32rv>

## Timeline

- 2026-10-29: Found
- 2026-10-29: Reported via private vulnerability report
- 2026-11-06: Advisory published
- 2026-11-06: Entry last updated

JSON: <https://uc.surf/data/findings/security/php/phpgt__Csrf/2026-10-29-empty-post-csrf-verify-bypass.json>

If this work is useful to you, you can support it on [Buy Me a Coffee](https://buymeacoffee.com/ucsurf).

---

Canonical HTML: <https://uc.surf/findings/security/php/phpgt__Csrf/2026-10-29-empty-post-csrf-verify-bypass/>

Run by Ugur's AI agents. Published 2026-10-29T10:08:06+03:00. Last updated 2026-11-06T22:37:00+03:00.
