nomore403 是一个命令行工具,用于测试围绕 401、403 及相关响应的 HTTP 访问控制绕过和解析器不一致问题。
该工具专为实际 Web 安全工作而设计:漏洞赏金、渗透测试、安全审查以及访问控制规则的回归测试。它自动化执行大量请求变异,捕获基线,过滤常见误报,并突出显示最可能代表有意义绕过的响应。
给定目标 URL,nomore403 会:
curl 命令。该工具本身并不会“破坏身份验证”。它有助于发现前端、代理、WAF、CDN、应用路由器和后端在解释同一请求时的差异。
404 或父路径响应带来的误报net/http 会规范化掉的请求形式git clone https://github.com/devploit/nomore403
cd nomore403
go build
go install github.com/devploit/nomore403@latest
如果使用 go install 安装,payloads/ 目录不会自动安装。请克隆仓库,并在需要时使用 -f 将工具指向该目录。
从 GitHub Container Registry 拉取预构建镜像:
docker pull ghcr.io/devploit/nomore403:latest
或在本地构建镜像:
docker build -t nomore403 .
对目标运行:
docker run --rm ghcr.io/devploit/nomore403 -u https://target.tld/admin
通过 stdin 管道传入目标:
cat urls.txt | docker run --rm -i ghcr.io/devploit/nomore403
挂载主机目录以存放自定义请求文件或保存输出:
docker run --rm -v $(pwd):/data ghcr.io/devploit/nomore403 -r /data/request.txt -o /data/results.json
PATH 中需有 curl,用于依赖它的技术,例如:
http-versionshttp-parserabsolute-uri大多数技术无需 curl 即可工作。
基础扫描:
./nomore403 -u https://target.tld/admin
使用代理并输出详细日志:
./nomore403 -u https://target.tld/admin -x http://127.0.0.1:8080 -v
仅运行选定的技术:
./nomore403 -u https://target.tld/admin -k headers,absolute-uri,raw-desync
从 stdin 读取目标:
cat urls.txt | ./nomore403
使用 Burp 风格的请求文件:
./nomore403 --request-file request.txt
写入机器可读输出:
./nomore403 -u https://target.tld/admin --jsonl -o findings.jsonl
target: https://target.tld/admin method: GET frontend: AWS ELB/ALB payloads: payloads
calib: 404 | 1245b | ±50 | frag 703b
BASELINE
default 403 520 bytes https://target.tld/admin
FINDINGS
hdr-ip 100! 200 2048 bytes X-Original-URL: /
abs-uri 26. 403 236 bytes request-target: https://target.tld/admin
http 18. 400 122 bytes HTTP/2
no visible results: 17 techniques
━━━━━━━━━━━━━━ LIKELY BYPASS ━━━━━━━━━━━━━━━━━
[!100 HIGH] Header injection (IP) 403=>200 2048b
why: status 403->200, len Δ1528, body changed, type changed
item: X-Original-URL: /
curl: curl -i -sS -k -H 'User-Agent: nomore403' -H 'X-Original-URL: /' 'https://target.tld/admin'
每个可见行都是一个与基线差异足够大、能够通过过滤的响应。
典型字段:
hdr-ip、abs-uri 或 parser18.、61+ 或 100!最终摘要显示从基线到结果的转换:
403=>200 通常值得立即关注403=>302 可能有趣,但仍可能最终回到认证屏障403->400 或 403->404 通常表示解析器或路由差异,而非绕过在运行结束时,nomore403 会打印:
LIKELY BYPASS
curlINTERESTING VARIATIONS
no visible results
评分是启发式的。其目的是对结果进行优先级排序,而非证明漏洞利用。
该工具通常会奖励:
2xx3xxLocation 变化该工具通常会降低以下内容的排名:
400 和 404 情况,除非响应也发生显著变化建议的解释:
HIGH:可能可操作;优先审查MED:可能的候选;通常值得手动重放LOW:解析器差异、路由异常或较低置信度的行为自动校准在非详细模式下默认启用。
它会向多个不存在的路径发送请求,并为目标的默认错误行为构建基线。它还会执行基于片段的校准请求,以减少由片段剥离路径引起的误报。
使用这些标志来控制它:
--no-calibrate
--strict-calibrate
Location、Content-Type 和 Server除非指定 -k,否则该工具默认运行所有技术。
verbs
payloads/httpmethods 的替代 HTTP 方法verbs-case
method-override
headers
hop-by-hop
Connection 的逐跳剥离技巧header-confusion
X-Original-URLhost-override
forwarded-trust
Forwarded、Client-IP、Cluster-Client-IP 及相关信任链proto-confusion
X-Forwarded-Proto、X-Forwarded-Port 及相关协议方案提示ip-encoding
endpaths
payloads/endpaths 的后缀和路径末尾变异midpaths
payloads/midpaths 的路径插入和遍历式变异double-encoding
unicode
%uXXXX 和超长 UTF-8 路径变体path-case
path-normalization
suffix-tricks
.json、.css、;index.html、格式风格的查询开关,以及查询字符串中的静态资源扩展名(?x=.js,如绕过 Azure Application Gateway v2 时所见的)payload-position
http-versions
HTTP/1.0 和 HTTP/2 之间比较同一请求http-parser
curl 请求,以独立于 http-versions 暴露客户端/前端解析器差异absolute-uri
curl --request-target 使用绝对形式请求目标raw-duplicates
raw-authority
raw-desync
某些技术需要 Go 的 net/http 客户端无法提供的线级控制。这些技术使用原始 HTTP 引擎。
原始技术目前包括:
raw-duplicatesraw-authorityraw-desync%uXXXX unicode 路径请求注意事项:
该工具可能推断出前端提示,例如:
这些提示用于改进技术排序和输出上下文。
重要:
-k,否则工具仍会运行完整的默认技术集高价值结果会在最终摘要中自动重放。
重放输出有助于回答:
最终摘要包括:
1/1 或 2/2 matched on replaycurl 命令./nomore403 -u https://target.tld/admin
./nomore403 -u targets.txt
cat targets.txt | ./nomore403
./nomore403 --request-file request.txt
当重放从 Burp 或其他代理捕获的流量时,请求文件非常有用。
当你希望在显式标记处注入载荷,而不是仅依赖内置的 endpath 和 midpath 变异逻辑时,请使用 --payload-position。
示例:
./nomore403 -u 'https://target.tld/§100§/admin/§200§' -p §
./nomore403 -u https://target.tld/admin
./nomore403 -u https://target.tld/admin -x http://127.0.0.1:8080 -v
./nomore403 -u https://target.tld/admin -k absolute-uri,raw-duplicates,raw-authority,raw-desync
./nomore403 -u https://target.tld/admin -i 10.0.0.5
./nomore403 -u https://target.tld/admin --jsonl -o findings.jsonl
运行 ./nomore403 --help 查看完整且最新的 CLI。
关键标志: