|
|
|
|
|
by zrm
3566 days ago
|
|
> The blacklist approach means you need to make sure you know of every single possible URL scheme that may possibly be supported, and evaluate every single one of them to determine if they should be blacklisted. The whitelist approach requires the same thing, it's just that the consequences of getting it wrong are different. If you don't blacklist something that you should then you could let through a security vulnerability. If you don't whitelist something that you should then the developers of that software have to devise a way to disguise their software as something that is already whitelisted or be destroyed, which is even worse. Because doing that is inefficient and complicated, which is the recipe for security vulnerabilities, and then you can't even blacklist it if you know you don't need it because it's specifically designed to parse as something on the whitelist. |
|