Created
November 27, 2024 23:57
-
-
Save kharissulistiyo/4017b66ef8e08b7f3679ee76c152489f to your computer and use it in GitHub Desktop.
Bad PHP code sample: Path Traversal 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 | |
if ( Input::has( 'sub_page' ) ) { | |
$sub_page = Input::get( 'sub_page' ); | |
include_once tutor()->path . "views/pages/{$sub_page}.php"; | |
return; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment