# CVE-2026-43877: WWBN AVideo: CSRF in userSavePhoto.php Allows Cross-Origin Overwrite of Any Logged-in User's Profile Photo with Arbitrary Bytes

- Severity: Medium 5.4 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.14%, higher than 3% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-05-05T19:13:03.000Z
- Modified: 2026-10-26T18:10:00.173Z
- Also known as: GHSA-jw8g-5j46-44rp
- Weaknesses: CWE-352
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

WWBN AVideo is an open source video platform. In versions up to and including 29.0, objects/userSavePhoto.php is a legacy profile-photo endpoint that accepts a base64 POST parameter and writes the decoded bytes to videos/userPhoto/photo<users_id>.png. Its only access control is User::isLogged(). It does not end in .json.php, so it is excluded from the project's global autoCSRFGuard (which is suffix-scoped in objects/include_config.php). There is no CSRF token, no Origin/Referer check, and no MIME validation of the decoded bytes. Because AVideo's default cookie policy is SameSite=None; Secure on HTTPS (objects/functionsPHP.php:227), an attacker who lures a logged-in user to a malicious page can overwrite that user's profile photo with arbitrary bytes and also triggers a site-wide clearCache(true) on every forged request. Commit 9c38468041505e637101c5943c5370c68f48e3ac contains an updated fix.

(As written by CVE List.)

## Affected

- WWBN AVideo: <= 29.0
- wwbn/avideo (Packagist): up to 29.0

## Every score

- GitHub_M: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:L`
- GitHub: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:L`

## References

- <https://github.com/WWBN/AVideo/security/advisories/GHSA-jw8g-5j46-44rp> (exploit, web)
- <https://github.com/WWBN/AVideo/commit/9c38468041505e637101c5943c5370c68f48e3ac> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-43877> (advisory)
- <https://github.com/WWBN/AVideo> (package)

## Sources

- CVE List: [CVE-2026-43877](https://www.cve.org/CVERecord?id=CVE-2026-43877), CVE Terms of Use, modified 2026-05-12
- GitHub Advisory Database: [GHSA-jw8g-5j46-44rp](https://github.com/advisories/GHSA-jw8g-5j46-44rp), CC-BY-4.0, modified 2026-05-13
- NVD: [CVE-2026-43877](https://nvd.nist.gov/vuln/detail/CVE-2026-43877), Public domain, modified 2026-10-26

---

Page: https://cve.day/CVE-2026-43877 · Whole record: https://cve.day/CVE-2026-43877.json · Rebuilt by cve.day 2026-11-25T22:59:21.299Z
