Skip to content

Instantly share code, notes, and snippets.

@minusworld
Created December 10, 2021 18:59
Show Gist options
  • Select an option

  • Save minusworld/fc07496c468f62b1fd14411588567a82 to your computer and use it in GitHub Desktop.

Select an option

Save minusworld/fc07496c468f62b1fd14411588567a82 to your computer and use it in GitHub Desktop.
rules:
- id: spring-sql-injection
message: >-
SQLi
severity: ERROR
mode: join
join:
refs:
- rule: https://raw.githubusercontent.com/minusworld/semgrep-library/main/rules/java/spring/user-input.yaml
as: spring-user-input
- rule: https://raw.githubusercontent.com/minusworld/semgrep-library/main/rules/java/spring/method-parameter-formatted-sql.yaml
as: formatted-sql
on:
- 'spring-user-input.$SINK == formatted-sql.$METHODNAME'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment