← Back to directory

Parse an nginx configuration (with supplied include files) and report gixy-style...

https://code.halowerk.com/v1/nginx-config-check

Overview

Parse an nginx configuration (with supplied include files) and report gixy-style security problems: alias traversal, dropped add_header, SSRF, header injection, Host spoofing, version disclosure, missing security headers. Own tokenizer following ngx_conf_read_token (quotes, escapes, ${var}, comments) builds the directive tree with file and line numbers; include directives are resolved only against the supplied files (glob match).

Protocol x402 (POST)
Price $0.0030
Payment Asset USD Coin
Payment Network Base
Category uncategorized
Provider code
Source bazaar
Indexed 2026-11-20 13:10:04

Health

Status unknown
Latency (p50) —
Uptime (30d) —
Reliability Score —
Last Checked Never
Last Healthy Never
Consecutive Failures 0

x402 Payment Validation

Payment Requirements —
Asset Verified —
Facilitator —

Input Schema

{ "body": { "config": "server {\n listen 80;\n location /i {\n alias /data/w3/images/;\n }\n}\n" }, "bodyType": "json", "method": "POST", "type": "http" }

Output Schema

{ "example": { "limitations": [ "Static analysis only: nothing is executed and no live server is contacted; nginx -t syntax validation of module-specific arguments is not performed.", "The variable model follows gixy: map values and captures inside map keys are not traced.", "Header checks look at the server level; responses generated by upstreams may add headers themselves." ], "result": { "directives": 4, "files_parsed": [ "nginx.conf" ], "findings": [ { "context": "server(80) > location(/i)", "directive": "alias /data/w3/images/", "file": "nginx.conf", "fix": "Use \"location /i/\" (or \"location = /i\" for a single file).", "line": 4, "message": "Prefix location \"/i\" does not end with \"/\" but uses alias; a request like \"/i../\" can read files outside the alias directory.", "rule": "alias_traversal", "severity": "high", "source": "https://github.com/yandex/gixy/blob/6f68624a7540ee51316651bda656894dc14c9a3e/docs/en/plugins/aliastraversal.md" }, { "context": "server(80)", "directive": "server ", "file": "nginx.conf", "fix": "Add them with \"add_header <name> <value> always;\" on the server level.", "line": 1, "message": "Missing security headers: X-Content-Type-Options, X-Frame-Options (or CSP frame-ancestors), Content-Security-Policy, Referrer-Policy.", "rule": "missing_security_headers", "severity": "low", "source": "https://cheatsheetseries.owasp.org/cheatsheets/HTTP_Headers_Cheat_Sheet.html" }, { "context": "server(80)", "directive": "server ", "file": "nginx.conf", "fix": "Set \"server_tokens off;\" in the http block.", "line": 1, "message": "server_tokens is not set in this file; unless the main nginx.conf sets it to off, the default \"on\" exposes the version.", "rule": "version_disclosure", "severity": "info", "source": "https://nginx.org/en/docs/http/ngx_http_core_module.html#server_tokens" } ], "includes": [], "servers": [ { "file": "nginx.conf", "line": 1, "listen": [ "80" ], "server_names": [], "tls": false } ], "summary": { "critical": 0, "high": 1, "info": 1, "low": 1, "medium": 0 } }, "service": "nginx-config-check", "status": "success" }, "type": "json" }