3 ms·
> might it actually be wide-spread across the entire iOS and mac OS code-base? I suspect this is likely. It's generally accepted that it isn't possible to sa
by londons_explore 5y ago
> might it actually be wide-spread across the entire iOS and mac OS code-base?
I suspect this is likely. It's generally accepted that it isn't possible to sanitize arbitrary user input before saving it into the database. There will always be someone called "<script>".
Instead you must format the data correctly when displaying it to the user. That means every place you get data from a database and process or display it, you should be using framework libraries to make sure no injection attacks can happen.
- gowld 5y agoFramework libraries or languages that have types for separating taintable data from executable code.
- xenomachina 5y agoIt isn't really so much about data being "taintable", but rather about the fact that not all strings are really the same "type". In this case, the field was probably meant to be "plain text", but it was inserted into HTML without any conversion. Even data that doesn't come from a user (ie: that is not "tainted") needs to be converted to the correct type.