CVE-2026-104356
8.2
CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
Summary
PictShare before version 3.7.1 contains a weak randomness vulnerability where the getRandomString() function uses the non-cryptographic rand() PRNG to generate the delete_code authorization token in src/inc/core.php. Attackers can predict or infer the PRNG state to guess valid delete_code values and perform unauthorized deletion of hosted files without needing to read the code from the info endpoint.
Affected Software
| Vendor | Product | Version Range | Status |
|---|---|---|---|
| HaschekSolutions | pictshare | 2.0.0 < 3.7.1 | affected |
Weaknesses
- CWE-338: Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG)
References
- https://github.com/HaschekSolutions/pictshare/commit/ce5fc474e89769efeae25fee763894bcce3412e3
- https://github.com/HaschekSolutions/pictshare/releases/tag/v3.7.1
- https://www.vulncheck.com/advisories/pictshare-predictable-delete-code-via-rand
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.