semgrep / semgrep-rules

Semgrep rules registry
https://semgrep.dev/registry
Other
806 stars 395 forks source link

[Rule] Nginx config rules #990

Closed minusworld closed 3 years ago

minusworld commented 4 years ago

Rule Description

Nginx config rules such as:

Examples or references

PR Checklist

If the rule is my-rule, the test file name should be my-rule.js.

True positives are marked by comments with ruleid: <my-rule> and true negatives are marked by comments with ok: <my-rule>.

  1. A description of the pattern (e.g., missing parameter, dangerous flag, out-of-order function calls).
  2. A description of why this pattern was detected (e.g., logic bug, introduces a security vulnerability, bad practice).
  3. An alternative that resolves the issue (e.g., use another function, validate data first, discard the dangerous flag).
clintgibler commented 3 years ago

Should also evaluate various existing tools, like https://github.com/yandex/gixy.

minusworld commented 3 years ago

https://semgrep.dev/p/nginx