{"sample":true,"label":"Sample on example input","notice":"Free sample: real output of this suite run on a made-up example configuration (example.com hosts, illustrative values chosen to show what findings look like). It is not an audit of any real system. The paid call runs the same logic on the parameters you send.","suite":"web-app-security","title":"OWASP Web Application & Browser Hardening Composite Suite","description":"Composite 7-check web security audit chaining CSP, CORS preflight, HTTP security headers, cookie flags, open-redirect, file-upload, and SSRF validation.","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_read":["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"],"parameters_note":"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.","report":{"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 — not legal advice, not financial or investment advice, not tax advice, and not a formal third-party security certification.","generated_at":1793511871},"how_to_call":{"price_usdc":"0.05","endpoint":"https://bot-bazaar.fly.dev/v1/x402/suite/web-app-security","x402":{"step_1_get_payment_requirements":"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'","step_1_note":"Returns HTTP 402 with a base64 PAYMENT-REQUIRED header (x402 v2, USDC on Base, eip155:8453).","step_2_pay_and_retry":"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>.","facilitators":"Coinbase CDP (default) or PayAI (?facilitator=payai)"},"prepaid_key":{"curl":"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'","note":"Prepaid credits: https://bot-bazaar.fly.dev/v1/credits/tiers (mint at https://bot-bazaar.fly.dev/packs)."},"mcp":{"server":"https://bot-bazaar.fly.dev/mcp","transport":"streamable-http","tool":"suite_web_app_security","curl":"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":{"price_usdc":"0.01","note":"The chat-completions router picks the suite from keywords in the prompt and is billed at the chat-completions price.","curl":"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\"}'"}},"html":"https://bot-bazaar.fly.dev/samples/web-app-security"}