Skip to content

Instantly share code, notes, and snippets.

@plowsec
Created January 23, 2024 08:49
Show Gist options
  • Select an option

  • Save plowsec/276665a0c6c4cc52471417ff06c94152 to your computer and use it in GitHub Desktop.

Select an option

Save plowsec/276665a0c6c4cc52471417ff06c94152 to your computer and use it in GitHub Desktop.
ruby on rails bug patterns

sql injection from string concatenation

.(delete_all|from|where|find_by)\s*\((?:"[^"]*#\{[^\}]+\}"|'[^']*#\{[^\}]+\}'|:\w+\s*=>\s*[^)]+)\)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment