This content originally appeared on DEV Community and was authored by Volker Schukai
The Log4j debacle has once again brought into focus an old mantra of web development:
Trust no one!
As a developer, you are responsible for the data you retrieve from various sources. Especially for data that comes from a context you can't control.
Then, first of all, for data coming through the Web API, but also for data coming from a database or data coming from the file system.
But if the data ....
No!
All data must be validated and it must be ensured that these inputs are not malicious. You also never know what will happen to the data later (see Log4j).
Therefore: Validate your data!
References
This content originally appeared on DEV Community and was authored by Volker Schukai
Volker Schukai | Sciencx (2021-12-19T19:11:20+00:00) trust no one. Retrieved from https://www.scien.cx/2021/12/19/trust-no-one/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.