Bug Bounty, OWASP Top 10, SQL Injection & XSS: Answers
The questions learners search most about bug bounty and web application security, answered in two or three lines each.
Bug bounty
What is a bug bounty program?
A bug bounty program lets independent researchers report security bugs to an organisation for rewards, within a published scope and rules. HackerOne, Bugcrowd and Intigriti host many programs.
How do I start bug bounty hunting?
Learn HTTP, web basics and the OWASP Top 10, practise on legal labs such as PortSwigger Web Security Academy, then pick a program and read its scope carefully. Only test what the policy allows.
OWASP Top 10
What is the OWASP Top 10?
The OWASP Top 10 is a widely used list of the most critical web application security risks, such as broken access control, cryptographic failures, injection and security misconfiguration. It is updated every few years.
Common bugs
What is SQL injection and how do you prevent it?
SQL injection is when user input is inserted into a database query so an attacker can change it and read or alter data. Prevent it with parameterised queries (prepared statements), input validation and least-privilege database accounts.
What is XSS?
Cross-site scripting (XSS) is when an attacker gets malicious JavaScript to run in other users' browsers through a vulnerable site. Types are stored, reflected and DOM-based; prevent it with output encoding and a Content Security Policy.
What is the difference between XSS and CSRF?
XSS runs attacker script inside the victim's browser on the trusted site. CSRF tricks a logged-in user's browser into sending an unwanted request; anti-CSRF tokens and SameSite cookies prevent it.