Bug Bounty Diary
6.89K subscribers
25 photos
39 links
A diary documenting the journey of finding bugs, with daily notes and useful tricks. Follow for real experiences, discoveries, and practical tips in bug bounty hunting.

Group: @BugBounty_Forum
Download Telegram
Bug Bounty Diary
✎ Enumerating WordPress REST API Endpoints If you're scanning a WordPress site, don’t miss exposed REST API endpoints under /wp-json. Many plugins, such as payment gateways, expose Webhooks or callback URLs (e.g., for updating WooCommerce orders). Scanning…
I shared this because I recently found a custom plugin endpoint in WordPress that leaked PII. I was inspired by this tweet. No matter whether you find endpoints with this script or simply add /wp-json to the end of the URL, the important thing is the methodology behind it.
πŸ‘11❀‍πŸ”₯6❀2πŸ”₯1
✎ Extract URL Paths or Routes via Dev Tools

[...new Set([...document.querySelectorAll("a[href]")].map(a => new URL(a.href, location.href).pathname))]
.forEach(path => console.log(path));


β€’ Save and download a .txt file with all those paths:
(() => {
const paths = [...new Set([...document.querySelectorAll("a[href]")].map(a => new URL(a.href, location.href).pathname))];

const blob = new Blob([paths.join("\n")], { type: "text/plain" });
const a = document.createElement("a");
a.href = URL.createObjectURL(blob);

const domain = location.hostname.replace(/^www\./, "");
a.download = `${domain}.txt`;

document.body.appendChild(a);
a.click();
document.body.removeChild(a);
})();


#bugbounty #devtool #javascript
Β© t.iss.one/BugBounty_Diary
❀27❀‍πŸ”₯1
✎ Deobfuscate obfuscator.io, unminify, transpile, and unpack webpack/browserify, using webcrack to resemble the original source code as much as possible.

Command Line Interface
npm install -g webcrack


Examples
webcrack input.js
webcrack input.js > output.js
webcrack bundle.js -o output-dir


β€’ Repository: Github
β€’ Website: webcrack.netlify.app

#bugbounty #recon #javascript #deobfuscate
Β© t.iss.one/BugBounty_Diary
❀17πŸ”₯2❀‍πŸ”₯1πŸ’‹1
✎Grep tips for Javascript Analysis

β€’ Extracting JavaScript Files from recursive Directories

find /path/to/your/folders -name "*.js" -exec mv {} /path/to/target/folder/ \;


β€’ Searching for API Keys and Secrets
cat * | grep -rE "apikey|api_key|secret|token|password|auth|key|pass|user"


β€’ Detecting Dangerous Function Calls
cat * | grep -rE "eval|document\.write|innerHTML|setTimeout|setInterval|Function"


β€’ Checking for URL Manipulation
cat * | grep -rE "location\.href|location\.replace|location\.assign|window\.open"


β€’ Searching for Cross-Origin Requests
cat * | grep -rE "XMLHttpRequest|fetch|Access-Control-Allow-Origin|withCredentials" /path/to/js/files


β€’ Analyzing postMessage Usage
cat * | grep -r "postMessage"


β€’ Finding Hardcoded URLs or Endpoints
cat * | grep -rE "https?://|www\."


β€’ Locating Debugging Information
cat * | grep -rE "console\.log|debugger|alert|console\.dir"


β€’ Investigating User Input Handling
cat * | grep -rE "document\.getElementById|document\.getElementsByClassName|document\.querySelector|document\.forms"


#bugbounty #recon #javascript
Β© t.iss.one/BugBounty_Diary
❀13❀‍πŸ”₯2
Just wanted to inform you that Writeup-Miner is now live on @Daily_Writeups.

Join if you want the latest Bug Bounty and Cybersecurity write-ups. 

Thank you all β™₯οΈπŸ™Œ
❀17❀‍πŸ”₯4πŸ”₯4
✎ Cloud Security One Liners

β€’ AWS S3 Bucket Finder
cat urls.txt | grep -oE "[a-zA-Z0-9.-]+\.s3\.amazonaws\.com" | anew s3_buckets.txt
cat urls.txt | grep -oE "s3://[a-zA-Z0-9.-]+" | anew s3_buckets.txt


β€’ S3 Permission Check
cat s3_buckets.txt | xargs -I@ sh -c 'aws s3 ls s3://@ --no-sign-request 2>/dev/null && echo "OPEN: @"'


β€’ Firebase Database
cat urls.txt | grep -oE "[a-zA-Z0-9-]+\.firebaseio\.com" | xargs -I@ curl -s @/.json | grep -v "null"


β€’ Azure Blob Storage
cat urls.txt | grep -oE "[a-zA-Z0-9-]+\.blob\.core\.windows\.net" | anew azure_blobs.txt


β€’ GCP Storage
cat urls.txt | grep -oE "storage\.googleapis\.com/[a-zA-Z0-9-]+" | anew gcp_buckets.txt


β€’ AWS Metadata SSRF
cat urls.txt | gf ssrf | qsreplace "https://169.254.169.254/latest/meta-data/iam/security-credentials/" | httpx -silent -ms "AccessKeyId"


β€’ Cloud Credential Files
cat alive.txt | httpx -silent -path /.aws/credentials,/.docker/config.json,/kubeconfig -mc 200 | anew cloud_creds.txt


#bugbounty #recon #cloud
Β© t.iss.one/BugBounty_Diary
❀24❀‍πŸ”₯1
Hey dear subscribers,

This channel has been inactive for one week because Iran's government shut down the entire internet, preventing us from accessing free internet as usual. I was very worried about my open reports and this channel. Starting today, I am working hard and focusing on posting more content.

Thank you all,
πŸ•· Spix0r
1❀47πŸ‘7πŸ”₯3❀‍πŸ”₯2🀝1
✎ Burp Extension for API Testing in JS-Rich Targets

This tool helps identify endpoints, files, internal emails, and some secrets hidden in minified JavaScript, achieving maximum efficiency while minimizing noise in the results.

β€’ Repository: Github

#bugbounty #recon #javascript #burp
Β© t.iss.one/BugBounty_Diary
πŸ”₯10❀5❀‍πŸ”₯1πŸ‘1
✎ Network Basics - Module 1

I’ve decided to write the concepts of Network through the lens of security. My goal is to keep only the parts that truly matter for cybersecurity, ethical hacking, and bug bounty and remove the noise.

Module 1 is now ready, and I’m excited to share it with you.
Hope you find it useful and insightful.

--Explaining Network Topologies--


β€’ Blog: Network Basics - Module 1

#bugbounty #network
Β© t.iss.one/BugBounty_Diary
πŸ”₯17❀6❀‍πŸ”₯1
✎ Tuning Time, Depth, and Accuracy in Port Scanning

Different port scanners excel in different aspects
β€’ Nmap β†’ depth
β€’ MassScan β†’ scalability
β€’ Naabu β†’ simplicity
β€’ RustScan β†’ speed

Nabuu + Nmap
1. Service version detection
naabu -host https://example.com -p 80,443,8080 -nmap-cli 'nmap -sV -sC'


2. Full vuln scan on discovered ports
naabu -l targets.txt -top-ports 1000 -nmap-cli 'nmap -sV --script vuln -oN nmap-vuln.txt'


3. Quick banner grab + OS detection
naabu -host 10.0.0.0/24 -p 22,80,443 -nmap-cli 'nmap -sV -O --script banner -oG results.gnmap'


β€’ The flow: Naabu finds open ports fast β†’ pipes them to nmap for deeper enumeration. Best of both worlds.

#bugbounty #recon #portscan
Β© t.iss.one/BugBounty_Diary
πŸ”₯14❀8❀‍πŸ”₯2
✎ IP Spoofing to Account Takeover: You Patched It? Really?

In my previous article, I described how I found a security flaw in a popular desktop app's OAuth flow that allowed me to steal any user's account with just one click. I reported it, saw it patched, and then bypassed the patch again. Since the process of bypassing and exploiting the flaw is interesting to me, I decided to write a second article about it.

β€’ Blog: IP Spoofing to Account Takeover

#bugbounty #ipspoofing #oauth
Β© t.iss.one/BugBounty_Diary
1πŸ”₯15❀9πŸ‘3❀‍πŸ”₯1
✎ Network Basics - Module 2

Module 2 is now live on my Hashnode series.

--Ethernet--


Stripped down to the essentials, focusing only on what actually matters for understanding networks from a cybersecurity perspective.


β€’ Blog: Network Basics - Module 2

#bugbounty #network
Β© t.iss.one/BugBounty_Diary
πŸ”₯13
✎ ASN β†’ IP Recon Workflow (BGPView alternative)

I used to rely on bgpview.io for extracting IP ranges from ASNs it was free and useful for recon workflows. But after it went down, I looked for an alternative and found this awesome repo:

β€’ as-ip-blocks: Github

It lets you pull IPv4/IPv6 prefixes per ASN directly from raw GitHub data, which is ideal for automation.

</> Bash Function for ASN β†’ IP Enumeration

You can plug this directly into your recon pipeline or customize it for your tools
asn2ip() {
local base="https://raw.githubusercontent.com/ipverse/as-ip-blocks/master/as"

fetch_asn() {
curl -fsSL "$base/$1/aggregated.json" \
| jq -r '.prefixes.ipv4[]?' 2>/dev/null \
| sort -u
}

if [ ! -t 0 ]; then
while IFS= read -r asn; do
fetch_asn "$asn"
done
else
fetch_asn "$1"
fi
}


β€’ Single ASN β†’ IP Ranges
asn2ip 1234


β€’ List of ASNs β†’ IP Ranges

cat asnList | asn2ip


#bugbounty #recon #automation
Β© t.iss.one/BugBounty_Diary
❀24
✎ Network Basics - Module 3

Module 3 is now live on my Hashnode series.

--Interfaces & Switches--


As always stripped down to the essentials with no fluff.

β€’ Blog: Network Basics - Module 3

#bugbounty #network
Β© t.iss.one/BugBounty_Diary
❀8
-----‐-------------------------------
✎ Linux Security β†’ SUID & Privilege Boundaries
-----‐-------------------------------

In Linux, security heavily depends on permission architecture.
One critical mechanism is SUID (Set User ID).

● What is SUID?
When SUID is applied to an executable, it runs with the file owner’s permissions instead of the executing user’s.

If the file is owned by root, it grants elevated privileges.

[me@linux ~]$ ls -l /usr/bin/passwd
-rwsr-xr-x 1 root root ...

β€’ The s indicates SUID.

This allows normal users to run passwd, which needs root access to update /etc/shadow.

SUID itself is legitimate, misconfigured SUID binaries are dangerous.

If powerful binaries like:
β€’ bash
β€’ vim
β€’ find

are improperly assigned SUID, they may be abused for privilege escalation.

● Enumerating SUID Binaries
find / -perm -4000 -type f 2>/dev/null

This way we can find the files with SUID.

● A Usage example:
Let's say find has SUID

find . -exec /bin/sh -p \; -quit

With this you can open a shell as the root.

● To Audit
You need find the files with SUID the way I said before and delete the tag :
chmod u-s /path/to/binary


#bugbounty #Linux
Β© t.iss.one/BugBounty_Diary
πŸ”₯10❀2
-----‐-------------------------------
✎ Discovering Domains via NS Correlation
-----‐-------------------------------

● What is a Nameserver?

A nameserver (NS) is a specialised server within the Domain Name System (DNS) which translates human-readable domain names into IP addresses. Essentially, nameservers tell the internet where to find your web server.

In this post I will describe a simple technique which can be used to correlate one or more websites using NS data.

● Finding Nameservers

To find the nameservers for a domain name, the simplest way is to use the dig tool:
$ dig +noall +answer ns deliveroo.com
deliveroo.com. 86400 IN NS mona.ns.cloudflare.com.
deliveroo.com. 86400 IN NS phil.ns.cloudflare.com.


● Finding Related Domains

Some DNS providers like Cloudflare will assign you a NS pair at the account level. This means that all domain names you add to your account will share the same NS pair.

In the example above, deliveroo.com uses the Cloudflare nameserver pair mona.ns.cloudflare.com and phil.ns.cloudflare.com. Domains added under the same Cloudflare account are often assigned the same NS pair. Since the number of possible Cloudflare NS pair combinations is limited, many domains share them, making it relatively easy to identify other domains that may be managed by the same operator.

● Downloading The Dataset

Merklemap provides a DNS record database containing 4 billion+ records. You can download it here.

The dataset is provided in JSONL format and is compressed using xz. The uncompressed raw data is around ~500GB in size. If you just want to extract domain/NS pairs in the format domain,ns1,ns2,ns... you can use xzcat with jq like so:

xzcat dns_records_database.jsonl.xz | jq -r '
select([.results[] | .success?.records?.NS? // empty] | length > 0) |
[.hostname] + [.results[].success?.records?.NS? // empty | .[]] |
join(",")
' > domains.csv


● Querying the Dataset

One way to query the parsed data is using DuckDB. grep will also work but will probably be a bit slower.
NS1="phil.ns.cloudflare.com."
NS2="mona.ns.cloudflare.com."
duckdb -csv -noheader -c "
SELECT column0 AS domain, column1 AS ns
FROM read_csv('domains.csv', header=false)
WHERE list_sort(str_split(column1, ',')) = list_sort(['${NS1}','${NS2}'])
" > results.csv

Looking at results.csv we have ~300 entries. A lot are false positives, but there are some new domains which definitely belong to the same operator:
$ grep -i deliveroo results.csv | cut -d, -f1
deliveroo.de
deliveroo.blog
deliveroo.xn--9dbq2a
... 32 more


In a lot of cases you might not be able to correlate one website to another based on just a keyword in the domain name. In those cases you can do things like:

β€’ Fingerprint HTTP responses
β€’ Compare WHOIS information
β€’ Compare technologies used
β€’ DNS similarities


#bugbounty #recon #DNS
Β© t.iss.one/BugBounty_Diary
πŸ”₯11❀2
✎ RoboFinder v0.2.2 is out

RoboFinder is now more powerful, stable, and easier to fit into your recon workflow.


● Installation
pip install robofinder


● What's new?

β€’ Supports both single and multiple URLs
robofinder -u https://example.com
#or
robofinder -u urls.txt

β€’ Pipe results directly into other tools:
robofinder -u https://example.com -c | httpx

β€’ JSON output for automation:
robofinder -u https://example.com -c -f json


I also focused more on data quality than raw speed. Wayback lookups, especially on older targets, may take a little longer :( but you'll get much more complete results instead of missing valuable historical data.

β€’ Repository: Github

#bugbounty #recon
Β© t.iss.one/BugBounty_Diary
1❀‍πŸ”₯21πŸ‘8πŸ”₯3❀2
✎ Network Basics - Module 4

Chapter 4 has finally arrived - hope you find it helpful!

--Configuring Network Addressing--


β€’ Blog: Network Basics - Module 4

#bugbounty #network
Β© t.iss.one/BugBounty_Diary
❀15πŸ”₯4
✎ Hacking Google with A.I. for $500,000

After earning $500,000 in Google bug bounties, BruteCat shared the AI-powered prompts, workflows, and techniques used to analyze Google's massive attack surface, which offers valuable insights for security researchers looking to scale their reconnaissance and vulnerability discovery.

I highly recommend you read this writeup because it gives you a good methodology for hacking using AI.

β€’ Blog: Hacking Google with A.I. for $500,000

#bugbounty #AI
Β© t.iss.one/BugBounty_Diary
❀‍πŸ”₯19πŸ‘5❀3
✎ FlareProx - Simple IP Rotation & URL Redirection via Cloudflare Workers

FlareProx automatically deploys HTTP proxy endpoints on Cloudflare Workers for easy redirection of all traffic to any URL you specify. It supports all HTTP methods (GET, POST, PUT, DELETE, etc.) and provides IP masking through Cloudflare's global network. (100k requests per day are free.)

● How It Works?

FlareProx deploys Cloudflare Workers that act as HTTP proxies.

1. Request Routing: When you make a request, your request is sent to a FlareProx endpoint.
2. URL Extraction: The Worker extracts the target URL from query params or a custom HTTP header.
3. Request Proxying: The Worker forwards your request to the target URL.
4. Response Relay: The target's response is relayed back through Cloudflare.
5. IP Masking: Your original IP is masked by Cloudflare's infrastructure.

● Repository: Github

#bugbounty #burp
Β© t.iss.one/BugBounty_Diary
❀‍πŸ”₯13❀1