code-injection

Securely set unknown property (mitigate square bracket object injection attacks) utility function

我的梦境 提交于 2020-12-28 07:06:01
问题 After setting up eslint-plugin-security, I went on to attempt to address nearly 400 uses of square brackets in our javascript codebase (flagged by the rule security/detect-object-injection). Although this plugin could be a lot more intelligent, any uses of square brackets could possibly be an opportunity for a malicious agent to inject their own code. To understand how, and to understand the whole context of my question, you need to read this documentation: https://github.com/nodesecurity

Securely set unknown property (mitigate square bracket object injection attacks) utility function

廉价感情. 提交于 2020-12-28 07:03:25
问题 After setting up eslint-plugin-security, I went on to attempt to address nearly 400 uses of square brackets in our javascript codebase (flagged by the rule security/detect-object-injection). Although this plugin could be a lot more intelligent, any uses of square brackets could possibly be an opportunity for a malicious agent to inject their own code. To understand how, and to understand the whole context of my question, you need to read this documentation: https://github.com/nodesecurity