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

CSRF in the wild


Now, we will review some real CSRF bugs that have been reported in the bug bounty platforms.

Shopify for exporting installed users

On December 7th, 2015, a bug bounty hunter called Harishkumar reported a CSRF vulnerability to Shopify, a method contained in the Shopify API.

The weakness analyzed by Harishkumar is the following:

<html> 
<head><title>csrf</title></head> 
<body onLoad="document.forms[0].submit()"> 
<form action="https://app.shopify.com/services/partners/api_clients/1105664/export_installed_users" method="GET"> 
</form> 
</body> 
</html> 

As you see, the export_installed_users method is called by a GET request using the action parameter in a form. This means that when it is called, all the information available about the application is used to perform the request. Harishkumar took advantage of it to perform the attack.

As a tip to discover vulnerabilities like this, you can do the following:

  • Analyze the HTTP...