Hacker News new | past | comments | ask | show | jobs | submit login

This. Seeing if you can do something before actually doing it falls victim to TOCTOU[0] bugs. Until one actually tries to perform the security-sensitive operation, there's no guaranteeing that you will succeed.

[0]: https://en.wikipedia.org/wiki/Time-of-check_to_time-of-use




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: