Closed guoyutian1111222333 closed 3 months ago
I'm wondering if i could write some rules to detect the javascript security hotspots, if if works for someone else?
We aren't accepting rules that are specific to libraries because we can't be sure what $
refers to.
Correct CVE is actually CVE-2015-9251, for the record.
got it ,thank you for the answer, i learned a lot
Rule details
Detect the jQuery's globalEval method due to potential code injection risks.
Related CVE
CVE-2017-16012
Example code
Participation
Additional comments
module.exports = { meta: { type: "problem", // 这个规则标识为问题类型 docs: { description: "Disallow the use of jQuery's globalEval method due to potential code injection risks.", category: "Security", recommended: true }, schema: [] // 没有可配置选项 }, create(context) { return { CallExpression(node) { const callee = node.callee;
};