Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[HELP] is there a way to detect the sql such as 'delete from user where 1 = 1' which is dangerous #2165

emp-java started this conversation in Ideas
Discussion options

more examples:

delete from user where 1 = 1;
delete from user where 1+1 = 2;
delete from user where 1 < 2;

You must be logged in to vote

Replies: 1 comment

Comment options

Certainly.

  1. come up with a list of conditions you do consider dangerous
  2. write an evaluation method that calculates the effective result
  3. then walk the AST and check for those conditions, which are ALWAYS true or false
You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
Converted from issue

This discussion was converted from issue #2164 on February 12, 2025 05:40.

AltStyle によって変換されたページ (->オリジナル) /