@zhuma4/cli 4.0.0-alpha.1 → 4.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1128) hide show
  1. package/package.json +10 -3
  2. package/rules/common/zm-go-cwe1336-template-injection.yaml +38 -0
  3. package/rules/common/zm-go-cwe200-grpc-metadata.yaml +40 -0
  4. package/rules/common/zm-go-cwe319-grpc-notls.yaml +118 -0
  5. package/rules/common/zm-go-cwe338-weak-prng.yaml +117 -0
  6. package/rules/common/zm-go-cwe347-jwt.yaml +147 -0
  7. package/rules/common/zm-go-cwe693-gin-middleware.yaml +48 -0
  8. package/rules/common/zm-go-cwe693-security-headers.yaml +120 -0
  9. package/rules/common/zm-java-crypto-cwe327-001.yaml +103 -0
  10. package/rules/common/zm-java-deserial-cwe502-001.yaml +72 -0
  11. package/rules/common/zm-java-expression-cwe94-001.yaml +110 -0
  12. package/rules/common/zm-java-file-cwe22-001.yaml +73 -0
  13. package/rules/common/zm-java-hql-cwe89-001.yaml +72 -0
  14. package/rules/common/zm-java-jndi-cwe502-001.yaml +107 -0
  15. package/rules/common/zm-java-oauth-cwe287-001.yaml +136 -0
  16. package/rules/common/zm-java-rce-cwe78-001.yaml +98 -0
  17. package/rules/common/zm-java-springsec-cwe284-001.yaml +109 -0
  18. package/rules/common/zm-java-xstream-cwe502-001.yaml +73 -0
  19. package/rules/common/zm-java-xxe-cwe611-003.yaml +105 -0
  20. package/rules/common/zm-js-cwe20-nextjs-api-routes.yaml +141 -0
  21. package/rules/common/zm-js-cwe287-aws-lambda-config.yaml +107 -0
  22. package/rules/common/zm-js-cwe345-websocket-security.yaml +90 -0
  23. package/rules/common/zm-js-cwe501-graphql-injection.yaml +52 -0
  24. package/rules/common/zm-js-cwe502-deserialization-extended.yaml +107 -0
  25. package/rules/common/zm-js-cwe506-npm-supply-chain.yaml +19 -0
  26. package/rules/common/zm-js-cwe79-electron-security.yaml +35 -0
  27. package/rules/common/zm-js-cwe79-react-xss-deep.yaml +34 -0
  28. package/rules/common/zm-js-cwe89-prisma-typeorm.yaml +139 -0
  29. package/rules/common/zm-py-aiohttp-cwe295-cwe770-01.yaml +60 -0
  30. package/rules/common/zm-py-crypto-cwe327-01.yaml +33 -0
  31. package/rules/common/zm-py-deser-cwe502-01.yaml +66 -0
  32. package/rules/common/zm-py-django-cwe200-cwe798-cwe352-01.yaml +80 -0
  33. package/rules/common/zm-py-fastapi-cwe265-cwe284-01.yaml +48 -0
  34. package/rules/common/zm-py-flask-cwe200-cwe326-01.yaml +57 -0
  35. package/rules/common/zm-py-sqlalchemy-cwe89-01.yaml +65 -0
  36. package/rules/community-merged/cwe-1004/authtkt-cookie-httponly-unsafe-default.yaml +38 -0
  37. package/rules/community-merged/cwe-1004/authtkt-cookie-httponly-unsafe-value.yaml +41 -0
  38. package/rules/community-merged/cwe-1004/cookie-missing-httponly.yaml +42 -0
  39. package/rules/community-merged/cwe-1004/session-cookie-missing-httponly.yaml +41 -0
  40. package/rules/community-merged/cwe-1104/express-detect-notevil-usage.yaml +56 -0
  41. package/rules/community-merged/cwe-113/http-response-splitting.yaml +45 -0
  42. package/rules/community-merged/cwe-115/reverseproxy-director.yaml +34 -0
  43. package/rules/community-merged/cwe-116/autoescape-disabled-false.yaml +35 -0
  44. package/rules/community-merged/cwe-116/detect-disable-mustache-escape.yaml +28 -0
  45. package/rules/community-merged/cwe-116/incomplete-sanitization.yaml +33 -0
  46. package/rules/community-merged/cwe-116/missing-autoescape-disabled.yaml +34 -0
  47. package/rules/community-merged/cwe-116/no-scriptlets.yaml +32 -0
  48. package/rules/community-merged/cwe-116/use-escapexml.yaml +34 -0
  49. package/rules/community-merged/cwe-119/detect-buffer-noassert.yaml +33 -0
  50. package/rules/community-merged/cwe-1204/create-de-cipher-no-iv.yaml +32 -0
  51. package/rules/community-merged/cwe-1236/csv-writer-injection.yaml +56 -0
  52. package/rules/community-merged/cwe-1236/use-defusedcsv.yaml +38 -0
  53. package/rules/community-merged/cwe-1275/authtkt-cookie-samesite.yaml +36 -0
  54. package/rules/community-merged/cwe-1275/session-cookie-samesitenone.yaml +38 -0
  55. package/rules/community-merged/cwe-1275/set-cookie-samesite-unsafe-default.yaml +45 -0
  56. package/rules/community-merged/cwe-1333/detect-non-literal-regexp.yaml +46 -0
  57. package/rules/community-merged/cwe-1333/detect-redos.yaml +44 -0
  58. package/rules/community-merged/cwe-1333/java-pattern-from-string-parameter.yaml +38 -0
  59. package/rules/community-merged/cwe-1333/regex-dos.yaml +35 -0
  60. package/rules/community-merged/cwe-134/flask-api-method-string-format.yaml +37 -0
  61. package/rules/community-merged/cwe-134/unsafe-formatstring.yaml +52 -0
  62. package/rules/community-merged/cwe-150/autoescape-disabled.yaml +30 -0
  63. package/rules/community-merged/cwe-155/system-wildcard-detected.yaml +38 -0
  64. package/rules/community-merged/cwe-183/permissive-cors.yaml +78 -0
  65. package/rules/community-merged/cwe-20/django-using-request-post-after-is-valid.yaml +28 -0
  66. package/rules/community-merged/cwe-20/host-header-injection-python.yaml +46 -0
  67. package/rules/community-merged/cwe-200/bind.yaml +40 -0
  68. package/rules/community-merged/cwe-200/bind_all.yaml +32 -0
  69. package/rules/community-merged/cwe-200/spring-actuator-fully-enabled.yaml +33 -0
  70. package/rules/community-merged/cwe-200/url-rewriting.yaml +83 -0
  71. package/rules/community-merged/cwe-23/tainted-file-path.yaml +78 -0
  72. package/rules/community-merged/cwe-242/unsafe.yaml +25 -0
  73. package/rules/community-merged/cwe-250/docker-arbitrary-container-run.yaml +39 -0
  74. package/rules/community-merged/cwe-269/do-privileged-use.yaml +36 -0
  75. package/rules/community-merged/cwe-276/file_permission.yaml +32 -0
  76. package/rules/community-merged/cwe-276/insecure-file-permissions.yaml +64 -0
  77. package/rules/community-merged/cwe-276/overly-permissive-file-permission.yaml +50 -0
  78. package/rules/community-merged/cwe-287/unverified-jwt-decode.yaml +51 -0
  79. package/rules/community-merged/cwe-289/handler-assignment-from-multiple-sources.yaml +49 -0
  80. package/rules/community-merged/cwe-295/disabled-cert-validation.yaml +36 -0
  81. package/rules/community-merged/cwe-295/unverified-ssl-context.yaml +35 -0
  82. package/rules/community-merged/cwe-297/insecure-smtp-connection.yaml +35 -0
  83. package/rules/community-merged/cwe-300/grpc-client-insecure-connection.yaml +35 -0
  84. package/rules/community-merged/cwe-300/grpc-server-insecure-connection.yaml +45 -0
  85. package/rules/community-merged/cwe-310/aead-no-final.yaml +39 -0
  86. package/rules/community-merged/cwe-310/gcm-no-tag-length.yaml +35 -0
  87. package/rules/community-merged/cwe-319/cookie-issecure-false.yaml +38 -0
  88. package/rules/community-merged/cwe-319/detect-insecure-websocket.yaml +33 -0
  89. package/rules/community-merged/cwe-319/http-not-https-connection.yaml +29 -0
  90. package/rules/community-merged/cwe-319/security.yaml +36 -0
  91. package/rules/community-merged/cwe-319/sequelize-enforce-tls.yaml +61 -0
  92. package/rules/community-merged/cwe-319/unencrypted-socket.yaml +38 -0
  93. package/rules/community-merged/cwe-322/insecure_ssh.yaml +31 -0
  94. package/rules/community-merged/cwe-322/paramiko-implicit-trust-host-key.yaml +35 -0
  95. package/rules/community-merged/cwe-323/gcm-detection.yaml +39 -0
  96. package/rules/community-merged/cwe-323/gcm-nonce-reuse.yaml +30 -0
  97. package/rules/community-merged/cwe-326/insufficient-dsa-key-size.yaml +41 -0
  98. package/rules/community-merged/cwe-326/insufficient-ec-key-size.yaml +41 -0
  99. package/rules/community-merged/cwe-328/sha224-hash.yaml +46 -0
  100. package/rules/community-merged/cwe-328/use_of_weak_crypto.yaml +133 -0
  101. package/rules/community-merged/cwe-330/insecure-uuid-version.yaml +35 -0
  102. package/rules/community-merged/cwe-330/weak-random.yaml +32 -0
  103. package/rules/community-merged/cwe-338/detect-pseudoRandomBytes.yaml +33 -0
  104. package/rules/community-merged/cwe-345/jwt-decode-without-verify.yaml +39 -0
  105. package/rules/community-merged/cwe-345/jwt-parse-unverified.yaml +34 -0
  106. package/rules/community-merged/cwe-352/websocket-missing-origin-check.yaml +41 -0
  107. package/rules/community-merged/cwe-377/bad_tmp.yaml +30 -0
  108. package/rules/community-merged/cwe-400/ajv-allerrors-true.yaml +34 -0
  109. package/rules/community-merged/cwe-400/decompression_bomb.yaml +63 -0
  110. package/rules/community-merged/cwe-436/shared-url-struct-mutation.yaml +53 -0
  111. package/rules/community-merged/cwe-451/x-frame-options-misconfiguration.yaml +74 -0
  112. package/rules/community-merged/cwe-454/tainted-env-from-http-request.yaml +47 -0
  113. package/rules/community-merged/cwe-470/unsafe-reflect-by-name.yaml +44 -0
  114. package/rules/community-merged/cwe-470/unsafe-reflection.yaml +40 -0
  115. package/rules/community-merged/cwe-477/mongodb.yaml +27 -0
  116. package/rules/community-merged/cwe-489/debug-enabled.yaml +29 -0
  117. package/rules/community-merged/cwe-489/debug-template-tag.yaml +31 -0
  118. package/rules/community-merged/cwe-489/pprof.yaml +41 -0
  119. package/rules/community-merged/cwe-521/password-empty-string.yaml +40 -0
  120. package/rules/community-merged/cwe-521/use-none-for-password-default.yaml +43 -0
  121. package/rules/community-merged/cwe-522/express-cookie-settings.yaml +364 -0
  122. package/rules/community-merged/cwe-522/jwt-exposed-credentials.yaml +35 -0
  123. package/rules/community-merged/cwe-522/jwt-hardcode.yaml +31 -0
  124. package/rules/community-merged/cwe-522/remote-property-injection.yaml +76 -0
  125. package/rules/community-merged/cwe-523/no-auth-over-http.yaml +39 -0
  126. package/rules/community-merged/cwe-532/logger-credential-leak.yaml +38 -0
  127. package/rules/community-merged/cwe-548/express-check-directory-listing.yaml +55 -0
  128. package/rules/community-merged/cwe-548/fs-directory-listing.yaml +50 -0
  129. package/rules/community-merged/cwe-553/python-reverse-shell.yaml +33 -0
  130. package/rules/community-merged/cwe-601/express-open-redirect.yaml +115 -0
  131. package/rules/community-merged/cwe-601/open-redirect.yaml +96 -0
  132. package/rules/community-merged/cwe-614/cookie-missing-secure-flag.yaml +39 -0
  133. package/rules/community-merged/cwe-614/cookie-missing-secure.yaml +41 -0
  134. package/rules/community-merged/cwe-614/secure-cookies.yaml +60 -0
  135. package/rules/community-merged/cwe-614/secure-set-cookie.yaml +44 -0
  136. package/rules/community-merged/cwe-614/session-cookie-missing-secure.yaml +40 -0
  137. package/rules/community-merged/cwe-643/tainted-xpath-from-http-request.yaml +39 -0
  138. package/rules/community-merged/cwe-668/app-run-param-config.yaml +25 -0
  139. package/rules/community-merged/cwe-668/app-run-security-config.yaml +31 -0
  140. package/rules/community-merged/cwe-673/flask-url-for-external-true.yaml +35 -0
  141. package/rules/community-merged/cwe-704/bad-hexa-conversion.yaml +33 -0
  142. package/rules/community-merged/cwe-704/nan-injection.yaml +46 -0
  143. package/rules/community-merged/cwe-706/non-literal-import.yaml +31 -0
  144. package/rules/community-merged/cwe-706/require-request.yaml +67 -0
  145. package/rules/community-merged/cwe-706/res-render-injection.yaml +70 -0
  146. package/rules/community-merged/cwe-73/express-res-sendfile.yaml +77 -0
  147. package/rules/community-merged/cwe-73/secure-static-file-serve.yaml +30 -0
  148. package/rules/community-merged/cwe-74/xss-html-email-body.yaml +204 -0
  149. package/rules/community-merged/cwe-74/xss-send-mail-html-message.yaml +242 -0
  150. package/rules/community-merged/cwe-770/missing-throttle-config.yaml +38 -0
  151. package/rules/community-merged/cwe-776/use-defused-xmlrpc.yaml +32 -0
  152. package/rules/community-merged/cwe-798/express-jwt-hardcoded-secret.yaml +57 -0
  153. package/rules/community-merged/cwe-798/express-session-hardcoded-secret.yaml +58 -0
  154. package/rules/community-merged/cwe-798/jwt-hardcode.yaml +55 -0
  155. package/rules/community-merged/cwe-80/unsafe-serialize-javascript.yaml +33 -0
  156. package/rules/community-merged/cwe-863/security-constraint-http-method.yaml +32 -0
  157. package/rules/community-merged/cwe-90/ldap-entry-poisoning.yaml +42 -0
  158. package/rules/community-merged/cwe-90/ldap-injection.yaml +83 -0
  159. package/rules/community-merged/cwe-91/twiml-injection.yaml +51 -0
  160. package/rules/community-merged/cwe-913/dynamic-httptrace-clienttrace.yaml +40 -0
  161. package/rules/community-merged/cwe-913/reflect-makefunc.yaml +28 -0
  162. package/rules/community-merged/cwe-915/mass-assignment.yaml +33 -0
  163. package/rules/community-merged/cwe-915/tainted-sql-string.yaml +48 -0
  164. package/rules/community-merged/cwe-916/unsafe-argon2-config.yaml +48 -0
  165. package/rules/community-merged/cwe-926/exported_activity.yaml +39 -0
  166. package/rules/community-merged/cwe-93/crlf-injection-logs.yaml +87 -0
  167. package/rules/community-merged/cwe-93/request-data-write.yaml +200 -0
  168. package/rules/community-merged/cwe-939/dynamic-urllib-use-detected.yaml +58 -0
  169. package/rules/community-merged/cwe-94/dangerous-exec-cmd.yaml +87 -0
  170. package/rules/community-merged/cwe-94/dangerous-exec-command.yaml +63 -0
  171. package/rules/community-merged/cwe-942/wildcard-cors.yaml +39 -0
  172. package/rules/community-merged/cwe-95/seam-log-injection.yaml +41 -0
  173. package/rules/community-merged/cwe-95/spring-jsp-eval.yaml +30 -0
  174. package/rules/community-merged/cwe-95/user-eval.yaml +67 -0
  175. package/rules/community-merged/cwe-95/user-exec.yaml +67 -0
  176. package/rules/community-merged/cwe-96/globals-as-template-context.yaml +41 -0
  177. package/rules/community-merged/cwe-96/locals-as-template-context.yaml +41 -0
  178. package/rules/iac/ansible/zm-ansible-cwe269-privilege-escalation.yaml +12 -0
  179. package/rules/iac/ansible/zm-ansible-cwe532-no-log.yaml +42 -0
  180. package/rules/iac/ansible/zm-ansible-cwe78-unsafe-module.yaml +75 -0
  181. package/rules/iac/ansible/zm-ansible-cwe798-mysql-lineinfile.yaml +86 -0
  182. package/rules/iac/terraform/zm-tf-cwe284-gcp-firewall-eks.yaml +78 -0
  183. package/rules/iac/terraform/zm-tf-cwe284-sg-world-ingress.yaml +70 -0
  184. package/rules/iac/terraform/zm-tf-cwe285-iam-wildcard.yaml +46 -0
  185. package/rules/iac/terraform/zm-tf-cwe312-state-secrets.yaml +46 -0
  186. package/rules/iac/terraform/zm-tf-cwe319-azure-storage-mysql.yaml +69 -0
  187. package/rules/iac/terraform/zm-tf-cwe798-ecs-lambda-secrets.yaml +85 -0
  188. package/rules/iac/zm-docker-cwe1104-add-instead-of-copy.yaml +37 -0
  189. package/rules/iac/zm-docker-cwe1104-base-image.yaml +61 -0
  190. package/rules/iac/zm-docker-cwe1104-cleanup-dockerignore.yaml +67 -0
  191. package/rules/iac/zm-docker-cwe1104-multistage.yaml +33 -0
  192. package/rules/iac/zm-docker-cwe1104-package-cache.yaml +72 -0
  193. package/rules/iac/zm-docker-cwe250-docker-sock.yaml +31 -0
  194. package/rules/iac/zm-docker-cwe250-suid.yaml +33 -0
  195. package/rules/iac/zm-docker-cwe311-secrets-in-build-arg.yaml +64 -0
  196. package/rules/iac/zm-docker-cwe400-resource-limit.yaml +18 -6
  197. package/rules/iac/zm-docker-cwe668-workdir.yaml +36 -0
  198. package/rules/iac/zm-docker-cwe754-healthcheck.yaml +38 -0
  199. package/rules/iac/zm-docker-cwe78-curl-pipe.yaml +42 -0
  200. package/rules/iac/zm-docker-cwe798-arg-defaults.yaml +43 -0
  201. package/rules/iac/zm-docker-cwe798-env-secrets.yaml +48 -0
  202. package/rules/iac/zm-k8s-cwe200-configmap-creds.yaml +31 -0
  203. package/rules/iac/zm-k8s-cwe200-networkpolicy.yaml +62 -0
  204. package/rules/iac/zm-k8s-cwe200-sa-automount.yaml +38 -0
  205. package/rules/iac/zm-k8s-cwe200-service-exposure.yaml +50 -0
  206. package/rules/iac/zm-k8s-cwe200-verbosity-high.yaml +80 -0
  207. package/rules/iac/zm-k8s-cwe250-capabilities.yaml +84 -0
  208. package/rules/iac/zm-k8s-cwe250-hostpath.yaml +66 -0
  209. package/rules/iac/zm-k8s-cwe285-rbac.yaml +130 -0
  210. package/rules/iac/zm-k8s-cwe312-secret.yaml +60 -0
  211. package/rules/iac/zm-k8s-cwe319-ingress-tls.yaml +75 -0
  212. package/rules/iac/zm-k8s-cwe400-replicas.yaml +38 -0
  213. package/rules/iac/zm-k8s-psp-missing.yaml +59 -0
  214. package/rules/iac/zm-k8s-securitycontext-hardening.yaml +116 -0
  215. package/rules/iac/zm-tf-cwe200-ecr-public.yaml +18 -0
  216. package/rules/iac/zm-tf-cwe284-sg-egress-any.yaml +32 -0
  217. package/rules/iac/zm-tf-cwe319-rds-public-snapshot.yaml +46 -0
  218. package/rules/nvd-generated/cwe_1336/cl-1336-go-207.yaml +43 -0
  219. package/rules/nvd-generated/cwe_1336/cl-1336-java-194.yaml +43 -0
  220. package/rules/nvd-generated/cwe_1336/cl-1336-java-195.yaml +43 -0
  221. package/rules/nvd-generated/cwe_1336/cl-1336-java-196.yaml +43 -0
  222. package/rules/nvd-generated/cwe_1336/cl-1336-java-197.yaml +43 -0
  223. package/rules/nvd-generated/cwe_1336/cl-1336-java-198.yaml +43 -0
  224. package/rules/nvd-generated/cwe_1336/cl-1336-javascript-199.yaml +43 -0
  225. package/rules/nvd-generated/cwe_1336/cl-1336-javascript-200.yaml +43 -0
  226. package/rules/nvd-generated/cwe_1336/cl-1336-javascript-201.yaml +43 -0
  227. package/rules/nvd-generated/cwe_1336/cl-1336-javascript-202.yaml +43 -0
  228. package/rules/nvd-generated/cwe_1336/cl-1336-javascript-203.yaml +43 -0
  229. package/rules/nvd-generated/cwe_1336/cl-1336-php-208.yaml +43 -0
  230. package/rules/nvd-generated/cwe_1336/cl-1336-php-209.yaml +43 -0
  231. package/rules/nvd-generated/cwe_1336/cl-1336-python-204.yaml +43 -0
  232. package/rules/nvd-generated/cwe_1336/cl-1336-python-205.yaml +43 -0
  233. package/rules/nvd-generated/cwe_1336/cl-1336-python-206.yaml +43 -0
  234. package/rules/nvd-generated/cwe_20/cl-20-all-233.yaml +43 -0
  235. package/rules/nvd-generated/cwe_20/cl-20-java-227.yaml +43 -0
  236. package/rules/nvd-generated/cwe_20/cl-20-java-228.yaml +43 -0
  237. package/rules/nvd-generated/cwe_20/cl-20-javascript-229.yaml +43 -0
  238. package/rules/nvd-generated/cwe_20/cl-20-python-231.yaml +44 -0
  239. package/rules/nvd-generated/cwe_20/cl-20-python-232.yaml +43 -0
  240. package/rules/nvd-generated/cwe_200/cl-200-all-189.yaml +46 -0
  241. package/rules/nvd-generated/cwe_200/cl-200-all-190.yaml +45 -0
  242. package/rules/nvd-generated/cwe_200/cl-200-all-191.yaml +43 -0
  243. package/rules/nvd-generated/cwe_200/cl-200-all-192.yaml +43 -0
  244. package/rules/nvd-generated/cwe_200/cl-200-all-193.yaml +43 -0
  245. package/rules/nvd-generated/cwe_22/cl-22-go-074.yaml +43 -0
  246. package/rules/nvd-generated/cwe_22/cl-22-go-075.yaml +43 -0
  247. package/rules/nvd-generated/cwe_22/cl-22-go-076.yaml +43 -0
  248. package/rules/nvd-generated/cwe_22/cl-22-java-060.yaml +43 -0
  249. package/rules/nvd-generated/cwe_22/cl-22-java-061.yaml +43 -0
  250. package/rules/nvd-generated/cwe_22/cl-22-java-062.yaml +43 -0
  251. package/rules/nvd-generated/cwe_22/cl-22-java-063.yaml +43 -0
  252. package/rules/nvd-generated/cwe_22/cl-22-javascript-067.yaml +43 -0
  253. package/rules/nvd-generated/cwe_22/cl-22-javascript-068.yaml +43 -0
  254. package/rules/nvd-generated/cwe_22/cl-22-javascript-069.yaml +43 -0
  255. package/rules/nvd-generated/cwe_22/cl-22-php-064.yaml +43 -0
  256. package/rules/nvd-generated/cwe_22/cl-22-php-065.yaml +43 -0
  257. package/rules/nvd-generated/cwe_22/cl-22-php-066.yaml +44 -0
  258. package/rules/nvd-generated/cwe_22/cl-22-python-071.yaml +43 -0
  259. package/rules/nvd-generated/cwe_22/cl-22-python-072.yaml +43 -0
  260. package/rules/nvd-generated/cwe_22/cl-22-python-073.yaml +43 -0
  261. package/rules/nvd-generated/cwe_287/cl-287-go-187.yaml +43 -0
  262. package/rules/nvd-generated/cwe_287/cl-287-go-188.yaml +43 -0
  263. package/rules/nvd-generated/cwe_287/cl-287-java-180.yaml +43 -0
  264. package/rules/nvd-generated/cwe_287/cl-287-java-181.yaml +43 -0
  265. package/rules/nvd-generated/cwe_287/cl-287-java-182.yaml +43 -0
  266. package/rules/nvd-generated/cwe_287/cl-287-javascript-183.yaml +43 -0
  267. package/rules/nvd-generated/cwe_287/cl-287-javascript-184.yaml +43 -0
  268. package/rules/nvd-generated/cwe_287/cl-287-python-185.yaml +44 -0
  269. package/rules/nvd-generated/cwe_287/cl-287-python-186.yaml +43 -0
  270. package/rules/nvd-generated/cwe_327/cl-327-go-169.yaml +43 -0
  271. package/rules/nvd-generated/cwe_327/cl-327-go-170.yaml +43 -0
  272. package/rules/nvd-generated/cwe_327/cl-327-java-161.yaml +43 -0
  273. package/rules/nvd-generated/cwe_327/cl-327-java-162.yaml +43 -0
  274. package/rules/nvd-generated/cwe_327/cl-327-java-163.yaml +43 -0
  275. package/rules/nvd-generated/cwe_327/cl-327-java-164.yaml +43 -0
  276. package/rules/nvd-generated/cwe_327/cl-327-javascript-165.yaml +43 -0
  277. package/rules/nvd-generated/cwe_327/cl-327-javascript-166.yaml +43 -0
  278. package/rules/nvd-generated/cwe_327/cl-327-php-171.yaml +43 -0
  279. package/rules/nvd-generated/cwe_327/cl-327-php-172.yaml +43 -0
  280. package/rules/nvd-generated/cwe_327/cl-327-python-167.yaml +43 -0
  281. package/rules/nvd-generated/cwe_327/cl-327-python-168.yaml +43 -0
  282. package/rules/nvd-generated/cwe_346/cl-346-all-213.yaml +43 -0
  283. package/rules/nvd-generated/cwe_346/cl-346-all-214.yaml +43 -0
  284. package/rules/nvd-generated/cwe_346/cl-346-all-215.yaml +43 -0
  285. package/rules/nvd-generated/cwe_352/cl-352-java-153.yaml +43 -0
  286. package/rules/nvd-generated/cwe_352/cl-352-java-154.yaml +43 -0
  287. package/rules/nvd-generated/cwe_352/cl-352-javascript-156.yaml +44 -0
  288. package/rules/nvd-generated/cwe_352/cl-352-php-155.yaml +44 -0
  289. package/rules/nvd-generated/cwe_352/cl-352-python-157.yaml +43 -0
  290. package/rules/nvd-generated/cwe_434/cl-434-go-140.yaml +43 -0
  291. package/rules/nvd-generated/cwe_434/cl-434-java-130.yaml +43 -0
  292. package/rules/nvd-generated/cwe_434/cl-434-java-131.yaml +43 -0
  293. package/rules/nvd-generated/cwe_434/cl-434-java-132.yaml +43 -0
  294. package/rules/nvd-generated/cwe_434/cl-434-javascript-138.yaml +43 -0
  295. package/rules/nvd-generated/cwe_434/cl-434-javascript-139.yaml +43 -0
  296. package/rules/nvd-generated/cwe_434/cl-434-php-133.yaml +43 -0
  297. package/rules/nvd-generated/cwe_434/cl-434-php-134.yaml +44 -0
  298. package/rules/nvd-generated/cwe_434/cl-434-php-135.yaml +43 -0
  299. package/rules/nvd-generated/cwe_434/cl-434-python-136.yaml +43 -0
  300. package/rules/nvd-generated/cwe_434/cl-434-python-137.yaml +43 -0
  301. package/rules/nvd-generated/cwe_501/cl-501-all-239.yaml +43 -0
  302. package/rules/nvd-generated/cwe_501/cl-501-all-240.yaml +43 -0
  303. package/rules/nvd-generated/cwe_501/cl-501-all-241.yaml +43 -0
  304. package/rules/nvd-generated/cwe_502/cl-502-go-109.yaml +44 -0
  305. package/rules/nvd-generated/cwe_502/cl-502-go-110.yaml +44 -0
  306. package/rules/nvd-generated/cwe_502/cl-502-java-092.yaml +43 -0
  307. package/rules/nvd-generated/cwe_502/cl-502-java-093.yaml +43 -0
  308. package/rules/nvd-generated/cwe_502/cl-502-java-094.yaml +43 -0
  309. package/rules/nvd-generated/cwe_502/cl-502-java-095.yaml +43 -0
  310. package/rules/nvd-generated/cwe_502/cl-502-java-096.yaml +43 -0
  311. package/rules/nvd-generated/cwe_502/cl-502-java-097.yaml +43 -0
  312. package/rules/nvd-generated/cwe_502/cl-502-java-098.yaml +43 -0
  313. package/rules/nvd-generated/cwe_502/cl-502-java-099.yaml +43 -0
  314. package/rules/nvd-generated/cwe_502/cl-502-javascript-106.yaml +43 -0
  315. package/rules/nvd-generated/cwe_502/cl-502-javascript-107.yaml +43 -0
  316. package/rules/nvd-generated/cwe_502/cl-502-javascript-108.yaml +43 -0
  317. package/rules/nvd-generated/cwe_502/cl-502-php-100.yaml +43 -0
  318. package/rules/nvd-generated/cwe_502/cl-502-php-101.yaml +43 -0
  319. package/rules/nvd-generated/cwe_502/cl-502-php-102.yaml +44 -0
  320. package/rules/nvd-generated/cwe_502/cl-502-python-103.yaml +43 -0
  321. package/rules/nvd-generated/cwe_502/cl-502-python-104.yaml +43 -0
  322. package/rules/nvd-generated/cwe_502/cl-502-python-105.yaml +43 -0
  323. package/rules/nvd-generated/cwe_532/cl-532-all-158.yaml +46 -0
  324. package/rules/nvd-generated/cwe_532/cl-532-all-159.yaml +45 -0
  325. package/rules/nvd-generated/cwe_532/cl-532-all-160.yaml +45 -0
  326. package/rules/nvd-generated/cwe_601/cl-601-go-178.yaml +43 -0
  327. package/rules/nvd-generated/cwe_601/cl-601-java-173.yaml +43 -0
  328. package/rules/nvd-generated/cwe_601/cl-601-javascript-174.yaml +43 -0
  329. package/rules/nvd-generated/cwe_601/cl-601-javascript-175.yaml +43 -0
  330. package/rules/nvd-generated/cwe_601/cl-601-php-179.yaml +43 -0
  331. package/rules/nvd-generated/cwe_601/cl-601-python-176.yaml +43 -0
  332. package/rules/nvd-generated/cwe_601/cl-601-python-177.yaml +43 -0
  333. package/rules/nvd-generated/cwe_611/cl-611-go-123.yaml +43 -0
  334. package/rules/nvd-generated/cwe_611/cl-611-java-111.yaml +43 -0
  335. package/rules/nvd-generated/cwe_611/cl-611-java-112.yaml +43 -0
  336. package/rules/nvd-generated/cwe_611/cl-611-java-113.yaml +43 -0
  337. package/rules/nvd-generated/cwe_611/cl-611-java-114.yaml +43 -0
  338. package/rules/nvd-generated/cwe_611/cl-611-java-115.yaml +43 -0
  339. package/rules/nvd-generated/cwe_611/cl-611-javascript-121.yaml +43 -0
  340. package/rules/nvd-generated/cwe_611/cl-611-javascript-122.yaml +43 -0
  341. package/rules/nvd-generated/cwe_611/cl-611-php-116.yaml +43 -0
  342. package/rules/nvd-generated/cwe_611/cl-611-php-117.yaml +43 -0
  343. package/rules/nvd-generated/cwe_611/cl-611-python-118.yaml +43 -0
  344. package/rules/nvd-generated/cwe_611/cl-611-python-119.yaml +43 -0
  345. package/rules/nvd-generated/cwe_611/cl-611-python-120.yaml +43 -0
  346. package/rules/nvd-generated/cwe_78/cl-78-go-040.yaml +43 -0
  347. package/rules/nvd-generated/cwe_78/cl-78-go-041.yaml +43 -0
  348. package/rules/nvd-generated/cwe_78/cl-78-java-026.yaml +43 -0
  349. package/rules/nvd-generated/cwe_78/cl-78-java-027.yaml +43 -0
  350. package/rules/nvd-generated/cwe_78/cl-78-java-028.yaml +43 -0
  351. package/rules/nvd-generated/cwe_78/cl-78-java-029.yaml +43 -0
  352. package/rules/nvd-generated/cwe_78/cl-78-javascript-037.yaml +43 -0
  353. package/rules/nvd-generated/cwe_78/cl-78-javascript-038.yaml +44 -0
  354. package/rules/nvd-generated/cwe_78/cl-78-javascript-039.yaml +43 -0
  355. package/rules/nvd-generated/cwe_78/cl-78-php-030.yaml +43 -0
  356. package/rules/nvd-generated/cwe_78/cl-78-php-031.yaml +43 -0
  357. package/rules/nvd-generated/cwe_78/cl-78-php-032.yaml +43 -0
  358. package/rules/nvd-generated/cwe_78/cl-78-php-033.yaml +44 -0
  359. package/rules/nvd-generated/cwe_78/cl-78-python-034.yaml +43 -0
  360. package/rules/nvd-generated/cwe_78/cl-78-python-035.yaml +43 -0
  361. package/rules/nvd-generated/cwe_78/cl-78-python-036.yaml +46 -0
  362. package/rules/nvd-generated/cwe_79/cl-79-go-058.yaml +44 -0
  363. package/rules/nvd-generated/cwe_79/cl-79-go-059.yaml +44 -0
  364. package/rules/nvd-generated/cwe_79/cl-79-java-042.yaml +43 -0
  365. package/rules/nvd-generated/cwe_79/cl-79-java-043.yaml +43 -0
  366. package/rules/nvd-generated/cwe_79/cl-79-java-044.yaml +44 -0
  367. package/rules/nvd-generated/cwe_79/cl-79-java-045.yaml +43 -0
  368. package/rules/nvd-generated/cwe_79/cl-79-javascript-049.yaml +45 -0
  369. package/rules/nvd-generated/cwe_79/cl-79-javascript-050.yaml +45 -0
  370. package/rules/nvd-generated/cwe_79/cl-79-javascript-051.yaml +44 -0
  371. package/rules/nvd-generated/cwe_79/cl-79-javascript-052.yaml +44 -0
  372. package/rules/nvd-generated/cwe_79/cl-79-javascript-053.yaml +44 -0
  373. package/rules/nvd-generated/cwe_79/cl-79-javascript-054.yaml +44 -0
  374. package/rules/nvd-generated/cwe_79/cl-79-javascript-055.yaml +44 -0
  375. package/rules/nvd-generated/cwe_79/cl-79-php-046.yaml +43 -0
  376. package/rules/nvd-generated/cwe_79/cl-79-php-047.yaml +44 -0
  377. package/rules/nvd-generated/cwe_79/cl-79-php-048.yaml +44 -0
  378. package/rules/nvd-generated/cwe_79/cl-79-python-056.yaml +44 -0
  379. package/rules/nvd-generated/cwe_79/cl-79-python-057.yaml +44 -0
  380. package/rules/nvd-generated/cwe_798/cl-798-all-124.yaml +45 -0
  381. package/rules/nvd-generated/cwe_798/cl-798-all-125.yaml +43 -0
  382. package/rules/nvd-generated/cwe_798/cl-798-all-126.yaml +43 -0
  383. package/rules/nvd-generated/cwe_798/cl-798-all-127.yaml +43 -0
  384. package/rules/nvd-generated/cwe_798/cl-798-all-128.yaml +43 -0
  385. package/rules/nvd-generated/cwe_798/cl-798-all-129.yaml +43 -0
  386. package/rules/nvd-generated/cwe_862/cl-862-go-150.yaml +44 -0
  387. package/rules/nvd-generated/cwe_862/cl-862-go-151.yaml +43 -0
  388. package/rules/nvd-generated/cwe_862/cl-862-java-141.yaml +44 -0
  389. package/rules/nvd-generated/cwe_862/cl-862-java-142.yaml +44 -0
  390. package/rules/nvd-generated/cwe_862/cl-862-java-143.yaml +43 -0
  391. package/rules/nvd-generated/cwe_862/cl-862-javascript-144.yaml +44 -0
  392. package/rules/nvd-generated/cwe_862/cl-862-javascript-145.yaml +44 -0
  393. package/rules/nvd-generated/cwe_862/cl-862-javascript-146.yaml +44 -0
  394. package/rules/nvd-generated/cwe_862/cl-862-php-152.yaml +44 -0
  395. package/rules/nvd-generated/cwe_862/cl-862-python-148.yaml +44 -0
  396. package/rules/nvd-generated/cwe_862/cl-862-python-149.yaml +43 -0
  397. package/rules/nvd-generated/cwe_89/cl-89-go-023.yaml +43 -0
  398. package/rules/nvd-generated/cwe_89/cl-89-go-024.yaml +43 -0
  399. package/rules/nvd-generated/cwe_89/cl-89-go-025.yaml +43 -0
  400. package/rules/nvd-generated/cwe_89/cl-89-java-001.yaml +43 -0
  401. package/rules/nvd-generated/cwe_89/cl-89-java-002.yaml +43 -0
  402. package/rules/nvd-generated/cwe_89/cl-89-java-003.yaml +43 -0
  403. package/rules/nvd-generated/cwe_89/cl-89-java-004.yaml +43 -0
  404. package/rules/nvd-generated/cwe_89/cl-89-java-005.yaml +43 -0
  405. package/rules/nvd-generated/cwe_89/cl-89-java-006.yaml +43 -0
  406. package/rules/nvd-generated/cwe_89/cl-89-java-007.yaml +43 -0
  407. package/rules/nvd-generated/cwe_89/cl-89-java-008.yaml +43 -0
  408. package/rules/nvd-generated/cwe_89/cl-89-javascript-018.yaml +43 -0
  409. package/rules/nvd-generated/cwe_89/cl-89-javascript-019.yaml +43 -0
  410. package/rules/nvd-generated/cwe_89/cl-89-javascript-020.yaml +43 -0
  411. package/rules/nvd-generated/cwe_89/cl-89-javascript-021.yaml +43 -0
  412. package/rules/nvd-generated/cwe_89/cl-89-javascript-022.yaml +43 -0
  413. package/rules/nvd-generated/cwe_89/cl-89-php-009.yaml +44 -0
  414. package/rules/nvd-generated/cwe_89/cl-89-php-010.yaml +44 -0
  415. package/rules/nvd-generated/cwe_89/cl-89-php-011.yaml +44 -0
  416. package/rules/nvd-generated/cwe_89/cl-89-php-012.yaml +44 -0
  417. package/rules/nvd-generated/cwe_89/cl-89-php-013.yaml +44 -0
  418. package/rules/nvd-generated/cwe_89/cl-89-python-014.yaml +43 -0
  419. package/rules/nvd-generated/cwe_89/cl-89-python-015.yaml +43 -0
  420. package/rules/nvd-generated/cwe_89/cl-89-python-016.yaml +43 -0
  421. package/rules/nvd-generated/cwe_89/cl-89-python-017.yaml +43 -0
  422. package/rules/nvd-generated/cwe_915/cl-915-javascript-216.yaml +43 -0
  423. package/rules/nvd-generated/cwe_915/cl-915-javascript-217.yaml +43 -0
  424. package/rules/nvd-generated/cwe_915/cl-915-javascript-218.yaml +43 -0
  425. package/rules/nvd-generated/cwe_915/cl-915-javascript-219.yaml +43 -0
  426. package/rules/nvd-generated/cwe_918/cl-918-go-088.yaml +43 -0
  427. package/rules/nvd-generated/cwe_918/cl-918-go-089.yaml +43 -0
  428. package/rules/nvd-generated/cwe_918/cl-918-java-077.yaml +43 -0
  429. package/rules/nvd-generated/cwe_918/cl-918-java-078.yaml +43 -0
  430. package/rules/nvd-generated/cwe_918/cl-918-java-079.yaml +43 -0
  431. package/rules/nvd-generated/cwe_918/cl-918-java-080.yaml +44 -0
  432. package/rules/nvd-generated/cwe_918/cl-918-javascript-081.yaml +43 -0
  433. package/rules/nvd-generated/cwe_918/cl-918-javascript-082.yaml +43 -0
  434. package/rules/nvd-generated/cwe_918/cl-918-javascript-083.yaml +43 -0
  435. package/rules/nvd-generated/cwe_918/cl-918-php-090.yaml +43 -0
  436. package/rules/nvd-generated/cwe_918/cl-918-php-091.yaml +43 -0
  437. package/rules/nvd-generated/cwe_918/cl-918-python-084.yaml +43 -0
  438. package/rules/nvd-generated/cwe_918/cl-918-python-085.yaml +43 -0
  439. package/rules/nvd-generated/cwe_918/cl-918-python-086.yaml +43 -0
  440. package/rules/nvd-generated/cwe_918/cl-918-python-087.yaml +43 -0
  441. package/rules/nvd-generated/cwe_943/cl-943-java-238.yaml +36 -0
  442. package/rules/nvd-generated/cwe_943/cl-943-javascript-234.yaml +36 -0
  443. package/rules/nvd-generated/cwe_943/cl-943-javascript-235.yaml +36 -0
  444. package/rules/nvd-generated/cwe_943/cl-943-javascript-236.yaml +36 -0
  445. package/rules/nvd-generated/cwe_943/cl-943-python-237.yaml +36 -0
  446. package/rules/quarantined/cwe-20/cl-20-all-233.yaml +43 -0
  447. package/rules/quarantined/cwe-20/cl-20-java-227.yaml +43 -0
  448. package/rules/quarantined/cwe-20/cl-20-java-228.yaml +43 -0
  449. package/rules/quarantined/cwe-20/cl-20-javascript-229.yaml +43 -0
  450. package/rules/quarantined/cwe-20/cl-20-python-231.yaml +44 -0
  451. package/rules/quarantined/cwe-20/cl-20-python-232.yaml +43 -0
  452. package/rules/quarantined/cwe-20/zm-js-cwe20-nextjs-api-routes.yaml +142 -0
  453. package/rules/quarantined/cwe-200/cl-200-all-189.yaml +46 -0
  454. package/rules/quarantined/cwe-200/cl-200-all-190.yaml +45 -0
  455. package/rules/quarantined/cwe-200/cl-200-all-191.yaml +43 -0
  456. package/rules/quarantined/cwe-200/cl-200-all-192.yaml +43 -0
  457. package/rules/quarantined/cwe-200/cl-200-all-193.yaml +43 -0
  458. package/rules/quarantined/cwe-200/cwe-200-sensitive-data-exposure.yaml +62 -0
  459. package/rules/quarantined/cwe-200/zm-go-cwe200-grpc-metadata.yaml +41 -0
  460. package/rules/quarantined/cwe-200/zm-java-cwe200-actuator-exposure.yaml +9 -0
  461. package/rules/quarantined/cwe-200/zm-java-cwe200-info-disclosure.yaml +92 -0
  462. package/rules/quarantined/cwe-200/zm-js-cwe200-info-disclosure.yaml +96 -0
  463. package/rules/quarantined/cwe-200/zm-k8s-cwe200-service-account.yaml +84 -0
  464. package/rules/quarantined/cwe-200/zm-k8s-cwe200-verbosity-high.yaml +81 -0
  465. package/rules/quarantined/cwe-200/zm-py-django-cwe200-cwe798-cwe352-01.yaml +81 -0
  466. package/rules/quarantined/cwe-200/zm-py-flask-cwe200-cwe326-01.yaml +58 -0
  467. package/rules/quarantined/cwe-200/zm-tf-cwe200-ecr-public.yaml +19 -0
  468. package/rules/quarantined/cwe-200/zm-tf-cwe200-s3-bucket-public.yaml +101 -0
  469. package/rules/quarantined/cwe-532/cl-532-all-158.yaml +46 -0
  470. package/rules/quarantined/cwe-532/cl-532-all-159.yaml +45 -0
  471. package/rules/quarantined/cwe-532/cl-532-all-160.yaml +45 -0
  472. package/rules/quarantined/cwe-862/cl-862-go-150.yaml +44 -0
  473. package/rules/quarantined/cwe-862/cl-862-go-151.yaml +43 -0
  474. package/rules/quarantined/cwe-862/cl-862-java-141.yaml +44 -0
  475. package/rules/quarantined/cwe-862/cl-862-java-142.yaml +44 -0
  476. package/rules/quarantined/cwe-862/cl-862-java-143.yaml +43 -0
  477. package/rules/quarantined/cwe-862/cl-862-javascript-144.yaml +44 -0
  478. package/rules/quarantined/cwe-862/cl-862-javascript-145.yaml +44 -0
  479. package/rules/quarantined/cwe-862/cl-862-javascript-146.yaml +44 -0
  480. package/rules/quarantined/cwe-862/cl-862-php-152.yaml +44 -0
  481. package/rules/quarantined/cwe-862/cl-862-python-148.yaml +44 -0
  482. package/rules/quarantined/cwe-862/cl-862-python-149.yaml +43 -0
  483. package/rules/quarantined/cwe-862/cwe-862-missing-authorization.yaml +41 -0
  484. package/rules/quarantined/cwe-862/zm-java-cwe862-authz-depth.yaml +128 -0
  485. package/rules/quarantined/high-fp/cwe-22/zm-js-cwe22-path-traversal-fs.yaml +114 -0
  486. package/rules/quarantined/high-fp/cwe-22/zm-js-cwe22-pathtraversal.yaml +112 -0
  487. package/rules/quarantined/high-fp/cwe-287/zm-js-cwe287-aws-lambda-config.yaml +105 -0
  488. package/rules/quarantined/high-fp/cwe-501/zm-js-cwe501-graphql-injection.yaml +53 -0
  489. package/rules/quarantined/high-fp/cwe-502/zm-js-cwe502-deserialization-extended.yaml +98 -0
  490. package/rules/quarantined/high-fp/cwe-798/zm-ansible-cwe798-hardcoded-creds.yaml +94 -0
  491. package/rules/quarantined/nvd-generated/cwe-1336/cl-1336-go-207.yaml +50 -0
  492. package/rules/quarantined/nvd-generated/cwe-1336/cl-1336-java-194.yaml +50 -0
  493. package/rules/quarantined/nvd-generated/cwe-1336/cl-1336-java-195.yaml +50 -0
  494. package/rules/quarantined/nvd-generated/cwe-1336/cl-1336-java-196.yaml +50 -0
  495. package/rules/quarantined/nvd-generated/cwe-1336/cl-1336-java-197.yaml +50 -0
  496. package/rules/quarantined/nvd-generated/cwe-1336/cl-1336-java-198.yaml +50 -0
  497. package/rules/quarantined/nvd-generated/cwe-1336/cl-1336-javascript-199.yaml +50 -0
  498. package/rules/quarantined/nvd-generated/cwe-1336/cl-1336-javascript-200.yaml +50 -0
  499. package/rules/quarantined/nvd-generated/cwe-1336/cl-1336-javascript-201.yaml +50 -0
  500. package/rules/quarantined/nvd-generated/cwe-1336/cl-1336-javascript-202.yaml +50 -0
  501. package/rules/quarantined/nvd-generated/cwe-1336/cl-1336-javascript-203.yaml +50 -0
  502. package/rules/quarantined/nvd-generated/cwe-1336/cl-1336-php-208.yaml +50 -0
  503. package/rules/quarantined/nvd-generated/cwe-1336/cl-1336-php-209.yaml +50 -0
  504. package/rules/quarantined/nvd-generated/cwe-1336/cl-1336-python-204.yaml +50 -0
  505. package/rules/quarantined/nvd-generated/cwe-1336/cl-1336-python-205.yaml +50 -0
  506. package/rules/quarantined/nvd-generated/cwe-1336/cl-1336-python-206.yaml +50 -0
  507. package/rules/quarantined/nvd-generated/cwe-22/cl-22-go-074.yaml +50 -0
  508. package/rules/quarantined/nvd-generated/cwe-22/cl-22-go-075.yaml +50 -0
  509. package/rules/quarantined/nvd-generated/cwe-22/cl-22-go-076.yaml +50 -0
  510. package/rules/quarantined/nvd-generated/cwe-22/cl-22-java-060.yaml +50 -0
  511. package/rules/quarantined/nvd-generated/cwe-22/cl-22-java-061.yaml +50 -0
  512. package/rules/quarantined/nvd-generated/cwe-22/cl-22-java-062.yaml +50 -0
  513. package/rules/quarantined/nvd-generated/cwe-22/cl-22-java-063.yaml +50 -0
  514. package/rules/quarantined/nvd-generated/cwe-22/cl-22-javascript-067.yaml +50 -0
  515. package/rules/quarantined/nvd-generated/cwe-22/cl-22-javascript-068.yaml +50 -0
  516. package/rules/quarantined/nvd-generated/cwe-22/cl-22-javascript-069.yaml +50 -0
  517. package/rules/quarantined/nvd-generated/cwe-22/cl-22-php-064.yaml +50 -0
  518. package/rules/quarantined/nvd-generated/cwe-22/cl-22-php-065.yaml +50 -0
  519. package/rules/quarantined/nvd-generated/cwe-22/cl-22-php-066.yaml +51 -0
  520. package/rules/quarantined/nvd-generated/cwe-22/cl-22-python-071.yaml +50 -0
  521. package/rules/quarantined/nvd-generated/cwe-22/cl-22-python-072.yaml +50 -0
  522. package/rules/quarantined/nvd-generated/cwe-22/cl-22-python-073.yaml +50 -0
  523. package/rules/quarantined/nvd-generated/cwe-287/cl-287-go-187.yaml +50 -0
  524. package/rules/quarantined/nvd-generated/cwe-287/cl-287-go-188.yaml +50 -0
  525. package/rules/quarantined/nvd-generated/cwe-287/cl-287-java-180.yaml +50 -0
  526. package/rules/quarantined/nvd-generated/cwe-287/cl-287-java-181.yaml +50 -0
  527. package/rules/quarantined/nvd-generated/cwe-287/cl-287-java-182.yaml +50 -0
  528. package/rules/quarantined/nvd-generated/cwe-287/cl-287-javascript-183.yaml +50 -0
  529. package/rules/quarantined/nvd-generated/cwe-287/cl-287-javascript-184.yaml +50 -0
  530. package/rules/quarantined/nvd-generated/cwe-287/cl-287-python-185.yaml +51 -0
  531. package/rules/quarantined/nvd-generated/cwe-287/cl-287-python-186.yaml +50 -0
  532. package/rules/quarantined/nvd-generated/cwe-327/cl-327-go-169.yaml +50 -0
  533. package/rules/quarantined/nvd-generated/cwe-327/cl-327-go-170.yaml +50 -0
  534. package/rules/quarantined/nvd-generated/cwe-327/cl-327-java-161.yaml +50 -0
  535. package/rules/quarantined/nvd-generated/cwe-327/cl-327-java-162.yaml +50 -0
  536. package/rules/quarantined/nvd-generated/cwe-327/cl-327-java-163.yaml +50 -0
  537. package/rules/quarantined/nvd-generated/cwe-327/cl-327-java-164.yaml +50 -0
  538. package/rules/quarantined/nvd-generated/cwe-327/cl-327-javascript-165.yaml +50 -0
  539. package/rules/quarantined/nvd-generated/cwe-327/cl-327-javascript-166.yaml +50 -0
  540. package/rules/quarantined/nvd-generated/cwe-327/cl-327-php-171.yaml +50 -0
  541. package/rules/quarantined/nvd-generated/cwe-327/cl-327-php-172.yaml +50 -0
  542. package/rules/quarantined/nvd-generated/cwe-327/cl-327-python-167.yaml +50 -0
  543. package/rules/quarantined/nvd-generated/cwe-327/cl-327-python-168.yaml +50 -0
  544. package/rules/quarantined/nvd-generated/cwe-346/cl-346-all-213.yaml +50 -0
  545. package/rules/quarantined/nvd-generated/cwe-346/cl-346-all-214.yaml +50 -0
  546. package/rules/quarantined/nvd-generated/cwe-346/cl-346-all-215.yaml +50 -0
  547. package/rules/quarantined/nvd-generated/cwe-352/cl-352-java-153.yaml +50 -0
  548. package/rules/quarantined/nvd-generated/cwe-352/cl-352-java-154.yaml +50 -0
  549. package/rules/quarantined/nvd-generated/cwe-352/cl-352-javascript-156.yaml +51 -0
  550. package/rules/quarantined/nvd-generated/cwe-352/cl-352-php-155.yaml +51 -0
  551. package/rules/quarantined/nvd-generated/cwe-352/cl-352-python-157.yaml +50 -0
  552. package/rules/quarantined/nvd-generated/cwe-434/cl-434-go-140.yaml +50 -0
  553. package/rules/quarantined/nvd-generated/cwe-434/cl-434-java-130.yaml +50 -0
  554. package/rules/quarantined/nvd-generated/cwe-434/cl-434-java-131.yaml +50 -0
  555. package/rules/quarantined/nvd-generated/cwe-434/cl-434-java-132.yaml +50 -0
  556. package/rules/quarantined/nvd-generated/cwe-434/cl-434-javascript-138.yaml +50 -0
  557. package/rules/quarantined/nvd-generated/cwe-434/cl-434-javascript-139.yaml +50 -0
  558. package/rules/quarantined/nvd-generated/cwe-434/cl-434-php-133.yaml +50 -0
  559. package/rules/quarantined/nvd-generated/cwe-434/cl-434-php-134.yaml +51 -0
  560. package/rules/quarantined/nvd-generated/cwe-434/cl-434-php-135.yaml +50 -0
  561. package/rules/quarantined/nvd-generated/cwe-434/cl-434-python-136.yaml +50 -0
  562. package/rules/quarantined/nvd-generated/cwe-434/cl-434-python-137.yaml +50 -0
  563. package/rules/quarantined/nvd-generated/cwe-501/cl-501-all-239.yaml +50 -0
  564. package/rules/quarantined/nvd-generated/cwe-501/cl-501-all-240.yaml +50 -0
  565. package/rules/quarantined/nvd-generated/cwe-501/cl-501-all-241.yaml +50 -0
  566. package/rules/quarantined/nvd-generated/cwe-502/cl-502-go-109.yaml +51 -0
  567. package/rules/quarantined/nvd-generated/cwe-502/cl-502-go-110.yaml +51 -0
  568. package/rules/quarantined/nvd-generated/cwe-502/cl-502-java-092.yaml +50 -0
  569. package/rules/quarantined/nvd-generated/cwe-502/cl-502-java-093.yaml +50 -0
  570. package/rules/quarantined/nvd-generated/cwe-502/cl-502-java-094.yaml +50 -0
  571. package/rules/quarantined/nvd-generated/cwe-502/cl-502-java-095.yaml +50 -0
  572. package/rules/quarantined/nvd-generated/cwe-502/cl-502-java-096.yaml +50 -0
  573. package/rules/quarantined/nvd-generated/cwe-502/cl-502-java-097.yaml +50 -0
  574. package/rules/quarantined/nvd-generated/cwe-502/cl-502-java-098.yaml +50 -0
  575. package/rules/quarantined/nvd-generated/cwe-502/cl-502-java-099.yaml +50 -0
  576. package/rules/quarantined/nvd-generated/cwe-502/cl-502-javascript-106.yaml +50 -0
  577. package/rules/quarantined/nvd-generated/cwe-502/cl-502-javascript-107.yaml +50 -0
  578. package/rules/quarantined/nvd-generated/cwe-502/cl-502-javascript-108.yaml +50 -0
  579. package/rules/quarantined/nvd-generated/cwe-502/cl-502-php-100.yaml +50 -0
  580. package/rules/quarantined/nvd-generated/cwe-502/cl-502-php-101.yaml +50 -0
  581. package/rules/quarantined/nvd-generated/cwe-502/cl-502-php-102.yaml +51 -0
  582. package/rules/quarantined/nvd-generated/cwe-502/cl-502-python-103.yaml +50 -0
  583. package/rules/quarantined/nvd-generated/cwe-502/cl-502-python-104.yaml +50 -0
  584. package/rules/quarantined/nvd-generated/cwe-502/cl-502-python-105.yaml +50 -0
  585. package/rules/quarantined/nvd-generated/cwe-601/cl-601-go-178.yaml +50 -0
  586. package/rules/quarantined/nvd-generated/cwe-601/cl-601-java-173.yaml +50 -0
  587. package/rules/quarantined/nvd-generated/cwe-601/cl-601-javascript-174.yaml +50 -0
  588. package/rules/quarantined/nvd-generated/cwe-601/cl-601-javascript-175.yaml +50 -0
  589. package/rules/quarantined/nvd-generated/cwe-601/cl-601-php-179.yaml +50 -0
  590. package/rules/quarantined/nvd-generated/cwe-601/cl-601-python-176.yaml +50 -0
  591. package/rules/quarantined/nvd-generated/cwe-601/cl-601-python-177.yaml +50 -0
  592. package/rules/quarantined/nvd-generated/cwe-611/cl-611-go-123.yaml +50 -0
  593. package/rules/quarantined/nvd-generated/cwe-611/cl-611-java-111.yaml +50 -0
  594. package/rules/quarantined/nvd-generated/cwe-611/cl-611-java-112.yaml +50 -0
  595. package/rules/quarantined/nvd-generated/cwe-611/cl-611-java-113.yaml +50 -0
  596. package/rules/quarantined/nvd-generated/cwe-611/cl-611-java-114.yaml +50 -0
  597. package/rules/quarantined/nvd-generated/cwe-611/cl-611-java-115.yaml +50 -0
  598. package/rules/quarantined/nvd-generated/cwe-611/cl-611-javascript-121.yaml +50 -0
  599. package/rules/quarantined/nvd-generated/cwe-611/cl-611-javascript-122.yaml +50 -0
  600. package/rules/quarantined/nvd-generated/cwe-611/cl-611-php-116.yaml +50 -0
  601. package/rules/quarantined/nvd-generated/cwe-611/cl-611-php-117.yaml +50 -0
  602. package/rules/quarantined/nvd-generated/cwe-611/cl-611-python-118.yaml +50 -0
  603. package/rules/quarantined/nvd-generated/cwe-611/cl-611-python-119.yaml +50 -0
  604. package/rules/quarantined/nvd-generated/cwe-611/cl-611-python-120.yaml +50 -0
  605. package/rules/quarantined/nvd-generated/cwe-78/cl-78-go-040.yaml +50 -0
  606. package/rules/quarantined/nvd-generated/cwe-78/cl-78-go-041.yaml +50 -0
  607. package/rules/quarantined/nvd-generated/cwe-78/cl-78-java-026.yaml +50 -0
  608. package/rules/quarantined/nvd-generated/cwe-78/cl-78-java-027.yaml +50 -0
  609. package/rules/quarantined/nvd-generated/cwe-78/cl-78-java-028.yaml +50 -0
  610. package/rules/quarantined/nvd-generated/cwe-78/cl-78-java-029.yaml +50 -0
  611. package/rules/quarantined/nvd-generated/cwe-78/cl-78-javascript-037.yaml +50 -0
  612. package/rules/quarantined/nvd-generated/cwe-78/cl-78-javascript-038.yaml +51 -0
  613. package/rules/quarantined/nvd-generated/cwe-78/cl-78-javascript-039.yaml +50 -0
  614. package/rules/quarantined/nvd-generated/cwe-78/cl-78-php-030.yaml +50 -0
  615. package/rules/quarantined/nvd-generated/cwe-78/cl-78-php-031.yaml +50 -0
  616. package/rules/quarantined/nvd-generated/cwe-78/cl-78-php-032.yaml +50 -0
  617. package/rules/quarantined/nvd-generated/cwe-78/cl-78-php-033.yaml +51 -0
  618. package/rules/quarantined/nvd-generated/cwe-78/cl-78-python-034.yaml +50 -0
  619. package/rules/quarantined/nvd-generated/cwe-78/cl-78-python-035.yaml +50 -0
  620. package/rules/quarantined/nvd-generated/cwe-78/cl-78-python-036.yaml +53 -0
  621. package/rules/quarantined/nvd-generated/cwe-79/cl-79-go-058.yaml +51 -0
  622. package/rules/quarantined/nvd-generated/cwe-79/cl-79-go-059.yaml +51 -0
  623. package/rules/quarantined/nvd-generated/cwe-79/cl-79-java-042.yaml +50 -0
  624. package/rules/quarantined/nvd-generated/cwe-79/cl-79-java-043.yaml +50 -0
  625. package/rules/quarantined/nvd-generated/cwe-79/cl-79-java-044.yaml +51 -0
  626. package/rules/quarantined/nvd-generated/cwe-79/cl-79-java-045.yaml +50 -0
  627. package/rules/quarantined/nvd-generated/cwe-79/cl-79-javascript-049.yaml +52 -0
  628. package/rules/quarantined/nvd-generated/cwe-79/cl-79-javascript-050.yaml +52 -0
  629. package/rules/quarantined/nvd-generated/cwe-79/cl-79-javascript-051.yaml +51 -0
  630. package/rules/quarantined/nvd-generated/cwe-79/cl-79-javascript-052.yaml +51 -0
  631. package/rules/quarantined/nvd-generated/cwe-79/cl-79-javascript-053.yaml +51 -0
  632. package/rules/quarantined/nvd-generated/cwe-79/cl-79-javascript-054.yaml +51 -0
  633. package/rules/quarantined/nvd-generated/cwe-79/cl-79-javascript-055.yaml +51 -0
  634. package/rules/quarantined/nvd-generated/cwe-79/cl-79-php-046.yaml +50 -0
  635. package/rules/quarantined/nvd-generated/cwe-79/cl-79-php-047.yaml +51 -0
  636. package/rules/quarantined/nvd-generated/cwe-79/cl-79-php-048.yaml +51 -0
  637. package/rules/quarantined/nvd-generated/cwe-79/cl-79-python-056.yaml +51 -0
  638. package/rules/quarantined/nvd-generated/cwe-79/cl-79-python-057.yaml +51 -0
  639. package/rules/quarantined/nvd-generated/cwe-798/cl-798-all-124.yaml +52 -0
  640. package/rules/quarantined/nvd-generated/cwe-798/cl-798-all-125.yaml +50 -0
  641. package/rules/quarantined/nvd-generated/cwe-798/cl-798-all-126.yaml +50 -0
  642. package/rules/quarantined/nvd-generated/cwe-798/cl-798-all-127.yaml +50 -0
  643. package/rules/quarantined/nvd-generated/cwe-798/cl-798-all-128.yaml +50 -0
  644. package/rules/quarantined/nvd-generated/cwe-798/cl-798-all-129.yaml +50 -0
  645. package/rules/quarantined/nvd-generated/cwe-89/cl-89-go-023.yaml +50 -0
  646. package/rules/quarantined/nvd-generated/cwe-89/cl-89-go-024.yaml +50 -0
  647. package/rules/quarantined/nvd-generated/cwe-89/cl-89-go-025.yaml +50 -0
  648. package/rules/quarantined/nvd-generated/cwe-89/cl-89-java-001.yaml +50 -0
  649. package/rules/quarantined/nvd-generated/cwe-89/cl-89-java-002.yaml +50 -0
  650. package/rules/quarantined/nvd-generated/cwe-89/cl-89-java-003.yaml +50 -0
  651. package/rules/quarantined/nvd-generated/cwe-89/cl-89-java-004.yaml +50 -0
  652. package/rules/quarantined/nvd-generated/cwe-89/cl-89-java-005.yaml +50 -0
  653. package/rules/quarantined/nvd-generated/cwe-89/cl-89-java-006.yaml +50 -0
  654. package/rules/quarantined/nvd-generated/cwe-89/cl-89-java-007.yaml +50 -0
  655. package/rules/quarantined/nvd-generated/cwe-89/cl-89-java-008.yaml +50 -0
  656. package/rules/quarantined/nvd-generated/cwe-89/cl-89-javascript-018.yaml +50 -0
  657. package/rules/quarantined/nvd-generated/cwe-89/cl-89-javascript-019.yaml +50 -0
  658. package/rules/quarantined/nvd-generated/cwe-89/cl-89-javascript-020.yaml +50 -0
  659. package/rules/quarantined/nvd-generated/cwe-89/cl-89-javascript-021.yaml +50 -0
  660. package/rules/quarantined/nvd-generated/cwe-89/cl-89-javascript-022.yaml +50 -0
  661. package/rules/quarantined/nvd-generated/cwe-89/cl-89-php-009.yaml +51 -0
  662. package/rules/quarantined/nvd-generated/cwe-89/cl-89-php-010.yaml +51 -0
  663. package/rules/quarantined/nvd-generated/cwe-89/cl-89-php-011.yaml +51 -0
  664. package/rules/quarantined/nvd-generated/cwe-89/cl-89-php-012.yaml +51 -0
  665. package/rules/quarantined/nvd-generated/cwe-89/cl-89-php-013.yaml +51 -0
  666. package/rules/quarantined/nvd-generated/cwe-89/cl-89-python-014.yaml +50 -0
  667. package/rules/quarantined/nvd-generated/cwe-89/cl-89-python-015.yaml +50 -0
  668. package/rules/quarantined/nvd-generated/cwe-89/cl-89-python-016.yaml +50 -0
  669. package/rules/quarantined/nvd-generated/cwe-89/cl-89-python-017.yaml +50 -0
  670. package/rules/quarantined/nvd-generated/cwe-915/cl-915-javascript-216.yaml +50 -0
  671. package/rules/quarantined/nvd-generated/cwe-915/cl-915-javascript-217.yaml +50 -0
  672. package/rules/quarantined/nvd-generated/cwe-915/cl-915-javascript-218.yaml +50 -0
  673. package/rules/quarantined/nvd-generated/cwe-915/cl-915-javascript-219.yaml +50 -0
  674. package/rules/quarantined/nvd-generated/cwe-918/cl-918-go-088.yaml +50 -0
  675. package/rules/quarantined/nvd-generated/cwe-918/cl-918-go-089.yaml +50 -0
  676. package/rules/quarantined/nvd-generated/cwe-918/cl-918-java-077.yaml +50 -0
  677. package/rules/quarantined/nvd-generated/cwe-918/cl-918-java-078.yaml +50 -0
  678. package/rules/quarantined/nvd-generated/cwe-918/cl-918-java-079.yaml +50 -0
  679. package/rules/quarantined/nvd-generated/cwe-918/cl-918-java-080.yaml +51 -0
  680. package/rules/quarantined/nvd-generated/cwe-918/cl-918-javascript-081.yaml +50 -0
  681. package/rules/quarantined/nvd-generated/cwe-918/cl-918-javascript-082.yaml +50 -0
  682. package/rules/quarantined/nvd-generated/cwe-918/cl-918-javascript-083.yaml +50 -0
  683. package/rules/quarantined/nvd-generated/cwe-918/cl-918-php-090.yaml +50 -0
  684. package/rules/quarantined/nvd-generated/cwe-918/cl-918-php-091.yaml +50 -0
  685. package/rules/quarantined/nvd-generated/cwe-918/cl-918-python-084.yaml +50 -0
  686. package/rules/quarantined/nvd-generated/cwe-918/cl-918-python-085.yaml +50 -0
  687. package/rules/quarantined/nvd-generated/cwe-918/cl-918-python-086.yaml +50 -0
  688. package/rules/quarantined/nvd-generated/cwe-918/cl-918-python-087.yaml +50 -0
  689. package/rules/quarantined/nvd-generated/cwe-943/cl-943-java-238.yaml +43 -0
  690. package/rules/quarantined/nvd-generated/cwe-943/cl-943-javascript-234.yaml +43 -0
  691. package/rules/quarantined/nvd-generated/cwe-943/cl-943-javascript-235.yaml +43 -0
  692. package/rules/quarantined/nvd-generated/cwe-943/cl-943-javascript-236.yaml +43 -0
  693. package/rules/quarantined/nvd-generated/cwe-943/cl-943-python-237.yaml +43 -0
  694. package/rules/taint-upgraded/cwe-1336/zm-taint-1336-1336-java-196.yaml +35 -0
  695. package/rules/taint-upgraded/cwe-1336/zm-taint-1336-1336-java-197.yaml +35 -0
  696. package/rules/taint-upgraded/cwe-1336/zm-taint-1336-1336-javascript-201.yaml +34 -0
  697. package/rules/taint-upgraded/cwe-1336/zm-taint-1336-1336-javascript-202.yaml +34 -0
  698. package/rules/taint-upgraded/cwe-1336/zm-taint-1336-1336-javascript-203.yaml +34 -0
  699. package/rules/taint-upgraded/cwe-22/zm-taint-22-22-go-076.yaml +36 -0
  700. package/rules/taint-upgraded/cwe-22/zm-taint-22-22-java-061.yaml +40 -0
  701. package/rules/taint-upgraded/cwe-22/zm-taint-22-22-javascript-068.yaml +38 -0
  702. package/rules/taint-upgraded/cwe-22/zm-taint-22-22-javascript-069.yaml +38 -0
  703. package/rules/taint-upgraded/cwe-22/zm-taint-22-22-python-073.yaml +38 -0
  704. package/rules/taint-upgraded/cwe-287/zm-taint-287-287-go-188.yaml +30 -0
  705. package/rules/taint-upgraded/cwe-287/zm-taint-287-287-javascript-184.yaml +31 -0
  706. package/rules/taint-upgraded/cwe-327/zm-taint-327-327-go-169.yaml +30 -0
  707. package/rules/taint-upgraded/cwe-327/zm-taint-327-327-go-170.yaml +31 -0
  708. package/rules/taint-upgraded/cwe-327/zm-taint-327-327-java-161.yaml +45 -0
  709. package/rules/taint-upgraded/cwe-327/zm-taint-327-327-java-162.yaml +45 -0
  710. package/rules/taint-upgraded/cwe-327/zm-taint-327-327-java-163.yaml +39 -0
  711. package/rules/taint-upgraded/cwe-327/zm-taint-327-327-java-164.yaml +31 -0
  712. package/rules/taint-upgraded/cwe-327/zm-taint-327-327-javascript-165.yaml +34 -0
  713. package/rules/taint-upgraded/cwe-327/zm-taint-327-327-javascript-166.yaml +32 -0
  714. package/rules/taint-upgraded/cwe-327/zm-taint-327-327-php-171.yaml +31 -0
  715. package/rules/taint-upgraded/cwe-327/zm-taint-327-327-php-172.yaml +31 -0
  716. package/rules/taint-upgraded/cwe-327/zm-taint-327-327-python-167.yaml +32 -0
  717. package/rules/taint-upgraded/cwe-327/zm-taint-327-327-python-168.yaml +34 -0
  718. package/rules/taint-upgraded/cwe-434/zm-taint-434-434-java-130.yaml +37 -0
  719. package/rules/taint-upgraded/cwe-434/zm-taint-434-434-java-131.yaml +37 -0
  720. package/rules/taint-upgraded/cwe-434/zm-taint-434-434-javascript-139.yaml +38 -0
  721. package/rules/taint-upgraded/cwe-434/zm-taint-434-434-python-136.yaml +35 -0
  722. package/rules/taint-upgraded/cwe-502/zm-taint-502-502-go-109.yaml +32 -0
  723. package/rules/taint-upgraded/cwe-502/zm-taint-502-502-go-110.yaml +32 -0
  724. package/rules/taint-upgraded/cwe-502/zm-taint-502-502-java-092.yaml +33 -0
  725. package/rules/taint-upgraded/cwe-502/zm-taint-502-502-java-093.yaml +33 -0
  726. package/rules/taint-upgraded/cwe-502/zm-taint-502-502-java-094.yaml +33 -0
  727. package/rules/taint-upgraded/cwe-502/zm-taint-502-502-java-095.yaml +33 -0
  728. package/rules/taint-upgraded/cwe-502/zm-taint-502-502-java-097.yaml +33 -0
  729. package/rules/taint-upgraded/cwe-502/zm-taint-502-502-java-098.yaml +33 -0
  730. package/rules/taint-upgraded/cwe-502/zm-taint-502-502-java-099.yaml +33 -0
  731. package/rules/taint-upgraded/cwe-502/zm-taint-502-502-javascript-107.yaml +33 -0
  732. package/rules/taint-upgraded/cwe-502/zm-taint-502-502-python-105.yaml +40 -0
  733. package/rules/taint-upgraded/cwe-601/zm-taint-601-601-go-178.yaml +34 -0
  734. package/rules/taint-upgraded/cwe-601/zm-taint-601-601-python-177.yaml +35 -0
  735. package/rules/taint-upgraded/cwe-611/zm-taint-611-611-go-123.yaml +31 -0
  736. package/rules/taint-upgraded/cwe-611/zm-taint-611-611-java-111.yaml +38 -0
  737. package/rules/taint-upgraded/cwe-611/zm-taint-611-611-java-112.yaml +38 -0
  738. package/rules/taint-upgraded/cwe-611/zm-taint-611-611-java-113.yaml +38 -0
  739. package/rules/taint-upgraded/cwe-611/zm-taint-611-611-java-114.yaml +38 -0
  740. package/rules/taint-upgraded/cwe-611/zm-taint-611-611-java-115.yaml +38 -0
  741. package/rules/taint-upgraded/cwe-611/zm-taint-611-611-javascript-121.yaml +32 -0
  742. package/rules/taint-upgraded/cwe-611/zm-taint-611-611-javascript-122.yaml +32 -0
  743. package/rules/taint-upgraded/cwe-78/zm-taint-78-78-go-040.yaml +31 -0
  744. package/rules/taint-upgraded/cwe-78/zm-taint-78-78-go-041.yaml +31 -0
  745. package/rules/taint-upgraded/cwe-78/zm-taint-78-78-java-027.yaml +37 -0
  746. package/rules/taint-upgraded/cwe-78/zm-taint-78-78-java-028.yaml +37 -0
  747. package/rules/taint-upgraded/cwe-78/zm-taint-78-78-java-029.yaml +37 -0
  748. package/rules/taint-upgraded/cwe-78/zm-taint-78-78-python-034.yaml +40 -0
  749. package/rules/taint-upgraded/cwe-79/zm-taint-79-79-javascript-050.yaml +38 -0
  750. package/rules/taint-upgraded/cwe-79/zm-taint-79-79-javascript-054.yaml +38 -0
  751. package/rules/taint-upgraded/cwe-79/zm-taint-79-79-python-056.yaml +37 -0
  752. package/rules/taint-upgraded/cwe-89/zm-taint-89-89-go-023.yaml +33 -0
  753. package/rules/taint-upgraded/cwe-89/zm-taint-89-89-go-024.yaml +33 -0
  754. package/rules/taint-upgraded/cwe-89/zm-taint-89-89-go-025.yaml +33 -0
  755. package/rules/taint-upgraded/cwe-89/zm-taint-89-89-java-001.yaml +41 -0
  756. package/rules/taint-upgraded/cwe-89/zm-taint-89-89-java-006.yaml +41 -0
  757. package/rules/taint-upgraded/cwe-89/zm-taint-89-89-java-008.yaml +41 -0
  758. package/rules/taint-upgraded/cwe-89/zm-taint-89-89-javascript-018.yaml +41 -0
  759. package/rules/taint-upgraded/cwe-89/zm-taint-89-89-javascript-019.yaml +41 -0
  760. package/rules/taint-upgraded/cwe-89/zm-taint-89-89-javascript-022.yaml +41 -0
  761. package/rules/taint-upgraded/cwe-89/zm-taint-89-89-python-014.yaml +41 -0
  762. package/rules/taint-upgraded/cwe-89/zm-taint-89-89-python-015.yaml +41 -0
  763. package/rules/taint-upgraded/cwe-89/zm-taint-89-89-python-017.yaml +41 -0
  764. package/rules/taint-upgraded/cwe-915/zm-taint-915-915-javascript-216.yaml +32 -0
  765. package/rules/taint-upgraded/cwe-915/zm-taint-915-915-javascript-217.yaml +33 -0
  766. package/rules/taint-upgraded/cwe-915/zm-taint-915-915-javascript-218.yaml +32 -0
  767. package/rules/taint-upgraded/cwe-915/zm-taint-915-915-javascript-219.yaml +35 -0
  768. package/rules/taint-upgraded/cwe-918/zm-taint-918-918-java-078.yaml +38 -0
  769. package/rules/taint-upgraded/cwe-918/zm-taint-918-918-java-079.yaml +38 -0
  770. package/rules/taint-upgraded/cwe-918/zm-taint-918-918-python-085.yaml +39 -0
  771. package/rules/taint-upgraded/cwe-943/zm-taint-943-943-java-238.yaml +31 -0
  772. package/rules/taint-upgraded/cwe-943/zm-taint-943-943-javascript-234.yaml +34 -0
  773. package/rules/taint-upgraded/cwe-943/zm-taint-943-943-javascript-235.yaml +34 -0
  774. package/rules/taint-upgraded/cwe-943/zm-taint-943-943-javascript-236.yaml +33 -0
  775. package/rules/taint-upgraded/cwe-943/zm-taint-943-943-python-237.yaml +32 -0
  776. package/rules/unified/cwe-117/zm-go-cwe117-log-injection.yaml +76 -0
  777. package/rules/unified/cwe-117/zm-java-cwe117-log-injection.yaml +84 -0
  778. package/rules/unified/cwe-117/zm-java-cwe117-logforging.yaml +154 -0
  779. package/rules/unified/cwe-117/zm-java-cwe117-smtp-header-injection.yaml +59 -0
  780. package/rules/unified/cwe-121/zm-cpp-cwe121-buffer-overflow.yaml +137 -0
  781. package/rules/unified/cwe-1321/zm-js-cwe1321-prototype-pollution.yaml +62 -0
  782. package/rules/unified/cwe-1336/zm-go-cwe1336-template-injection.yaml +39 -0
  783. package/rules/unified/cwe-1336/zm-taint-1336-1336-java-196.yaml +42 -0
  784. package/rules/unified/cwe-1336/zm-taint-1336-1336-java-197.yaml +42 -0
  785. package/rules/unified/cwe-1336/zm-taint-1336-1336-javascript-201.yaml +41 -0
  786. package/rules/unified/cwe-1336/zm-taint-1336-1336-javascript-202.yaml +41 -0
  787. package/rules/unified/cwe-1336/zm-taint-1336-1336-javascript-203.yaml +41 -0
  788. package/rules/unified/cwe-134/zm-cpp-cwe134-format-string.yaml +106 -0
  789. package/rules/unified/cwe-190/zm-cpp-cwe190-integer-overflow.yaml +93 -0
  790. package/rules/unified/cwe-20/zm-cpp-cwe20-input-validation.yaml +92 -0
  791. package/rules/unified/cwe-20/zm-js-cwe20-websocket-validation.yaml +25 -0
  792. package/rules/unified/cwe-20/zm-rust-cwe20-input-validation.yaml +124 -0
  793. package/rules/unified/cwe-200/zm-js-cwe200-nestjs-env.yaml +22 -0
  794. package/rules/unified/cwe-200/zm-py-cwe200-info-leak-redirect.yaml +77 -0
  795. package/rules/unified/cwe-22/cwe-22-path-traversal.yaml +48 -0
  796. package/rules/unified/cwe-22/zm-cs-cwe22-path-traversal.yaml +92 -0
  797. package/rules/unified/cwe-22/zm-go-cwe22-path-traversal-framework.yaml +48 -0
  798. package/rules/unified/cwe-22/zm-go-cwe22-path-traversal-fs.yaml +118 -0
  799. package/rules/unified/cwe-22/zm-go-cwe22-path-traversal.yaml +104 -0
  800. package/rules/unified/cwe-22/zm-java-cwe22-file-depth.yaml +136 -0
  801. package/rules/unified/cwe-22/zm-java-cwe22-file-unnormalized.yaml +58 -0
  802. package/rules/unified/cwe-22/zm-java-cwe22-path-traversal-spring.yaml +82 -0
  803. package/rules/unified/cwe-22/zm-java-file-cwe22-001.yaml +74 -0
  804. package/rules/unified/cwe-22/zm-js-cwe22-express-path-traversal.yaml +26 -0
  805. package/rules/unified/cwe-22/zm-js-cwe22-fs-path-traversal.yaml +28 -0
  806. package/rules/unified/cwe-22/zm-py-cwe22-flask-sendfile.yaml +45 -0
  807. package/rules/unified/cwe-22/zm-py-cwe22-path-traversal.yaml +87 -0
  808. package/rules/unified/cwe-22/zm-rust-cwe22-path-traversal.yaml +134 -0
  809. package/rules/unified/cwe-22/zm-taint-22-22-go-076.yaml +43 -0
  810. package/rules/unified/cwe-22/zm-taint-22-22-java-061.yaml +47 -0
  811. package/rules/unified/cwe-22/zm-taint-22-22-javascript-068.yaml +45 -0
  812. package/rules/unified/cwe-22/zm-taint-22-22-javascript-069.yaml +45 -0
  813. package/rules/unified/cwe-22/zm-taint-22-22-python-073.yaml +45 -0
  814. package/rules/unified/cwe-250/zm-docker-cwe250-root-user.yaml +51 -0
  815. package/rules/unified/cwe-250/zm-java-cwe250-preauth-missing.yaml +69 -0
  816. package/rules/unified/cwe-250/zm-k8s-cwe250-privileged.yaml +57 -0
  817. package/rules/unified/cwe-265/zm-py-fastapi-cwe265-cwe284-01.yaml +49 -0
  818. package/rules/unified/cwe-269/zm-ansible-cwe269-privilege-escalation.yaml +76 -0
  819. package/rules/unified/cwe-269/zm-java-cwe269-requestdumper-valve.yaml +55 -0
  820. package/rules/unified/cwe-284/zm-java-cwe284-missing-auth-spring.yaml +132 -0
  821. package/rules/unified/cwe-284/zm-java-cwe284-permitall-overauth.yaml +57 -0
  822. package/rules/unified/cwe-284/zm-java-cwe284-tomcat-ajp.yaml +57 -0
  823. package/rules/unified/cwe-284/zm-java-springsec-cwe284-001.yaml +110 -0
  824. package/rules/unified/cwe-284/zm-tf-cwe284-sg-egress-any.yaml +33 -0
  825. package/rules/unified/cwe-284/zm-tf-cwe284-sg-wide-open.yaml +89 -0
  826. package/rules/unified/cwe-287/zm-java-oauth-cwe287-001.yaml +137 -0
  827. package/rules/unified/cwe-287/zm-js-cwe287-jwt-no-algorithms.yaml +26 -0
  828. package/rules/unified/cwe-287/zm-taint-287-287-go-188.yaml +37 -0
  829. package/rules/unified/cwe-287/zm-taint-287-287-javascript-184.yaml +38 -0
  830. package/rules/unified/cwe-295/cwe-295-ssl-bypass.yaml +218 -0
  831. package/rules/unified/cwe-295/cwe-295-ssl-verification-disabled.yaml +65 -0
  832. package/rules/unified/cwe-295/zm-cs-cwe295-cert-validation.yaml +67 -0
  833. package/rules/unified/cwe-295/zm-py-aiohttp-cwe295-cwe770-01.yaml +61 -0
  834. package/rules/unified/cwe-306/cwe-306-missing-authentication.yaml +45 -0
  835. package/rules/unified/cwe-306/zm-java-cwe306-actuator-exposure.yaml +53 -0
  836. package/rules/unified/cwe-306/zm-java-cwe306-cloud-config-server.yaml +56 -0
  837. package/rules/unified/cwe-306/zm-java-cwe306-rabbitmq-no-auth.yaml +58 -0
  838. package/rules/unified/cwe-306/zm-py-cwe306-flask-login.yaml +38 -0
  839. package/rules/unified/cwe-307/zm-go-cwe307-brute-force.yaml +130 -0
  840. package/rules/unified/cwe-307/zm-js-cwe307-brute-force.yaml +137 -0
  841. package/rules/unified/cwe-311/zm-docker-cwe311-secrets-in-build-arg.yaml +65 -0
  842. package/rules/unified/cwe-311/zm-java-cwe311-cookie-flags.yaml +94 -0
  843. package/rules/unified/cwe-311/zm-tf-cwe311-iam-wildcard.yaml +84 -0
  844. package/rules/unified/cwe-312/zm-js-cwe312-localstorage-jwt.yaml +32 -0
  845. package/rules/unified/cwe-319/zm-go-cwe319-grpc-notls.yaml +119 -0
  846. package/rules/unified/cwe-319/zm-tf-cwe319-rds-public-snapshot.yaml +47 -0
  847. package/rules/unified/cwe-319/zm-tf-cwe319-rds-public.yaml +73 -0
  848. package/rules/unified/cwe-326/cwe-326-weak-key-size.yaml +108 -0
  849. package/rules/unified/cwe-326/zm-go-cwe326-hmac-iv-nonce.yaml +73 -0
  850. package/rules/unified/cwe-326/zm-go-cwe326-weak-crypto.yaml +125 -0
  851. package/rules/unified/cwe-327/cwe-327-weak-crypto.yaml +178 -0
  852. package/rules/unified/cwe-327/zm-cpp-cwe327-weak-crypto.yaml +106 -0
  853. package/rules/unified/cwe-327/zm-cs-cwe327-weak-crypto.yaml +89 -0
  854. package/rules/unified/cwe-327/zm-go-cwe327-weak-cipher.yaml +153 -0
  855. package/rules/unified/cwe-327/zm-java-crypto-cwe327-001.yaml +104 -0
  856. package/rules/unified/cwe-327/zm-java-cwe327-ecb-weak-key-iv.yaml +87 -0
  857. package/rules/unified/cwe-327/zm-java-cwe327-weakcrypto.yaml +198 -0
  858. package/rules/unified/cwe-327/zm-js-cwe327-weak-cipher-des.yaml +30 -0
  859. package/rules/unified/cwe-327/zm-js-cwe327-weak-hash-md5.yaml +23 -0
  860. package/rules/unified/cwe-327/zm-php-cwe327-weak-hash.yaml +89 -0
  861. package/rules/unified/cwe-327/zm-py-crypto-cwe327-01.yaml +34 -0
  862. package/rules/unified/cwe-327/zm-py-cwe327-weak-crypto.yaml +104 -0
  863. package/rules/unified/cwe-327/zm-rust-cwe327-weak-crypto.yaml +124 -0
  864. package/rules/unified/cwe-327/zm-taint-327-327-go-169.yaml +37 -0
  865. package/rules/unified/cwe-327/zm-taint-327-327-go-170.yaml +38 -0
  866. package/rules/unified/cwe-327/zm-taint-327-327-java-161.yaml +52 -0
  867. package/rules/unified/cwe-327/zm-taint-327-327-java-162.yaml +52 -0
  868. package/rules/unified/cwe-327/zm-taint-327-327-java-163.yaml +46 -0
  869. package/rules/unified/cwe-327/zm-taint-327-327-java-164.yaml +38 -0
  870. package/rules/unified/cwe-327/zm-taint-327-327-javascript-165.yaml +41 -0
  871. package/rules/unified/cwe-327/zm-taint-327-327-javascript-166.yaml +39 -0
  872. package/rules/unified/cwe-327/zm-taint-327-327-php-171.yaml +38 -0
  873. package/rules/unified/cwe-327/zm-taint-327-327-php-172.yaml +38 -0
  874. package/rules/unified/cwe-327/zm-taint-327-327-python-167.yaml +39 -0
  875. package/rules/unified/cwe-327/zm-taint-327-327-python-168.yaml +41 -0
  876. package/rules/unified/cwe-328/cwe-328-weak-hash.yaml +97 -0
  877. package/rules/unified/cwe-329/cwe-329-cbc-mode.yaml +27 -0
  878. package/rules/unified/cwe-338/zm-go-cwe338-weak-prng.yaml +118 -0
  879. package/rules/unified/cwe-338/zm-java-cwe338-weakrandom.yaml +60 -0
  880. package/rules/unified/cwe-345/zm-js-cwe345-postmessage.yaml +76 -0
  881. package/rules/unified/cwe-345/zm-js-cwe345-websocket-security.yaml +91 -0
  882. package/rules/unified/cwe-347/zm-go-cwe347-jwt.yaml +148 -0
  883. package/rules/unified/cwe-347/zm-java-cwe347-jwt-deep.yaml +83 -0
  884. package/rules/unified/cwe-347/zm-java-cwe347-jwt.yaml +31 -0
  885. package/rules/unified/cwe-347/zm-js-cwe347-jwt-weak.yaml +101 -0
  886. package/rules/unified/cwe-352/cwe-352-csrf.yaml +27 -0
  887. package/rules/unified/cwe-352/zm-cs-cwe352-csrf.yaml +86 -0
  888. package/rules/unified/cwe-352/zm-java-cwe352-csrf-deep.yaml +52 -0
  889. package/rules/unified/cwe-352/zm-java-cwe352-csrf-depth.yaml +122 -0
  890. package/rules/unified/cwe-352/zm-java-cwe352-csrf-disabled.yaml +24 -0
  891. package/rules/unified/cwe-352/zm-js-cwe352-csrf.yaml +56 -0
  892. package/rules/unified/cwe-352/zm-py-cwe352-django-csrf.yaml +74 -0
  893. package/rules/unified/cwe-362/zm-java-cwe362-simpledateformat.yaml +57 -0
  894. package/rules/unified/cwe-377/zm-py-cwe377-race-condition.yaml +58 -0
  895. package/rules/unified/cwe-384/zm-go-cwe384-session-fixation.yaml +129 -0
  896. package/rules/unified/cwe-384/zm-java-cwe384-session-fixation.yaml +88 -0
  897. package/rules/unified/cwe-384/zm-js-cwe384-session-fixation.yaml +133 -0
  898. package/rules/unified/cwe-400/zm-docker-cwe400-resource-limit.yaml +105 -0
  899. package/rules/unified/cwe-400/zm-py-cwe400-multipart-dos.yaml +65 -0
  900. package/rules/unified/cwe-415/zm-cpp-cwe415-double-free.yaml +92 -0
  901. package/rules/unified/cwe-416/zm-cpp-cwe416-use-after-free.yaml +81 -0
  902. package/rules/unified/cwe-416/zm-rust-cwe416-unsafe.yaml +150 -0
  903. package/rules/unified/cwe-434/cwe-434-unrestricted-file-upload.yaml +42 -0
  904. package/rules/unified/cwe-434/zm-php-cwe434-file-upload.yaml +99 -0
  905. package/rules/unified/cwe-434/zm-py-cwe434-django-fileupload.yaml +100 -0
  906. package/rules/unified/cwe-434/zm-taint-434-434-java-130.yaml +44 -0
  907. package/rules/unified/cwe-434/zm-taint-434-434-java-131.yaml +44 -0
  908. package/rules/unified/cwe-434/zm-taint-434-434-javascript-139.yaml +45 -0
  909. package/rules/unified/cwe-434/zm-taint-434-434-python-136.yaml +42 -0
  910. package/rules/unified/cwe-470/zm-java-cwe470-reflection.yaml +79 -0
  911. package/rules/unified/cwe-476/zm-cpp-cwe476-null-dereference.yaml +89 -0
  912. package/rules/unified/cwe-501/zm-java-cwe501-trust-boundary.yaml +125 -0
  913. package/rules/unified/cwe-502/cwe-502-insecure-deserialization.yaml +45 -0
  914. package/rules/unified/cwe-502/zm-cs-cwe502-deserialization.yaml +92 -0
  915. package/rules/unified/cwe-502/zm-go-cwe502-deserialization.yaml +121 -0
  916. package/rules/unified/cwe-502/zm-java-cwe502-deserial-depth.yaml +129 -0
  917. package/rules/unified/cwe-502/zm-java-cwe502-dubbo-deserial.yaml +59 -0
  918. package/rules/unified/cwe-502/zm-java-cwe502-fastjson.yaml +138 -0
  919. package/rules/unified/cwe-502/zm-java-cwe502-gadget.yaml +159 -0
  920. package/rules/unified/cwe-502/zm-java-cwe502-hessian-deep.yaml +68 -0
  921. package/rules/unified/cwe-502/zm-java-cwe502-jackson-defaulttyping.yaml +60 -0
  922. package/rules/unified/cwe-502/zm-java-cwe502-jndi-injection.yaml +92 -0
  923. package/rules/unified/cwe-502/zm-java-cwe502-kryo-deep.yaml +65 -0
  924. package/rules/unified/cwe-502/zm-java-cwe502-log4j-jndi.yaml +67 -0
  925. package/rules/unified/cwe-502/zm-java-cwe502-shiro.yaml +109 -0
  926. package/rules/unified/cwe-502/zm-java-cwe502-snakeyaml-load.yaml +56 -0
  927. package/rules/unified/cwe-502/zm-java-cwe502-xstream-nosecurity.yaml +65 -0
  928. package/rules/unified/cwe-502/zm-java-deserial-cwe502-001.yaml +73 -0
  929. package/rules/unified/cwe-502/zm-java-jndi-cwe502-001.yaml +108 -0
  930. package/rules/unified/cwe-502/zm-java-xstream-cwe502-001.yaml +74 -0
  931. package/rules/unified/cwe-502/zm-js-cwe502-deserialization.yaml +120 -0
  932. package/rules/unified/cwe-502/zm-php-cwe502-unserialize.yaml +94 -0
  933. package/rules/unified/cwe-502/zm-py-cwe502-deser-advanced.yaml +130 -0
  934. package/rules/unified/cwe-502/zm-py-cwe502-pickle.yaml +93 -0
  935. package/rules/unified/cwe-502/zm-py-deser-cwe502-01.yaml +67 -0
  936. package/rules/unified/cwe-502/zm-taint-502-502-go-109.yaml +39 -0
  937. package/rules/unified/cwe-502/zm-taint-502-502-go-110.yaml +39 -0
  938. package/rules/unified/cwe-502/zm-taint-502-502-java-092.yaml +40 -0
  939. package/rules/unified/cwe-502/zm-taint-502-502-java-093.yaml +40 -0
  940. package/rules/unified/cwe-502/zm-taint-502-502-java-094.yaml +40 -0
  941. package/rules/unified/cwe-502/zm-taint-502-502-java-095.yaml +40 -0
  942. package/rules/unified/cwe-502/zm-taint-502-502-java-097.yaml +40 -0
  943. package/rules/unified/cwe-502/zm-taint-502-502-java-098.yaml +40 -0
  944. package/rules/unified/cwe-502/zm-taint-502-502-java-099.yaml +40 -0
  945. package/rules/unified/cwe-502/zm-taint-502-502-javascript-107.yaml +40 -0
  946. package/rules/unified/cwe-502/zm-taint-502-502-python-105.yaml +47 -0
  947. package/rules/unified/cwe-506/zm-js-cwe506-npm-supply-chain.yaml +20 -0
  948. package/rules/unified/cwe-532/zm-java-cwe532-printstack-info-leak.yaml +56 -0
  949. package/rules/unified/cwe-601/cwe-601-url-redirect.yaml +111 -0
  950. package/rules/unified/cwe-601/zm-cs-cwe601-url-redirect.yaml +61 -0
  951. package/rules/unified/cwe-601/zm-go-cwe601-open-redirect.yaml +40 -0
  952. package/rules/unified/cwe-601/zm-java-cwe601-modelandview-redirect.yaml +70 -0
  953. package/rules/unified/cwe-601/zm-js-cwe601-express-redirect.yaml +28 -0
  954. package/rules/unified/cwe-601/zm-js-cwe601-fastify-redirect.yaml +25 -0
  955. package/rules/unified/cwe-601/zm-php-cwe601-open-redirect.yaml +107 -0
  956. package/rules/unified/cwe-601/zm-taint-601-601-go-178.yaml +41 -0
  957. package/rules/unified/cwe-601/zm-taint-601-601-python-177.yaml +42 -0
  958. package/rules/unified/cwe-611/cwe-611-xxe.yaml +71 -0
  959. package/rules/unified/cwe-611/zm-cs-cwe611-xxe.yaml +87 -0
  960. package/rules/unified/cwe-611/zm-java-cwe611-xxe-enhanced.yaml +81 -0
  961. package/rules/unified/cwe-611/zm-java-cwe611-xxe-transformer.yaml +86 -0
  962. package/rules/unified/cwe-611/zm-java-xxe-cwe611-003.yaml +106 -0
  963. package/rules/unified/cwe-611/zm-js-cwe611-xxe.yaml +109 -0
  964. package/rules/unified/cwe-611/zm-py-cwe611-xxe-advanced.yaml +70 -0
  965. package/rules/unified/cwe-611/zm-py-cwe611-xxe.yaml +101 -0
  966. package/rules/unified/cwe-611/zm-taint-611-611-go-123.yaml +38 -0
  967. package/rules/unified/cwe-611/zm-taint-611-611-java-111.yaml +45 -0
  968. package/rules/unified/cwe-611/zm-taint-611-611-java-112.yaml +45 -0
  969. package/rules/unified/cwe-611/zm-taint-611-611-java-113.yaml +45 -0
  970. package/rules/unified/cwe-611/zm-taint-611-611-java-114.yaml +45 -0
  971. package/rules/unified/cwe-611/zm-taint-611-611-java-115.yaml +45 -0
  972. package/rules/unified/cwe-611/zm-taint-611-611-javascript-121.yaml +39 -0
  973. package/rules/unified/cwe-611/zm-taint-611-611-javascript-122.yaml +39 -0
  974. package/rules/unified/cwe-639/zm-java-cwe639-idor.yaml +124 -0
  975. package/rules/unified/cwe-639/zm-js-cwe639-idor.yaml +123 -0
  976. package/rules/unified/cwe-643/zm-java-cwe643-xpath-injection.yaml +56 -0
  977. package/rules/unified/cwe-676/zm-cpp-cwe676-dangerous-function.yaml +86 -0
  978. package/rules/unified/cwe-693/zm-go-cwe693-gin-middleware.yaml +49 -0
  979. package/rules/unified/cwe-693/zm-go-cwe693-security-headers.yaml +133 -0
  980. package/rules/unified/cwe-693/zm-js-cwe693-helmet-missing.yaml +57 -0
  981. package/rules/unified/cwe-732/cwe-732-incorrect-permission.yaml +50 -0
  982. package/rules/unified/cwe-74/zm-java-cwe74-host-header-injection.yaml +64 -0
  983. package/rules/unified/cwe-770/cwe-770-resource-exhaustion.yaml +45 -0
  984. package/rules/unified/cwe-770/zm-go-cwe770-redos.yaml +79 -0
  985. package/rules/unified/cwe-770/zm-js-cwe770-nestjs-validator.yaml +27 -0
  986. package/rules/unified/cwe-78/cwe-78-os-command-injection.yaml +44 -0
  987. package/rules/unified/cwe-78/zm-ansible-cwe78-command-injection.yaml +68 -0
  988. package/rules/unified/cwe-78/zm-cpp-cwe78-command-injection.yaml +86 -0
  989. package/rules/unified/cwe-78/zm-cs-cwe78-command-injection.yaml +94 -0
  990. package/rules/unified/cwe-78/zm-go-cwe78-command-injection.yaml +96 -0
  991. package/rules/unified/cwe-78/zm-go-cwe78-osci-advanced.yaml +39 -0
  992. package/rules/unified/cwe-78/zm-java-rce-cwe78-001.yaml +99 -0
  993. package/rules/unified/cwe-78/zm-js-cwe78-exec.yaml +38 -0
  994. package/rules/unified/cwe-78/zm-js-cwe78-execsync-injection.yaml +26 -0
  995. package/rules/unified/cwe-78/zm-js-cwe78-spawn.yaml +38 -0
  996. package/rules/unified/cwe-78/zm-php-cwe78-cmdinj.yaml +222 -0
  997. package/rules/unified/cwe-78/zm-py-cwe78-command-injection.yaml +122 -0
  998. package/rules/unified/cwe-78/zm-py-cwe78-osci-advanced.yaml +77 -0
  999. package/rules/unified/cwe-78/zm-rust-cwe78-cmdinj.yaml +103 -0
  1000. package/rules/unified/cwe-78/zm-taint-78-78-go-040.yaml +38 -0
  1001. package/rules/unified/cwe-78/zm-taint-78-78-go-041.yaml +38 -0
  1002. package/rules/unified/cwe-78/zm-taint-78-78-java-027.yaml +44 -0
  1003. package/rules/unified/cwe-78/zm-taint-78-78-java-028.yaml +44 -0
  1004. package/rules/unified/cwe-78/zm-taint-78-78-java-029.yaml +44 -0
  1005. package/rules/unified/cwe-78/zm-taint-78-78-python-034.yaml +47 -0
  1006. package/rules/unified/cwe-787/cwe-787-out-of-bounds-write.yaml +38 -0
  1007. package/rules/unified/cwe-79/cwe-79-xss.yaml +52 -0
  1008. package/rules/unified/cwe-79/zm-cs-cwe79-xss.yaml +84 -0
  1009. package/rules/unified/cwe-79/zm-go-cwe79-framework-xss.yaml +134 -0
  1010. package/rules/unified/cwe-79/zm-go-cwe79-mail-injection.yaml +68 -0
  1011. package/rules/unified/cwe-79/zm-go-cwe79-xss.yaml +105 -0
  1012. package/rules/unified/cwe-79/zm-java-cwe79-xss-depth.yaml +99 -0
  1013. package/rules/unified/cwe-79/zm-js-cwe79-angular-bypass.yaml +24 -0
  1014. package/rules/unified/cwe-79/zm-js-cwe79-domxss.yaml +85 -0
  1015. package/rules/unified/cwe-79/zm-js-cwe79-electron-security.yaml +36 -0
  1016. package/rules/unified/cwe-79/zm-js-cwe79-react-dangerously.yaml +23 -0
  1017. package/rules/unified/cwe-79/zm-js-cwe79-react-xss-deep.yaml +35 -0
  1018. package/rules/unified/cwe-79/zm-js-cwe79-react-xss.yaml +19 -0
  1019. package/rules/unified/cwe-79/zm-js-cwe79-vue-vhtml.yaml +25 -0
  1020. package/rules/unified/cwe-79/zm-js-cwe79-xss-ejs.yaml +71 -0
  1021. package/rules/unified/cwe-79/zm-php-cwe79-xss.yaml +222 -0
  1022. package/rules/unified/cwe-79/zm-py-cwe79-django-flask-xss.yaml +97 -0
  1023. package/rules/unified/cwe-79/zm-py-cwe79-host-header-injection.yaml +43 -0
  1024. package/rules/unified/cwe-79/zm-py-cwe79-xss.yaml +124 -0
  1025. package/rules/unified/cwe-79/zm-taint-79-79-javascript-050.yaml +45 -0
  1026. package/rules/unified/cwe-79/zm-taint-79-79-javascript-054.yaml +45 -0
  1027. package/rules/unified/cwe-79/zm-taint-79-79-python-056.yaml +44 -0
  1028. package/rules/unified/cwe-798/zm-cs-cwe798-hardcoded-creds.yaml +107 -0
  1029. package/rules/unified/cwe-798/zm-go-cwe798-hardcoded-creds.yaml +154 -0
  1030. package/rules/unified/cwe-798/zm-py-cwe798-framework-creds.yaml +160 -0
  1031. package/rules/unified/cwe-798/zm-py-cwe798-hardcoded-creds.yaml +87 -0
  1032. package/rules/unified/cwe-798/zm-rust-cwe798-hardcoded-creds.yaml +128 -0
  1033. package/rules/unified/cwe-798/zm-tf-cwe798-hardcoded-creds.yaml +103 -0
  1034. package/rules/unified/cwe-862/zm-js-cwe862-nestjs-skip-auth.yaml +24 -0
  1035. package/rules/unified/cwe-89/cwe-89-sqli.yaml +90 -0
  1036. package/rules/unified/cwe-89/zm-cs-cwe89-sql-injection.yaml +95 -0
  1037. package/rules/unified/cwe-89/zm-go-cwe89-framework-sqli.yaml +154 -0
  1038. package/rules/unified/cwe-89/zm-go-cwe89-gorm-sqli.yaml +105 -0
  1039. package/rules/unified/cwe-89/zm-go-cwe89-sqli.yaml +90 -0
  1040. package/rules/unified/cwe-89/zm-java-cwe89-jpa-query-concat.yaml +56 -0
  1041. package/rules/unified/cwe-89/zm-java-hql-cwe89-001.yaml +73 -0
  1042. package/rules/unified/cwe-89/zm-js-cwe89-koa-sqli.yaml +29 -0
  1043. package/rules/unified/cwe-89/zm-js-cwe89-nestjs-typeorm.yaml +34 -0
  1044. package/rules/unified/cwe-89/zm-js-cwe89-prisma-typeorm.yaml +140 -0
  1045. package/rules/unified/cwe-89/zm-js-cwe89-prisma-unsafe.yaml +24 -0
  1046. package/rules/unified/cwe-89/zm-js-cwe89-sequelize-literal.yaml +26 -0
  1047. package/rules/unified/cwe-89/zm-js-cwe89-sqli.yaml +154 -0
  1048. package/rules/unified/cwe-89/zm-php-cwe89-sqli.yaml +185 -0
  1049. package/rules/unified/cwe-89/zm-py-cwe89-django-sqli.yaml +75 -0
  1050. package/rules/unified/cwe-89/zm-py-cwe89-injection-misc.yaml +94 -0
  1051. package/rules/unified/cwe-89/zm-py-cwe89-sqli.yaml +60 -0
  1052. package/rules/unified/cwe-89/zm-py-sqlalchemy-cwe89-01.yaml +66 -0
  1053. package/rules/unified/cwe-89/zm-rust-cwe89-sqli.yaml +149 -0
  1054. package/rules/unified/cwe-89/zm-taint-89-89-go-023.yaml +40 -0
  1055. package/rules/unified/cwe-89/zm-taint-89-89-go-024.yaml +40 -0
  1056. package/rules/unified/cwe-89/zm-taint-89-89-go-025.yaml +40 -0
  1057. package/rules/unified/cwe-89/zm-taint-89-89-java-001.yaml +48 -0
  1058. package/rules/unified/cwe-89/zm-taint-89-89-java-006.yaml +48 -0
  1059. package/rules/unified/cwe-89/zm-taint-89-89-java-008.yaml +48 -0
  1060. package/rules/unified/cwe-89/zm-taint-89-89-javascript-018.yaml +48 -0
  1061. package/rules/unified/cwe-89/zm-taint-89-89-javascript-019.yaml +48 -0
  1062. package/rules/unified/cwe-89/zm-taint-89-89-javascript-022.yaml +48 -0
  1063. package/rules/unified/cwe-89/zm-taint-89-89-python-014.yaml +48 -0
  1064. package/rules/unified/cwe-89/zm-taint-89-89-python-015.yaml +48 -0
  1065. package/rules/unified/cwe-89/zm-taint-89-89-python-017.yaml +48 -0
  1066. package/rules/unified/cwe-90/zm-java-cwe90-ldap-injection.yaml +54 -0
  1067. package/rules/unified/cwe-915/zm-go-cwe915-reflect-injection.yaml +70 -0
  1068. package/rules/unified/cwe-915/zm-java-cwe915-mass-assignment.yaml +17 -0
  1069. package/rules/unified/cwe-915/zm-js-cwe915-mass-assignment.yaml +112 -0
  1070. package/rules/unified/cwe-915/zm-js-cwe915-prototype-pollution.yaml +31 -0
  1071. package/rules/unified/cwe-915/zm-php-cwe915-mass-assignment.yaml +127 -0
  1072. package/rules/unified/cwe-915/zm-taint-915-915-javascript-216.yaml +39 -0
  1073. package/rules/unified/cwe-915/zm-taint-915-915-javascript-217.yaml +40 -0
  1074. package/rules/unified/cwe-915/zm-taint-915-915-javascript-218.yaml +39 -0
  1075. package/rules/unified/cwe-915/zm-taint-915-915-javascript-219.yaml +42 -0
  1076. package/rules/unified/cwe-917/zm-java-cwe917-expression-injection.yaml +121 -0
  1077. package/rules/unified/cwe-918/cwe-918-ssrf.yaml +46 -0
  1078. package/rules/unified/cwe-918/zm-cs-cwe918-ssrf.yaml +96 -0
  1079. package/rules/unified/cwe-918/zm-go-cwe918-ssrf.yaml +118 -0
  1080. package/rules/unified/cwe-918/zm-java-cwe918-jsoup-ssrf.yaml +56 -0
  1081. package/rules/unified/cwe-918/zm-java-cwe918-okhttp-full.yaml +63 -0
  1082. package/rules/unified/cwe-918/zm-java-cwe918-resttemplate.yaml +68 -0
  1083. package/rules/unified/cwe-918/zm-java-cwe918-rt-getforentity.yaml +49 -0
  1084. package/rules/unified/cwe-918/zm-java-cwe918-ssrf-depth.yaml +104 -0
  1085. package/rules/unified/cwe-918/zm-java-cwe918-ssrf-resttemplate.yaml +78 -0
  1086. package/rules/unified/cwe-918/zm-java-cwe918-url-openconnection.yaml +58 -0
  1087. package/rules/unified/cwe-918/zm-java-cwe918-webclient-ssrf.yaml +60 -0
  1088. package/rules/unified/cwe-918/zm-java-cwe918-webclient.yaml +45 -0
  1089. package/rules/unified/cwe-918/zm-js-cwe918-http-ssrf-concat.yaml +28 -0
  1090. package/rules/unified/cwe-918/zm-js-cwe918-nextjs-ssrf.yaml +46 -0
  1091. package/rules/unified/cwe-918/zm-js-cwe918-ssrf-fetch.yaml +135 -0
  1092. package/rules/unified/cwe-918/zm-js-cwe918-ssrf.yaml +133 -0
  1093. package/rules/unified/cwe-918/zm-php-cwe918-ssrf.yaml +144 -0
  1094. package/rules/unified/cwe-918/zm-py-cwe918-flask-ssrf.yaml +40 -0
  1095. package/rules/unified/cwe-918/zm-py-cwe918-ssrf-advanced.yaml +105 -0
  1096. package/rules/unified/cwe-918/zm-py-cwe918-ssrf.yaml +124 -0
  1097. package/rules/unified/cwe-918/zm-taint-918-918-java-078.yaml +45 -0
  1098. package/rules/unified/cwe-918/zm-taint-918-918-java-079.yaml +45 -0
  1099. package/rules/unified/cwe-918/zm-taint-918-918-python-085.yaml +46 -0
  1100. package/rules/unified/cwe-94/cwe-94-code-injection.yaml +60 -0
  1101. package/rules/unified/cwe-94/zm-java-cwe94-ognl.yaml +67 -0
  1102. package/rules/unified/cwe-94/zm-java-cwe94-spel-injection.yaml +86 -0
  1103. package/rules/unified/cwe-94/zm-java-cwe94-spel.yaml +113 -0
  1104. package/rules/unified/cwe-94/zm-java-cwe94-ssti.yaml +23 -0
  1105. package/rules/unified/cwe-94/zm-java-cwe94-value-spel.yaml +56 -0
  1106. package/rules/unified/cwe-94/zm-java-expression-cwe94-001.yaml +111 -0
  1107. package/rules/unified/cwe-94/zm-js-cwe94-template-injection.yaml +131 -0
  1108. package/rules/unified/cwe-94/zm-php-cwe94-code-injection.yaml +129 -0
  1109. package/rules/unified/cwe-94/zm-py-cwe94-ssti.yaml +88 -0
  1110. package/rules/unified/cwe-942/zm-java-cwe942-cors-wildcard.yaml +63 -0
  1111. package/rules/unified/cwe-942/zm-java-cwe942-cors.yaml +16 -0
  1112. package/rules/unified/cwe-942/zm-js-cwe942-cors.yaml +50 -0
  1113. package/rules/unified/cwe-942/zm-js-cwe942-express-cors.yaml +25 -0
  1114. package/rules/unified/cwe-943/zm-go-cwe943-nosql-injection.yaml +89 -0
  1115. package/rules/unified/cwe-943/zm-js-cwe943-mongoose-nosqli.yaml +29 -0
  1116. package/rules/unified/cwe-943/zm-js-cwe943-nosql-injection.yaml +53 -0
  1117. package/rules/unified/cwe-943/zm-py-cwe943-nosql-injection.yaml +124 -0
  1118. package/rules/unified/cwe-943/zm-taint-943-943-java-238.yaml +38 -0
  1119. package/rules/unified/cwe-943/zm-taint-943-943-javascript-234.yaml +41 -0
  1120. package/rules/unified/cwe-943/zm-taint-943-943-javascript-235.yaml +41 -0
  1121. package/rules/unified/cwe-943/zm-taint-943-943-javascript-236.yaml +40 -0
  1122. package/rules/unified/cwe-943/zm-taint-943-943-python-237.yaml +39 -0
  1123. package/rules/unified/cwe-95/zm-js-cwe95-eval.yaml +60 -0
  1124. package/rules/unified/cwe-95/zm-js-cwe95-function-ctor.yaml +32 -0
  1125. package/rules/unified/cwe-98/zm-php-cwe98-file-include.yaml +142 -0
  1126. package/rules/unified/cwe-unknown/zm-docker-security.yaml +105 -0
  1127. package/rules/unified/cwe-unknown/zm-go-cwe-unknown-misc.yaml +152 -0
  1128. package/rules/unified/cwe-unknown/zm-k8s-security.yaml +80 -0
@@ -0,0 +1,56 @@
1
+ # Source: common | Cluster: N/A
2
+ # CWE-89: Spring Data JPA @Query 含拼接SQL检测
3
+ # 逐码 ZhuMa V4.3 — Spring Data JPA 框架特化规则
4
+
5
+ rules:
6
+
7
+ # ZM-JAVA-CWE89-JPA-QUERY-001: @Query native SQL 拼接用户输入
8
+ - id: zm-java-cwe89-jpa-query-001
9
+ severity: ERROR
10
+ message: |
11
+ Spring Data JPA @Query 注解中使用字符串拼接构造 SQL 且拼接了用户输入(@Param 映射到 request parameter),
12
+ 存在 SQL 注入风险。
13
+ 使用参数化查询: @Query("SELECT * FROM users WHERE name = :name") 配合 @Param("name"),
14
+ 或使用 JPQL 而非原生 SQL。
15
+ languages:
16
+ - java
17
+ pattern-either:
18
+ - pattern: |
19
+ @Query("SELECT ..." + $VAR + "...")
20
+ - pattern: |
21
+ @Query(value = "..." + $VAR + "...")
22
+ - pattern: |
23
+ @Query(value = "..." + $VAR + "...", nativeQuery = true)
24
+ metadata:
25
+ cwe: "CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')"
26
+ severity: ERROR
27
+ precision: high
28
+ category: sql-injection
29
+ owasp: "A03:2021 - Injection"
30
+ likelihood: HIGH
31
+ impact: CRITICAL
32
+
33
+ # ZM-JAVA-CWE89-JPA-QUERY-002: @Query 动态排序字段拼接
34
+ - id: zm-java-cwe89-jpa-query-002
35
+ severity: WARNING
36
+ message: |
37
+ Spring Data JPA @Query 中使用字符串拼接 ORDER BY 或 GROUP BY 子句,
38
+ 若拼接变量来自用户输入,可导致 SQL 注入。
39
+ 修复: 对排序字段名做白名单校验,使用 Sort 参数替代字符串拼接 ORDER BY。
40
+ languages:
41
+ - java
42
+ pattern-either:
43
+ - pattern: |
44
+ @Query("SELECT ... ORDER BY " + $VAR)
45
+ - pattern: |
46
+ @Query(value = "SELECT ... ORDER BY " + $VAR)
47
+ - pattern: |
48
+ @Query("SELECT ... GROUP BY " + $VAR)
49
+ metadata:
50
+ cwe: "CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')"
51
+ severity: WARNING
52
+ precision: medium
53
+ category: sql-injection
54
+ owasp: "A03:2021 - Injection"
55
+ likelihood: MEDIUM
56
+ impact: HIGH
@@ -0,0 +1,73 @@
1
+ # Source: common | Cluster: N/A
2
+ # CWE-89/564: HQL/JPQL注入 — JPA/Hibernate查询注入深度检测
3
+ # ZhuMa V4.1 — Persistence Layer Injection
4
+ # 覆盖: HQL字符串拼接 / JPQL TypedQuery注入 / Criteria API误用
5
+
6
+ rules:
7
+
8
+ # ZM-JAVA-HQL-001: HQL/JPQL字符串拼接用户输入
9
+ - id: zm-java-hql-001
10
+ severity: ERROR
11
+ message: |
12
+ entityManager.createQuery() 或 session.createQuery() 使用字符串拼接构造HQL/JPQL查询 — 注入攻击。
13
+ HQL注入可泄露全表数据、绕过认证、修改/删除数据(不同于SQL注入,HQL不支持UNION/--注释)。
14
+ CVE-2023-29509: Hibernate HQL注入绕过; CVE-2020-25638: Hibernate二级缓存注入。
15
+ 修复: 1) 使用命名参数 :paramName (占位符) 2) Criteria API 3) 参数白名单过滤
16
+ languages:
17
+ - java
18
+ pattern-either:
19
+ - pattern: |
20
+ $EM.createQuery($STR + $REQ.getParameter(...))
21
+ - pattern: |
22
+ $SESS.createQuery($STR + $REQ.getParameter(...))
23
+ - pattern: |
24
+ $EM.createQuery(String.format(..., $REQ.getParameter(...)))
25
+ - pattern: |
26
+ $SESS.createQuery("from " + $REQ.getParameter(...))
27
+ - pattern: |
28
+ $EM.createQuery($REQ.getParameter(...) + $STR)
29
+ metadata:
30
+ cwe: "CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')"
31
+ severity: ERROR
32
+ precision: high
33
+ category: injection
34
+ likelihood: HIGH
35
+ impact: HIGH
36
+ owasp: "A03:2021 - Injection"
37
+ references:
38
+ - "https://nvd.nist.gov/vuln/detail/CVE-2023-29509"
39
+ - "https://nvd.nist.gov/vuln/detail/CVE-2020-25638"
40
+ - "https://cheatsheetseries.owasp.org/cheatsheets/Query_Parameterization_Cheat_Sheet.html"
41
+
42
+ # ZM-JAVA-HQL-JPQL-002: JPQL NamedQuery + 动态ORDER BY注入
43
+ - id: zm-java-hql-jpql-002
44
+ severity: ERROR
45
+ message: |
46
+ JPQL ORDER BY子句使用用户可控字段名拼接 — HQL注入可泄露数据(通过ORDER BY盲注)。
47
+ ORDER BY无法使用参数化绑定,攻击者可通过时间盲注或排序结果差异逐字符推断数据。
48
+ CVE-2021-45105: Apache Log4j2 injection chain via order by manipulation。
49
+ 修复: 1) 使用CASE WHEN白名单映射 2) CriteriaQuery.orderBy() 3) 拒绝用户控制的排序字段
50
+ languages:
51
+ - java
52
+ pattern-either:
53
+ - pattern: |
54
+ $EM.createQuery(... + "order by " + $REQ.getParameter(...) + ...)
55
+ - pattern: |
56
+ $SESS.createQuery(... + " ORDER BY " + $REQ.getParameter(...))
57
+ - pattern: |
58
+ $EM.createNativeQuery($SQL + $REQ.getParameter(...))
59
+ - pattern: |
60
+ $SESS.createNativeQuery($SQL + $REQ.getParameter(...))
61
+ metadata:
62
+ cwe: "CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')"
63
+ severity: ERROR
64
+ precision: medium
65
+ category: injection
66
+ likelihood: MEDIUM
67
+ impact: HIGH
68
+ owasp: "A03:2021 - Injection"
69
+ references:
70
+ - "https://nvd.nist.gov/vuln/detail/CVE-2021-45105"
71
+ - "https://nvd.nist.gov/vuln/detail/CVE-2020-25638"
72
+ - "https://cheatsheetseries.owasp.org/cheatsheets/Query_Parameterization_Cheat_Sheet.html"
73
+ - "https://owasp.org/www-project-web-security-testing-guide/stable/4-Web_Application_Security_Testing/07-Input_Validation_Testing/05-Testing_for_SQL_Injection"
@@ -0,0 +1,29 @@
1
+ # Source: common | Cluster: N/A
2
+ # CWE-89: Koa ctx.request.body 拼入 SQL 查询
3
+ # 逐码 ZhuMa V4.3 — JS/TS Koa 规则库
4
+
5
+ rules:
6
+
7
+ - id: zm-js-koa-sqli-001
8
+ severity: ERROR
9
+ message: >
10
+ Koa 中间件中 ctx.request.body 用户输入拼接进 SQL 查询字符串,存在 SQL 注入风险。
11
+ 修复: 使用参数化查询(如 knex.raw('?', [input]) 或 ORM 参数绑定)。
12
+ languages:
13
+ - javascript
14
+ - typescript
15
+ pattern-either:
16
+ - pattern: |
17
+ $DB.query($QUERY + $CTX.request.body.$FIELD)
18
+ - pattern: |
19
+ $DB.raw($QUERY + $CTX.request.body.$FIELD)
20
+ - pattern: |
21
+ $DB.query($QUERY + $CTX.request.body)
22
+ - pattern: |
23
+ $DB.raw($QUERY + $CTX.request.body)
24
+ metadata:
25
+ cwe: "CWE-89: SQL Injection"
26
+ owasp: "A03:2021 - Injection"
27
+ category: security
28
+ precision: high
29
+ confidence: high
@@ -0,0 +1,34 @@
1
+ # Source: common | Cluster: N/A
2
+ # CWE-89: NestJS @Body/@Param 直接拼入 TypeORM query/queryRaw
3
+ # 逐码 ZhuMa V4.3 — JS/TS NestJS 规则库
4
+
5
+ rules:
6
+
7
+ - id: zm-js-nestjs-sqli-001
8
+ severity: ERROR
9
+ message: >
10
+ NestJS 控制器中 @Body()/@Param() 装饰器提取的用户输入直接拼接进 TypeORM
11
+ query()/queryRaw() SQL 查询,存在 SQL 注入风险。
12
+ 修复: 使用 TypeORM QueryBuilder 参数化查询或 repository API 替代 raw query。
13
+ languages:
14
+ - javascript
15
+ - typescript
16
+ pattern-either:
17
+ - pattern: |
18
+ $REPO.query($QUERY + $BODY.$FIELD)
19
+ - pattern: |
20
+ $REPO.query($QUERY + $PARAM.$FIELD)
21
+ - pattern: |
22
+ $DS.query($QUERY + $BODY.$FIELD)
23
+ - pattern: |
24
+ $DS.query($QUERY + $PARAM.$FIELD)
25
+ - pattern: |
26
+ $MGR.query($QUERY + $BODY.$FIELD)
27
+ - pattern: |
28
+ $MGR.query($QUERY + $PARAM.$FIELD)
29
+ metadata:
30
+ cwe: "CWE-89: SQL Injection"
31
+ owasp: "A03:2021 - Injection"
32
+ category: security
33
+ precision: high
34
+ confidence: high
@@ -0,0 +1,140 @@
1
+ # Source: common | Cluster: N/A
2
+ # CWE-89 / CWE-943: Prisma / TypeORM 不安全查询检测
3
+ # 逐码 ZhuMa V4.1 Sprint 3 — JS/TS 规则库
4
+ # 覆盖: Prisma $queryRaw/$executeRaw、TypeORM query/manager.query
5
+
6
+ rules:
7
+
8
+ # ZM-JS-ORM-001: Prisma $queryRaw / $executeRaw 拼接用户输入
9
+ - id: zm-js-orm-001
10
+ severity: ERROR
11
+ message: |
12
+ 检测到 Prisma Client 的 $queryRaw / $executeRaw 使用了字符串拼接或模板字符串构造
13
+ SQL查询。这些方法执行原始SQL,未使用参数化查询会造成SQL注入。
14
+
15
+ CVE-2023-22899: Prisma $queryRaw 若用模板字符串拼接仍存在注入。
16
+ Prisma 官方推荐模板字符串变量方式: prisma.$queryRaw`SELECT * FROM users WHERE id = ${id}`,
17
+ 但仅安全当使用 Prisma 官方 tagged template 传递变量——使用普通模板字符串拼接仍不安全。
18
+
19
+ 修复:
20
+ 1. 使用 tagged template: prisma.$queryRaw`SELECT * FROM users WHERE id = ${id}`
21
+ 2. 使用 Prisma Client API 替代 raw query: prisma.user.findUnique({ where: { id } })
22
+ 3. 如必须用 raw, 确保用 Prisma 参数化: $queryRaw(sql`SELECT ...`, ...args)
23
+ 4. 严禁字符串拼接: $queryRaw('SELECT ... ' + userInput)
24
+ languages:
25
+ - javascript
26
+ - typescript
27
+ pattern-either:
28
+ - pattern: $PRISMA.$queryRaw('SELECT' + $INPUT, ...)
29
+ - pattern: $PRISMA.$queryRaw('INSERT' + $INPUT, ...)
30
+ - pattern: $PRISMA.$queryRaw('UPDATE' + $INPUT, ...)
31
+ - pattern: $PRISMA.$queryRaw('DELETE' + $INPUT, ...)
32
+ - pattern: $PRISMA.$executeRaw('SELECT' + $INPUT, ...)
33
+ - pattern: $PRISMA.$executeRaw('INSERT' + $INPUT, ...)
34
+ - pattern: $PRISMA.$executeRaw('UPDATE' + $INPUT, ...)
35
+ - pattern: $PRISMA.$executeRaw('DELETE' + $INPUT, ...)
36
+ - pattern: $PRISMA.$queryRaw($QUERY + $INPUT, ...)
37
+ - pattern: $PRISMA.$executeRaw($QUERY + $INPUT, ...)
38
+ metadata:
39
+ cwe: "CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')"
40
+ owasp: "A03:2021 - Injection"
41
+ category: sql-injection
42
+ precision: high
43
+ confidence: high
44
+ references:
45
+ - "https://nvd.nist.gov/vuln/detail/CVE-2023-22899"
46
+ - "https://www.prisma.io/docs/orm/prisma-client/using-raw-sql/raw-queries"
47
+ - "https://www.prisma.io/blog/sql-injection-attack-with-raw-queries-in-prisma-client-2nd9lrr5hf"
48
+
49
+ # ZM-JS-ORM-002: TypeORM query / manager.query 拼接
50
+ - id: zm-js-orm-002
51
+ severity: ERROR
52
+ message: |
53
+ 检测到 TypeORM 的 EntityManager.query() / DataSource.query() 或 Repository.query()
54
+ 使用了字符串拼接构造SQL查询。TypeORM 的 query() 方法直接执行原始SQL字符串,
55
+ 拼接方式会导致SQL注入。
56
+
57
+ CWE-89: SQL Injection。
58
+ TypeORM 推荐: repository.find({ where: { name } }) 或使用 QueryBuilder。
59
+
60
+ 修复:
61
+ 1. 使用 QueryBuilder: repository.createQueryBuilder('user').where('user.name = :name', { name })
62
+ 2. 使用参数化: manager.query('SELECT * FROM users WHERE id = $1', [id])
63
+ 3. 使用 repository.find / findOne / save API 代替 raw query
64
+ 4. 如必须 raw query,使用命名参数: { replacements: { id: userId } }
65
+ languages:
66
+ - javascript
67
+ - typescript
68
+ pattern-either:
69
+ - pattern: $MGR.query('SELECT' + $INPUT, ...)
70
+ - pattern: $MGR.query('INSERT' + $INPUT, ...)
71
+ - pattern: $MGR.query('UPDATE' + $INPUT, ...)
72
+ - pattern: $MGR.query('DELETE' + $INPUT, ...)
73
+ - pattern: $DS.query('SELECT' + $INPUT, ...)
74
+ - pattern: $DS.query('INSERT' + $INPUT, ...)
75
+ - pattern: $DS.query('UPDATE' + $INPUT, ...)
76
+ - pattern: $DS.query('DELETE' + $INPUT, ...)
77
+ - pattern: $REPO.query('SELECT' + $INPUT, ...)
78
+ - pattern: $REPO.query('INSERT' + $INPUT, ...)
79
+ - pattern: $REPO.query('UPDATE' + $INPUT, ...)
80
+ - pattern: $REPO.query('DELETE' + $INPUT, ...)
81
+ - pattern: $MGR.query(`SELECT ... ${$INPUT}`, ...)
82
+ - pattern: $DS.query(`SELECT ... ${$INPUT}`, ...)
83
+ - pattern: $REPO.query(`SELECT ... ${$INPUT}`, ...)
84
+ metadata:
85
+ cwe: "CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')"
86
+ owasp: "A03:2021 - Injection"
87
+ category: orm
88
+ precision: high
89
+ confidence: high
90
+ references:
91
+ - "https://typeorm.io/entity-manager-api#query"
92
+ - "https://cheatsheetseries.owasp.org/cheatsheets/SQL_Injection_Prevention_Cheat_Sheet.html"
93
+
94
+ # ZM-JS-ORM-003: ORM find 操作中使用动态操作符注入
95
+ - id: zm-js-orm-003
96
+ severity: WARNING
97
+ message: |
98
+ 检测到 Mongoose/MongoDB find / TypeORM find 操作中将 req.body / req.query
99
+ 对象整体传入作为查询条件,攻击者可注入 MongoDB $where / $eq / $regex / $ne
100
+ 或 TypeORM findOptionsWhere 覆盖查询逻辑。
101
+
102
+ CVE-2020-7774: y18n 原型污染 + MongoDB $where RCE。
103
+ CVE-2023-26155: node-qpdf NoSQL 注入组合。
104
+ CWE-943: Improper Neutralization of Special Elements in Data Query Logic。
105
+
106
+ 修复:
107
+ 1. Mongoose: 使用 mongo-sanitize 库过滤 $ 操作符:
108
+ const clean = sanitize(req.body); Model.find(clean)
109
+ 2. TypeORM: 使用 FindOptionsWhere 显式指字段:
110
+ { where: { id: Equal(req.params.id) } }
111
+ 3. 使用 allowlist: 仅提取预期字段,不将整个 req.body/query 传给 ORM
112
+ 4. 使用 express-mongo-sanitize 中间件全局过滤
113
+ languages:
114
+ - javascript
115
+ - typescript
116
+ pattern-either:
117
+ - pattern: $MODEL.find($REQ.body, ...)
118
+ - pattern: $MODEL.find($REQ.query, ...)
119
+ - pattern: $MODEL.findOne($REQ.body, ...)
120
+ - pattern: $MODEL.findOne($REQ.query, ...)
121
+ - pattern: $MODEL.find({...$REQ.body}, ...)
122
+ - pattern: $MODEL.findByIdAndUpdate($_, $REQ.body, ...)
123
+ - pattern: $MODEL.findOneAndUpdate($_, $REQ.body, ...)
124
+ - pattern: "$REPO.find({ where: $REQ.body })"
125
+ - pattern: "$REPO.findOne({ where: $REQ.body })"
126
+ - pattern: "$REPO.find({ where: $REQ.query })"
127
+ - pattern: "$REPO.findOne({ where: $REQ.query })"
128
+ - pattern: $MODEL.deleteMany($REQ.body, ...)
129
+ - pattern: $MODEL.deleteMany($REQ.query, ...)
130
+ metadata:
131
+ cwe: "CWE-943: Improper Neutralization of Special Elements in Data Query Logic"
132
+ owasp: "A03:2021 - Injection"
133
+ category: orm
134
+ precision: medium
135
+ confidence: medium
136
+ references:
137
+ - "https://nvd.nist.gov/vuln/detail/CVE-2020-7774"
138
+ - "https://nvd.nist.gov/vuln/detail/CVE-2023-26155"
139
+ - "https://www.npmjs.com/package/express-mongo-sanitize"
140
+ - "https://cheatsheetseries.owasp.org/cheatsheets/NoSQL_Injection_Prevention_Cheat_Sheet.html"
@@ -0,0 +1,24 @@
1
+ # Source: common | Cluster: N/A
2
+ # CWE-89: Prisma $queryRawUnsafe/$executeRawUnsafe
3
+ # 逐码 ZhuMa V4.3 — JS/TS Prisma 规则库
4
+
5
+ rules:
6
+
7
+ - id: zm-js-prisma-unsafe-001
8
+ severity: ERROR
9
+ message: >
10
+ Prisma 使用 $queryRawUnsafe() 或 $executeRawUnsafe() 方法,这些方法直接执行
11
+ 未参数化的SQL字符串,存在SQL注入风险。
12
+ 修复: 使用 $queryRaw(TEMPLATE`...`) tagged template 参数化查询替代。
13
+ languages:
14
+ - javascript
15
+ - typescript
16
+ pattern-either:
17
+ - pattern: $PRISMA.$queryRawUnsafe(...)
18
+ - pattern: $PRISMA.$executeRawUnsafe(...)
19
+ metadata:
20
+ cwe: "CWE-89: SQL Injection"
21
+ owasp: "A03:2021 - Injection"
22
+ category: security
23
+ precision: very-high
24
+ confidence: very-high
@@ -0,0 +1,26 @@
1
+ # Source: common | Cluster: N/A
2
+ # CWE-89: Sequelize literal/query 含拼接
3
+ # 逐码 ZhuMa V4.3 — JS/TS Sequelize 规则库
4
+
5
+ rules:
6
+
7
+ - id: zm-js-sequelize-sqli-001
8
+ severity: ERROR
9
+ message: >
10
+ Sequelize 的 Sequelize.literal() 或 sequelize.query() 使用字符串拼接构造SQL,
11
+ 绕过 ORM 参数化保护,存在 SQL 注入风险。
12
+ 修复: 使用 Sequelize 模型方法(findAll/findOne)替代 raw query,或使用参数绑定。
13
+ languages:
14
+ - javascript
15
+ - typescript
16
+ pattern-either:
17
+ - pattern: Sequelize.literal($STR + $INPUT)
18
+ - pattern: Sequelize.literal(`...${$INPUT}...`)
19
+ - pattern: $SEQ.query($STR + $INPUT)
20
+ - pattern: $SEQ.query(`...${$INPUT}...`)
21
+ metadata:
22
+ cwe: "CWE-89: SQL Injection"
23
+ owasp: "A03:2021 - Injection"
24
+ category: security
25
+ precision: high
26
+ confidence: high
@@ -0,0 +1,154 @@
1
+ # Source: common | Cluster: N/A
2
+ # CWE-89: Node.js SQL注入检测规则
3
+ # 逐码 ZhuMa V4.1 Sprint 2 — JS/TS 规则库
4
+ # 覆盖: mysql2.query、sequelize.query(raw)、knex.raw、pg.query、sqlite3
5
+
6
+ rules:
7
+
8
+ # ZM-JS-SQLI-001: SQL驱动字符串拼接查询(高精度)
9
+ - id: zm-js-sqli-001
10
+ severity: ERROR
11
+ message: |
12
+ 检测到SQL查询使用了字符串拼接或模板字符串构造SQL语句,存在SQL注入风险。
13
+ 攻击者可通过控制拼接变量注入SQL命令,实现数据库脱库、篡改或RCE。
14
+
15
+ 修复:
16
+ 1. 使用参数化查询(Parameterized Query)替代字符串拼接
17
+ 2. mysql2: connection.execute('SELECT * FROM users WHERE id = ?', [userId])
18
+ 3. pg: client.query('SELECT * FROM users WHERE id = $1', [userId])
19
+ 4. 如确实需要动态表名/列名,使用白名单校验
20
+ 5. 禁止 ORDER BY / GROUP BY / LIMIT 使用用户输入直接拼接
21
+ languages:
22
+ - javascript
23
+ - typescript
24
+ pattern-either:
25
+ # mysql2 query/execute 拼接
26
+ - pattern: $CONN.query('SELECT' + $INPUT, ...)
27
+ - pattern: $CONN.query('INSERT' + $INPUT, ...)
28
+ - pattern: $CONN.query('UPDATE' + $INPUT, ...)
29
+ - pattern: $CONN.query('DELETE' + $INPUT, ...)
30
+ - pattern: $CONN.execute('SELECT' + $INPUT, ...)
31
+ - pattern: $CONN.execute('INSERT' + $INPUT, ...)
32
+ - pattern: $CONN.execute('UPDATE' + $INPUT, ...)
33
+ - pattern: $CONN.query($QUERY + $INPUT, ...)
34
+ - pattern: $CONN.execute($QUERY + $INPUT, ...)
35
+ # pg query 拼接
36
+ - pattern: $POOL.query('SELECT' + $INPUT, ...)
37
+ - pattern: $CLIENT.query('SELECT' + $INPUT, ...)
38
+ - pattern: $POOL.query('INSERT' + $INPUT, ...)
39
+ - pattern: $CLIENT.query('INSERT' + $INPUT, ...)
40
+ - pattern: $POOL.query('UPDATE' + $INPUT, ...)
41
+ - pattern: $CLIENT.query('UPDATE' + $INPUT, ...)
42
+ - pattern: $POOL.query('DELETE' + $INPUT, ...)
43
+ - pattern: $CLIENT.query('DELETE' + $INPUT, ...)
44
+ # sqlite3 拼接
45
+ - pattern: $DB.run('SELECT' + $INPUT, ...)
46
+ - pattern: $DB.run('INSERT' + $INPUT, ...)
47
+ - pattern: $DB.run('UPDATE' + $INPUT, ...)
48
+ - pattern: $DB.run('DELETE' + $INPUT, ...)
49
+ - pattern: $DB.get('SELECT' + $INPUT, ...)
50
+ - pattern: $DB.all('SELECT' + $INPUT, ...)
51
+ - pattern: $DB.exec('SELECT' + $INPUT, ...)
52
+ # 模板字符串拼接
53
+ - pattern: $CONN.query(`SELECT ... ${$INPUT}`, ...)
54
+ - pattern: $CLIENT.query(`SELECT ... ${$INPUT}`, ...)
55
+ - pattern: $POOL.query(`SELECT ... ${$INPUT}`, ...)
56
+ - pattern: $DB.run(`SELECT ... ${$INPUT}`, ...)
57
+ - pattern: $DB.all(`SELECT ... ${$INPUT}`, ...)
58
+ metadata:
59
+ cwe: "CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')"
60
+ owasp: "A03:2021 - Injection"
61
+ category: sql-injection
62
+ precision: medium
63
+ references:
64
+ - "https://owasp.org/www-community/attacks/SQL_Injection"
65
+ - "https://cheatsheetseries.owasp.org/cheatsheets/SQL_Injection_Prevention_Cheat_Sheet.html"
66
+
67
+ # ZM-JS-SQLI-002: Sequelize.query raw / knex.raw 拼接
68
+ - id: zm-js-sqli-002
69
+ severity: ERROR
70
+ message: |
71
+ 检测到 Sequelize.query(raw: true) 或 knex.raw() 使用了字符串拼接构造SQL。
72
+ 这些方法会直接将字符串作为原始SQL执行,绕过ORM的参数化保护。
73
+
74
+ 修复:
75
+ 1. Sequelize: sequelize.query('SELECT * FROM users WHERE id = ?', { replacements: [userId] })
76
+ 2. Sequelize: sequelize.query('SELECT * FROM users WHERE id = :id', { replacements: { id: userId } })
77
+ 3. Knex: knex.raw('SELECT * FROM users WHERE id = ?', [userId])
78
+ 4. 尽量避免使用 raw query,优先使用 ORM 的链式API
79
+ languages:
80
+ - javascript
81
+ - typescript
82
+ pattern-either:
83
+ - pattern: $SEQ.query($QUERY + $INPUT, ...)
84
+ - pattern: $SEQ.query('SELECT' + $INPUT, ...)
85
+ - pattern: $SEQ.query('INSERT' + $INPUT, ...)
86
+ - pattern: $SEQ.query('UPDATE' + $INPUT, ...)
87
+ - pattern: $SEQ.query('DELETE' + $INPUT, ...)
88
+ - pattern: knex.raw($QUERY + $INPUT, ...)
89
+ - pattern: knex.raw('SELECT' + $INPUT, ...)
90
+ - pattern: knex.raw('INSERT' + $INPUT, ...)
91
+ - pattern: knex.raw('UPDATE' + $INPUT, ...)
92
+ - pattern: knex.raw('DELETE' + $INPUT, ...)
93
+ - pattern: $KNEX.raw('SELECT' + $INPUT, ...)
94
+ - pattern: $KNEX.raw('INSERT' + $INPUT, ...)
95
+ - pattern: $KNEX.raw('UPDATE' + $INPUT, ...)
96
+ - pattern: $KNEX.raw('DELETE' + $INPUT, ...)
97
+ - pattern: $SEQ.query(`SELECT ... ${$INPUT}`, ...)
98
+ - pattern: knex.raw(`SELECT ... ${$INPUT}`, ...)
99
+ metadata:
100
+ cwe: "CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')"
101
+ owasp: "A03:2021 - Injection"
102
+ category: sql-injection
103
+ precision: high
104
+ references:
105
+ - "https://sequelize.org/docs/v6/core-concepts/raw-queries/"
106
+ - "https://knexjs.org/guide/raw.html"
107
+
108
+ # ZM-JS-SQLI-003: SQL查询中使用 req.query/params/body 拼接
109
+ - id: zm-js-sqli-003
110
+ severity: ERROR
111
+ message: |
112
+ 检测到SQL查询中直接拼接了 req.query / req.params / req.body 的用户输入。
113
+ 这是SQL注入的最高风险模式。
114
+
115
+ 修复:
116
+ 1. 立即替换为参数化查询:
117
+ db.query('SELECT * FROM users WHERE name = ?', [req.query.name])
118
+ 2. 使用查询构建器: knex.select().from('users').where('name', req.query.name)
119
+ 3. 永远不要将用户输入拼接到SQL字符串中
120
+ languages:
121
+ - javascript
122
+ - typescript
123
+ pattern-either:
124
+ - pattern: $CONN.query($QUERY + $REQ.query.$FIELD, ...)
125
+ - pattern: $CONN.query($QUERY + $REQ.params.$FIELD, ...)
126
+ - pattern: $CONN.query($QUERY + $REQ.body.$FIELD, ...)
127
+ - pattern: $CLIENT.query($QUERY + $REQ.query.$FIELD, ...)
128
+ - pattern: $CLIENT.query($QUERY + $REQ.params.$FIELD, ...)
129
+ - pattern: $CLIENT.query($QUERY + $REQ.body.$FIELD, ...)
130
+ - pattern: $POOL.query($QUERY + $REQ.query.$FIELD, ...)
131
+ - pattern: $POOL.query($QUERY + $REQ.params.$FIELD, ...)
132
+ - pattern: $POOL.query($QUERY + $REQ.body.$FIELD, ...)
133
+ - pattern: $DB.run($QUERY + $REQ.query.$FIELD, ...)
134
+ - pattern: $DB.run($QUERY + $REQ.params.$FIELD, ...)
135
+ - pattern: $DB.run($QUERY + $REQ.body.$FIELD, ...)
136
+ - pattern: $DB.all($QUERY + $REQ.query.$FIELD, ...)
137
+ - pattern: $DB.all($QUERY + $REQ.params.$FIELD, ...)
138
+ - pattern: $DB.all($QUERY + $REQ.body.$FIELD, ...)
139
+ - pattern: $DB.get($QUERY + $REQ.query.$FIELD, ...)
140
+ - pattern: $DB.get($QUERY + $REQ.params.$FIELD, ...)
141
+ - pattern: $DB.get($QUERY + $REQ.body.$FIELD, ...)
142
+ - pattern: knex.raw($QUERY + $REQ.query.$FIELD, ...)
143
+ - pattern: knex.raw($QUERY + $REQ.params.$FIELD, ...)
144
+ - pattern: knex.raw($QUERY + $REQ.body.$FIELD, ...)
145
+ - pattern: $SEQ.query($QUERY + $REQ.query.$FIELD, ...)
146
+ - pattern: $SEQ.query($QUERY + $REQ.params.$FIELD, ...)
147
+ - pattern: $SEQ.query($QUERY + $REQ.body.$FIELD, ...)
148
+ metadata:
149
+ cwe: "CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')"
150
+ owasp: "A03:2021 - Injection"
151
+ category: sql-injection
152
+ precision: high
153
+ references:
154
+ - "https://owasp.org/www-community/attacks/SQL_Injection"