Securely set unknown property (mitigate square bracket object injection attacks) utility function
问题 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