Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Example of vulnerable php code that will lead to Remote file inclusion attacks.
- if your not sure how to load pages using the vulnerable code:
- <a href="index.php?page=main.php">Home</a>
- - ZaraByte (www.zarabyte.com)
- Code:
- <?php
- $page = $_GET['page'];
- if (!empty($page)) {
- include($page);
- }
- else {
- include('main.php');
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement