News for hackers. Stuff that matters.
Re:Why UUIDs won't protect your secrets by monkaiju on Monday October 20, 2025 @09:22PM (#45651451)
Great piece, but worth mentioning that you generally can't use a presigned URL with CDN endpoints. So great for sensitive content, but if you rly want the thing to be widely and quickly accessible there's more work to be done
Re:Why UUIDs won't protect your secrets by inopinatus on Monday October 20, 2025 @09:44PM (#45651568)
Well, you can if the signed URL is signed for the CDN's verification instead of the underlying storage.

Generalising this; you don't need stateful logged-in authentication to defeat IDOR, you can include an appropriately salted HMAC in the construction of a shared identifier, optionally incorporating time or other scoping semantics as necessary, and verify that at your application's trust boundary.

This tends to make identifiers somewhat longer but still fit well inside a reasonable email'd URL to download your phone bill without having to dig up what your telco password was.

However, note that one of the baseline requirements of privacy-oriented data access is issuing different and opaque identifiers for the same underlying thing to each identifiable principal that asks for it. Whether that's achieved cryptographically or by a lookup table is a big can of engineering worms.

Re:Why UUIDs won't protect your secrets by dpipemazo on Monday October 20, 2025 @11:12PM (#45652050)
You can use pre-signed URLs with CloudFront.