Last active
November 16, 2024 01:04
-
-
Save kharissulistiyo/b668854c6faa9faf4bb591cc08612347 to your computer and use it in GitHub Desktop.
Bad code sample: SQL injection vulnerability
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
foreach ($value as $k => $attr) { | |
$where .= " \n {$_or} ( list_attr_rel_" . $i . ".value = {$attr})"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment