Sample on example input
OWASP Web Application & Browser Hardening Composite Suite
Composite 7-check web security audit chaining CSP, CORS preflight, HTTP security headers, cookie flags, open-redirect, file-upload, and SSRF validation.
What you get
- Executive grade C, posture score 57/100 on this example input
- 7 sub-check results; failed on this example:
csp_policysecurity_headerscookie_securityopen_redirect- Prioritized remediation checklist and disclaimer
Example input
{
"url": "https://example.com/login",
"policy": "default-src 'self'; script-src 'self' 'unsafe-eval'",
"x_frame_options": "ALLOWALL",
"samesite": "None",
"httponly": "false",
"redirect_target": "https://evil.example.net/phish"
}
Parameters this suite reads
All parameters this suite reads. Pass your real values as query or JSON parameters; omitted ones use defaults. The suite evaluates the values you pass; it does not crawl or scan live URLs.
policy, request_origin, server_allow_origin, request_header, server_allow_headers, hsts, x_content_type_options, x_frame_options, referrer_policy, cookie_name, secure, httponly, samesite, redirect_target, magic_byte_mime_check, randomized_storage_filename, content_disposition_attachment, url
How to call it (0.05 USDC)
x402: Returns HTTP 402 with a base64 PAYMENT-REQUIRED header (x402 v2, USDC on Base, eip155:8453). Use any x402 v2 client (it signs an EIP-3009 authorization and retries with PAYMENT-SIGNATURE). Fallback: send the USDC yourself, then retry with header X-PAYMENT-TX: <tx hash>.
curl -i 'https://bot-bazaar.fly.dev/v1/x402/suite/web-app-security?url=https%3A%2F%2Fexample.com%2Flogin&policy=default-src+%27self%27%3B+script-src+%27self%27+%27unsafe-eval%27&x_frame_options=ALLOWALL&samesite=None&httponly=false&redirect_target=https%3A%2F%2Fevil.example.net%2Fphish'
Prepaid key:
curl -s -H 'X-Bazaar-Key: bz_live_YOUR_KEY' 'https://bot-bazaar.fly.dev/v1/x402/suite/web-app-security?url=https%3A%2F%2Fexample.com%2Flogin&policy=default-src+%27self%27%3B+script-src+%27self%27+%27unsafe-eval%27&x_frame_options=ALLOWALL&samesite=None&httponly=false&redirect_target=https%3A%2F%2Fevil.example.net%2Fphish'
MCP (streamable HTTP, tool suite_web_app_security):
curl -s https://bot-bazaar.fly.dev/mcp -H 'content-type: application/json' -H 'X-Bazaar-Key: bz_live_YOUR_KEY' -d '{"jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": {"name": "suite_web_app_security", "arguments": {"url": "https://example.com/login", "policy": "default-src '"'"'self'"'"'; script-src '"'"'self'"'"' '"'"'unsafe-eval'"'"'", "x_frame_options": "ALLOWALL", "samesite": "None", "httponly": "false", "redirect_target": "https://evil.example.net/phish"}}}'OpenAI-compatible (0.01 USDC per chat call)
The chat-completions router picks the suite from keywords in the prompt and is billed at the chat-completions price.
curl -s https://bot-bazaar.fly.dev/v1/x402/chat/completions -H 'content-type: application/json' -H 'Authorization: Bearer bz_live_YOUR_KEY' -d '{"model": "bazaar-suite-pro-v1", "messages": [{"role": "user", "content": "Run the OWASP web app security suite"}], "url": "https://example.com/login", "policy": "default-src '"'"'self'"'"'; script-src '"'"'self'"'"' '"'"'unsafe-eval'"'"'", "x_frame_options": "ALLOWALL", "samesite": "None", "httponly": "false", "redirect_target": "https://evil.example.net/phish"}'
Full sample report (JSON)
{
"suite": "web-app-security",
"tool": "suite/web-app-security",
"title": "OWASP Web Application & Browser Hardening Suite",
"valid": true,
"composite_risk_score": 43,
"composite_posture_score": 57,
"executive_grade": "C",
"sub_check_count": 7,
"sub_checks": {
"csp_policy": {
"valid": false,
"policy": "default-src 'self'; script-src 'self' 'unsafe-eval'",
"checks": {
"has_default_src": true,
"no_unsafe_eval": false,
"no_wildcard_script": true,
"restricts_scripts_or_self": true
}
},
"cors_preflight": {
"valid": true,
"preflight_will_succeed": true,
"origin_allowed": true,
"header_allowed": true
},
"security_headers": {
"grade": "B",
"score": 75,
"checks": {
"hsts_1yr": true,
"nosniff": true,
"frame_protection": false,
"referrer_policy_set": true
}
},
"cookie_security": {
"valid": true,
"hardened": false,
"cookie_name": "__Host-session",
"checks": {
"secure_flag": true,
"httponly_flag": false,
"samesite_set": true,
"host_prefix_valid": true
}
},
"open_redirect": {
"valid": true,
"redirect_target": "https://evil.example.net/phish",
"safe_relative_redirect": false,
"open_redirect_risk": true
},
"file_upload": {
"valid": true,
"upload_pipeline_safe": true,
"checks": {
"magic_byte_mime_check": true,
"randomized_storage_filename": true,
"content_disposition_attachment": true
}
},
"ssrf_filter": {
"valid": true,
"url": "https://example.com/login",
"scheme": "https",
"host": "example.com",
"private_or_imds_blocked": false,
"ssrf_safe": true
}
},
"passed_sub_checks": [
"cors_preflight",
"file_upload",
"ssrf_filter"
],
"failed_sub_checks": [
"csp_policy",
"security_headers",
"cookie_security",
"open_redirect"
],
"informational_sub_checks": [],
"prioritized_remediation_checklist": [
"Serve Strict-Transport-Security (max-age=31536000; includeSubDomains), X-Content-Type-Options: nosniff, and X-Frame-Options: DENY.",
"Enforce __Host- prefix + Secure + HttpOnly + SameSite=Lax/Strict on session cookies.",
"Block RFC1918 private IPs and 169.254.169.254 metadata endpoints in outbound URL fetchers."
],
"remediation_note": "General hardening checklist for this suite; failed_sub_checks lists the findings specific to the input you passed.",
"input_note": "This suite evaluates the configuration values passed as query or JSON parameters; it does not crawl or scan live URLs. Omitted parameters fall back to the documented defaults.",
"disclaimer": "Automated composite analytical & schema audit only \u2014 not legal advice, not financial or investment advice, not tax advice, and not a formal third-party security certification.",
"generated_at": 1793508475
}