repositories

daemon-sec-cheatsheet

The cheatsheet vault for operators: AD, enumeration, exploitation, priv-esc, web, DFIR

clonegit clone https://git.daemon-sec.xyz/daemon-sec-cheatsheet.git
bug-hunting-methodology.mdMarkdown318 lines12.1 KiBsource raw download

title: "Bug Hunting Methodology" section: "Methodology" sectionSlug: "methodology" sourcePath: "docs/methodology/bug-hunting-methodology.md" sourceUrl: "https://github.com/swisskyrepo/InternalAllTheThings/blob/203bb0c0b290/docs/methodology/bug-hunting-methodology.md" sha: "203bb0c0b290" isIndex: false#

Bug Hunting Methodology#

Passive Recon#

Active Recon#

Network Discovery#

Web Discovery#

Common Files#

Enumerate Files and Folders#

Enumerate all accessible files and subdirectories. Once the underlying technology has been identified, prioritize the use of targeted wordlists rather than generic ones. Technology specific wordlists such as those provided by Assetnote (https://wordlists.assetnote.io), significantly improve coverage and efficiency. Examples include httparchive_parameters_top_1m_2026_01_27.txt, httparchive_directories_1m_2026_01_27.txt, and httparchive_php_2026_01_27.txt.

Identify and enumerate backup and temporary files that may have been unintentionally exposed. These files often contain source code, credentials, or sensitive configuration data and are commonly created by editors, deployment processes, or manual backups.

bfac --url http://example.com/test.php --level 4
bfac --list testing_list.txt

Crawl the website's pages and resources to identify additional attack surface and expand the assessment perimeter.

katana -u https://tesla.com
echo https://google.com | hakrawler

Next.js Endpoints#

In Next.js, window.__BUILD_MANIFEST is a runtime global variable that the framework automatically injects into the client-side JavaScript bundle.

Go to DevTools->Console and execute this JavaScript code:

console.log(window.__BUILD_MANIFEST)
console.log(__BUILD_MANIFEST.sortedPages)

If you inspect your app in the browser console (for a production build), you might see something like this:

{__rewrites: {…}, /: Array(10), /404: Array(8), /500: Array(4), /_error: Array(1), …}
/: (10) ['static/chunks/2852872c-b605aca0298c2109.js', 'static/chunks/3748-2a8cf394c7270ee0.js']
/404: (8) ['static/chunks/2852872c-b605aca0298c2109.js', 'static/chunks/3748-2a8cf394c7270ee0.js']
/500: (4) ['static/chunks/3748-2a8cf394c7270ee0.js', 'static/chunks/1221-b44c330d41258365.js']
/[slug]: (30) ['static/chunks/2852872c-b605aca0298c2109.js', 'static/chunks/29107295-4cc022cea922dbb4.js']
/_error: ['static/chunks/pages/_error-6ddff449d199572c.js']
/about/[slug]: (31) ['static/chunks/2852872c-b605aca0298c2109.js']

JS and HTML Comments#

Retrieve comments in source code.

<!-- HTML Comment -->
// JS Comment

Internet Archive#

Identify historical URLs and endpoints by reviewing archived content from sources such as the Wayback Machine and the Internet Archive.

gau --o example-urls.txt example.com
gau --blacklist png,jpg,gif example.com

Hidden Parameters#

Search for hidden parameters:

Map Technologies#

Manual Testing#

Explore the website with a proxy:

Automated vulnerability scanners#

Looking for Web Vulnerabilities#

References#