Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Bug Bounty

Custom Header Setup

Steps to Add Custom Header in Burp Requests

  • Select Proxy -> Options

  • Go to Match and Replace and select add

  • Specify the details of the match and replace as shown below

    1. Type: Request Header

    2. Match: Leave blank to add a new header

    3. Replace: hacker@bugbounty.site

    4. Comment: Manually BBP header

Information Gathering

LeakIX - often blocked by organizations for gray hat searches Shodan - scans less frequently than LeakIX but whitelisted Censys - best overall scanner but without vulnerability discovery Chaos.ProjectDiscovery - Real-time Recon/DNS data for Public Bug Bounty Programs Search Engine Dorking ReconFTW - automated recon and vulnerability scanner Uncover - tool used to discover exposed hosts on the internet using multiple search engines PrettyRecon - Active Reconnaissance Tool BountyStrike - collection of bash and python scripts that installs common tools for recon scans and asset discovery

Nuclei - Security check scanner that is based on templates; Get started with Nuclei here Nuclei Templates Directory - Visually navigate available nuclei templates Community edition nuclei templates (CENT) - collect and organize other custom templates

Getting started with some CVE scanning using Nuclei templates:

nuclei -target "https://site.com" -t cves
nuclei -target "https://site.com" -t /path/to/nuclei-templates/cves
nuclei -target "https://site.com" -t cves -rl

Mass security testing on subdomains:

cat site subdomains.txt | nuclei -t /path/to/nuclei-templates/

-rl, -rate-limit int maximum number of requests to send per second (default 150)

-rlm, -rate-limit-minute int maximum number of requests to send per minute

Combining nuclei scanner with CENT custom templates

Daily updated Text file of all domains within scope on active Bug Bounty Programs https://github.com/arkadiyt/bounty-targets-data/blob/main/data/domains.txt

Google Dork
Purpose

intitle:"index of /.git/"

Searching for Directories

allintext:index filetype:git

Search for extensions

inurl:"index.php?id="

Searching for PHP pages

inurl:"admin/dashboard.php" site:.com

Searching for PHP admin dashboards

Intitle: "login" "admin" site:http://site.com

Searching for admin login pages

intitle:"Index of /" .htaccess site:http://site.com

Searching for exposed Apache configuration file

site:website.com inurl:"contact" | inurl:"contact-us" | inurl:"contactus" | inurl:"contcat_us" | inurl:"contact_form" | inurl:"contact-form"

Searching for possible contact form

inurl:http | inurl:url= | inurl:path= | inurl:dest= | inurl:html= | inurl:data= | inurl:domain= | inurl:page= inurl:& site:example[.]com

SSRF Prone Parameters

Shodan Dork
Purpose

hostname:".gov" product:"Jenkins" 200

Searching Jenkins instances in .gov

ssl.cert.subject.CN:"*.google.com"+200

Returns all SSL services that has issued a certificate for *.google.com with an HTTP response code of 200.

ssl.cert.issuer.cn:"DOD SW CA-60" 200

Returns all SSL certificates that have been issued by the DoD with response code of 200

Sensitive Information Exposure methods Use GitTools gitdumper.sh or gittyleaks

Defense Evasion

Attempt to bypass application protections such as Cloudflare, Akamai, etc.

Worth a shot to use the tool by Cloudflare Origin IP by @gwen001

Check to see if application is behind a WAF

Authentication:

Registration

  • Input validation

  • Analysis

  • Misc

  • Password reset process

    • Password reset tokens (expiration/reuse)

  • Failed retry lockout (DoS)

  • Password policies

  • Update profile information without asking password

  • Default or easy to guess keys

  • User enumeration

  • HTTP Authentication

  • Authentication Bypass

  • Identify weak authentication channels (Find primary mechanism and identify secondary mechanicsm / methods [Mobile App, Call Center, SSO])

Authorization:

Session:

General:

File Upload:

  • Extensions Impact

    • ASP, ASPX, PHP5, PHP, PHP3: Webshell, RCE

    • SVG: Stored XSS, SSRF, XXE

    • GIF: Stored XSS, SSRF

    • CSV: CSV injection

    • XML: XXE

    • AVI: LFI, SSRF

    • HTML, JS : HTML injection, XSS, Open redirect

    • PNG, JPEG: Pixel flood attack (DoS)

    • ZIP: RCE via LFI, DoS

    • PDF, PPTX: SSRF, BLIND XXE

  • Blacklisting Bypass

    • PHP → .phtm, phtml, .phps, .pht, .php2, .php3, .php4, .php5, .shtml, .phar, .pgif, .inc

    • ASP → asp, .aspx, .cer, .asa

    • Jsp → .jsp, .jspx, .jsw, .jsv, .jspf

    • Coldfusion → .cfm, .cfml, .cfc, .dbm

    • Using random capitalization → .pHp, .pHP5, .PhAr

  • Whitelisting Bypass

    • file.jpg.php

    • file.php.jpg

    • file.php.blah123jpg

    • file.php%00.jpg

    • file.php\x00.jpg this can be done while uploading the file too, name it file.phpD.jpg and change the D (44) in hex to 00.

    • file.php%00

    • file.php%20

    • file.php%0d%0a.jpg

    • file.php.....

    • file.php/

    • file.php.\

    • file.php#.png

    • file.

    • .html

Vulnerabilities

XSS

Open Redirect

Adobe Experience Manager (AEM) Configuration Testing

Shodan Dork:

http.component:"Adobe Experience Manager"

Resources AEM Hacker Tool SlideShare presentation on AEM by 0ang3el

Reporting

CVSS 3.1 Calculator

Recon

Dump In-scope Assets from BBPs using repo from @arkadiyt

HackerOne Programs

BugCrowd Programs

Intigriti Programs

YesWeHack Programs

HackenProof Programs

Federacy Programs

Dump list of all BBP Domains that are in scope and identify those without dns names (ips.txt)

Martian Grip

from @notnci with beginner explanation

  • The shodan download command is attempting to search for devices in the US East (N. Virginia) region that have a product named "Elastic" and are listening on port 8001. The parse command is used to extract certain fields (in this case, ip_str and port) from the results of the search, which are stored in the file testing.json.gz.

  • httpx is a tool that can be used to perform HTTP requests and analyze the response. In this case, the command is using the -silent flag to suppress output and the -o flag to write the response to a file called testing_httpx.out. The input for this command appears to be the list of IP addresses and ports extracted from the Shodan search results.

  • ``nuclei is a tool for detecting vulnerabilities and misconfigurations in web applications. The -as flag stands for "active scan", which means that the tool will perform various types of requests to the target web application in order to identify potential vulnerabilities. The -silent flag suppresses output, and the -o flag specifies an output file for the results. The input for this command is the list of IP addresses and ports extracted from the Shodan search results.

  • awk is a tool for processing text files. The command appears to be extracting the sixth field ($6) from the output of the nuclei command, which is piped (|) to the grip command.

  • grip is a command line tool for rendering local readme files before sending them to GitHub. In this case, it is used to render the output of the awk command, which is then passed to uniq with the -u flag to remove duplicate lines. The resulting list of unique lines is written to the file testing_vuln_ips.out.

  • nrich is a tool for performing OSINT (Open Source Intelligence) on IP addresses. The input for this command appears to be the list of IP addresses and ports extracted from the Shodan search results, and the - flag tells the tool to read the input from standard input (stdin). The results are written to the file testing_nrich.out.

Find SQLi at scale

# collect target urls \ `subfinder -d site.com -silent - all | httpx -silent -threads 100 | katana -d 4 -jc -ef css,png,svg,ico,woff,gif | tee -a urls`\ # filter potential SQLi Url cat urls | gf sqli | tee -a sqli `` # run test while read line; do sqlmap -u $line --parse-errors --curent-db --invalid-logical --invalid-bignum --invalid-string --risk 3; done < sqli

Local File Inclusion

Open-redirect

XSS

𝘽𝙡𝙞𝙣𝙙 𝙓𝙎𝙎 𝙈𝙖𝙨𝙨 𝙃𝙪𝙣𝙩𝙞𝙣𝙜

Unauthenticated Blind SSRF via xmlrpc.php

Find JavaScript Files

Extract Endpoints from JavaScript

Get CIDR & Org Information from Target Lists

Finding Subdomains

Get Subdomains from RapidDNS.io

Get Subdomains from BufferOver.run

Get Subdomains from Riddler.io

Get Subdomains from VirusTotal

Get Subdomain with cyberxplore

Get Subdomains from CertSpotter

Get Subdomains from Archive

Get Subdomains from JLDC

Get Subdomains from securitytrails

Bruteforcing Subdomain using DNS Over

Get Subdomains With sonar.omnisint.io

Get Subdomains With synapsint.com

Get Subdomains from crt.sh

Sort & Tested Domains from Recon.dev

Discover subdomains and enumerate API endpoints discovered with subfinder

Subdomain Bruteforcer with FFUF

Find Allocated IP Ranges for ASN from IP Address

Extract IPs from a File

CVE 2022-1040 (Give your domain without http/https on the "sophos_servers" file)

General

Use grep 𝐭𝐨 𝗘𝘅𝘁𝗿𝗮𝗰𝘁 𝗨𝗥𝗟'𝘀 𝗳𝗿𝗼𝗺 𝗷𝘂𝗻𝗸 𝗱𝗮𝘁𝗮

  • From a local file

  • From an online resource

Techniques/Checklist

JS File Analysis

2FA Code Leakage in Response

Lack of brute-Force Protection

2FA Refer Check Bypass

Missing 2FA Code Integrity Validation

Enabling 2FA Doesn’t Expire Previous Session

Clickjacking on 2FA Disable Feature

Response Manipulation

Status Code Manipulation

2FA Code Reusability

CSRF on 2FA Disable Feature

CloudFront

Bypassing Cloudfront XSS WAF

  1. alert = window["al"+"ert"]

  2. bypass () with ``

  3. replace space with /

  4. encode symbols:

Remote Code Execution Parameters ?cmd={payload} ?exec={payload} ?command={payload} ?execute{payload} ?ping={payload} ?query={payload} ?jump={payload} ?code={payload} ?reg={payload} ?do={payload} ?func={payload} ?arg={payload} ?option={payload} ?load={payload} ?process={payload} ?step={payload} ?read={payload} ?function={payload} ?req={payload} ?feature={payload} ?exe={payload} ?module={payload} ?payload={payload} ?run={payload} ?print={payload} ?cmd={payload} ?exec={payload} ?command={payload} ?execute={payload} ?ping={payload} ?query={payload} ?jump={payload} ?code={payload} ?reg={payload} ?do={payload} ?func={payload} ?arg={payload} ?option={payload} ?load={payload} ?process={payload} ?step={payload} ?read={payload} ?function={payload} ?req={payload} ?feature={payload} ?exe={payload} ?module={payload} ?payload={payload} ?run={payload} ?print={payload}

Git

/.git

/.gitkeep

/.git-rewrite

/.gitreview

/.git/HEAD

/.gitconfig

/.git/index

/.git/logs

/.svnignore

/.gitattributes

/.gitmodules

/.svn/entries

Last updated