Book Image

Bug Bounty Hunting Essentials

By : Carlos A. Lozano, Shahmeer Amir
Book Image

Bug Bounty Hunting Essentials

By: Carlos A. Lozano, Shahmeer Amir

Overview of this book

Bug bounty programs are the deals offered by prominent companies where-in any white-hat hacker can find bugs in the applications and they will have a recognition for the same. The number of prominent organizations having this program has increased gradually leading to a lot of opportunity for Ethical Hackers. This book will initially start with introducing you to the concept of Bug Bounty hunting. Then we will dig deeper into concepts of vulnerabilities and analysis such as HTML injection, CRLF injection and so on. Towards the end of the book, we will get hands-on experience working with different tools used for bug hunting and various blogs and communities to be followed. This book will get you started with bug bounty hunting and its fundamentals.
Table of Contents (20 chapters)
Title Page
Copyright and Credits
About Packt
Contributors
Preface
Index

Why do open redirects work?


Open redirects work because there is vulnerable code at the backend that is not validating the information entered by the user to create the redirection. For example, here is the first redirection we mentioned:

https://www.testsite.com?r=https://www.newsite.com 

It is controlled by the following code:

$r = $_GET['url']; 
header("Location: " . $r); 

As you can see, the code does not have any control over the information that is entered in the URL. Like the other flaws we have seen in this book, open redirects are due to a lack of input validation.