Created
November 16, 2024 12:32
-
-
Save kharissulistiyo/649031f06e6a718812d8f8145b569692 to your computer and use it in GitHub Desktop.
Bad PHP code sample: PHP Object 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 ($post_data as $key => $value) { | |
$post_data_keys = ['billing_country', 'card_zip', 'card_cvc']; | |
if ( ! in_array($key, $post_data_keys, true)) { | |
continue; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment