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

What's the problem?


As with other input validation vulnerabilities, these engines are susceptible to reading data that is validated incorrectly. Doing so is called Server-Side Template Injection (SSTI). The potential impact to the application would be because of a modification, very similar to a Cross-Site Scripting (XSS) attack, to a Remote Code Execution (RCE), using the server where the application is residing as a pivot to advance into the internal network.

Examples

There are many templates engines and, despite the fact that all of them do the same thing, there're some differences that are important to note. Let's check out different examples using different templates engines to understand how SSTI works.

Twig and FreeMaker

Twig and FreeMaker are template engines developed in Python. In the first line, the template is waiting for a name, which is displayed. There is no problem here:

$output = $twig->render("Dear {first_name},", array("first_name" => $user.first_name) );

But now, in the...