{"version": "2.1.0", "$schema": "https://json.schemastore.org/sarif-2.1.0.json", "runs": [{"tool": {"driver": {"name": "Repobility", "informationUri": "https://repobility.com", "rules": [{"id": "scanner-69ba7157e5b924d4", "name": "Stray `console.log` in TS/JS \u2014 tools/registertoken.js:41", "shortDescription": {"text": "Stray `console.log` in TS/JS \u2014 tools/registertoken.js:41"}, "fullDescription": {"text": "Replace with the toast helper, an error boundary, or remove. `console.warn` / `console.error` are acceptable.\n\nWhy: Hygiene \u2014 easy to leak debug output.\nRule id: fq.console-leak"}, "properties": {"scanner": "scanner-primary", "layer": "frontend", "severity": "low", "confidence": 1.0}}, {"id": "scanner-5738bc9d6e93a170", "name": "Stray `console.log` in TS/JS \u2014 server/index.js:101", "shortDescription": {"text": "Stray `console.log` in TS/JS \u2014 server/index.js:101"}, "fullDescription": {"text": "Replace with the toast helper, an error boundary, or remove. `console.warn` / `console.error` are acceptable.\n\nWhy: Hygiene \u2014 easy to leak debug output.\nRule id: fq.console-leak"}, "properties": {"scanner": "scanner-primary", "layer": "frontend", "severity": "low", "confidence": 1.0}}, {"id": "scanner-c7afe39134431269", "name": "Stray `console.log` in TS/JS \u2014 server/index.mock.js:9", "shortDescription": {"text": "Stray `console.log` in TS/JS \u2014 server/index.mock.js:9"}, "fullDescription": {"text": "Replace with the toast helper, an error boundary, or remove. `console.warn` / `console.error` are acceptable.\n\nWhy: Hygiene \u2014 easy to leak debug output.\nRule id: fq.console-leak"}, "properties": {"scanner": "scanner-primary", "layer": "frontend", "severity": "low", "confidence": 1.0}}, {"id": "scanner-d63da3583b14afc0", "name": "Dockerfile runs as root: Dockerfile", "shortDescription": {"text": "Dockerfile runs as root: Dockerfile"}, "fullDescription": {"text": "No non-root USER set. Containers running as root expand the blast radius of any vulnerability inside the image."}, "properties": {"scanner": "scanner-primary", "layer": "hardware", "severity": "medium", "confidence": 1.0}}, {"id": "scanner-a35c6a00f751880f", "name": "Docker base image is tag-pinned but not digest-pinned: node:20-slim", "shortDescription": {"text": "Docker base image is tag-pinned but not digest-pinned: node:20-slim"}, "fullDescription": {"text": "Container tags can be retagged upstream. Pin production base images to a reviewed digest (`image@sha256:...`) when reproducibility and supply-chain integrity matter."}, "properties": {"scanner": "scanner-primary", "layer": "hardware", "severity": "low", "confidence": 1.0}}, {"id": "scanner-14dd75257af7e333", "name": "Insecure pattern 'node_child_process' in server/index.test.js:2", "shortDescription": {"text": "Insecure pattern 'node_child_process' in server/index.test.js:2"}, "fullDescription": {"text": "Found a known-risky pattern (node_child_process). Review and replace if possible."}, "properties": {"scanner": "scanner-primary", "layer": "security", "severity": "medium", "confidence": 1.0}}, {"id": "scanner-7d9bdea90d0da414", "name": "Insecure pattern 'cors_wildcard' in server/index.js:32", "shortDescription": {"text": "Insecure pattern 'cors_wildcard' in server/index.js:32"}, "fullDescription": {"text": "Found a known-risky pattern (cors_wildcard). Review and replace if possible."}, "properties": {"scanner": "scanner-primary", "layer": "security", "severity": "medium", "confidence": 1.0}}, {"id": "scanner-6372cebde0220094", "name": "No auth library detected", "shortDescription": {"text": "No auth library detected"}, "fullDescription": {"text": "The scanner did not find any standard auth library (JWT, OAuth, NextAuth, Auth0, etc.). The repo has auth/admin/session surface indicators, so auth may live in custom code, in a separate service, or be missing."}, "properties": {"scanner": "scanner-primary", "layer": "security", "severity": "medium", "confidence": 1.0}}, {"id": "scanner-27924aa79fa4a517", "name": "GitHub Action is tag-pinned rather than SHA-pinned", "shortDescription": {"text": "GitHub Action is tag-pinned rather than SHA-pinned"}, "fullDescription": {"text": "actions/checkout@v3 can move without a code change in this repo. Pin third-party actions to a reviewed 40-character commit SHA."}, "properties": {"scanner": "scanner-primary", "layer": "cicd", "severity": "low", "confidence": 1.0}}, {"id": "scanner-7f1e4527e6fecffa", "name": "GitHub Action tracks a moving branch", "shortDescription": {"text": "GitHub Action tracks a moving branch"}, "fullDescription": {"text": "dtolnay/rust-toolchain@master can move without a code change in this repo. Pin third-party actions to a reviewed 40-character commit SHA."}, "properties": {"scanner": "scanner-primary", "layer": "cicd", "severity": "high", "confidence": 1.0}}, {"id": "scanner-ea3b5e389d8c9c0f", "name": "Low test-to-source ratio", "shortDescription": {"text": "Low test-to-source ratio"}, "fullDescription": {"text": "3 tests / 16 src (ratio 0.19)."}, "properties": {"scanner": "scanner-primary", "layer": "quality", "severity": "low", "confidence": 1.0}}, {"id": "scanner-141b30a41e03817b", "name": "No license file detected", "shortDescription": {"text": "No license file detected"}, "fullDescription": {"text": "No LICENSE/COPYING/NOTICE file was found. Generated repositories often omit licensing, which blocks reuse and automated intake."}, "properties": {"scanner": "scanner-primary", "layer": "quality", "severity": "low", "confidence": 1.0}}, {"id": "scanner-6e44f2aaee0e075a", "name": "`fetch()` without try/.catch or AbortSignal \u2014 tools/registertoken.js:36", "shortDescription": {"text": "`fetch()` without try/.catch or AbortSignal \u2014 tools/registertoken.js:36"}, "fullDescription": {"text": "Bare `fetch(...)` will throw an unhandled rejection on network failure. Wrap in try/catch, attach a `.catch(...)`, or pass an AbortSignal with a timeout."}, "properties": {"scanner": "scanner-primary", "layer": "quality", "severity": "medium", "confidence": 1.0}}, {"id": "scanner-4286d3ba7213f28d", "name": "`fetch()` without try/.catch or AbortSignal \u2014 server/index.test.js:88", "shortDescription": {"text": "`fetch()` without try/.catch or AbortSignal \u2014 server/index.test.js:88"}, "fullDescription": {"text": "Bare `fetch(...)` will throw an unhandled rejection on network failure. Wrap in try/catch, attach a `.catch(...)`, or pass an AbortSignal with a timeout."}, "properties": {"scanner": "scanner-primary", "layer": "quality", "severity": "medium", "confidence": 1.0}}, {"id": "scanner-14268e47efcdb421", "name": "Commented-code block (5 lines) in server/index.js:64", "shortDescription": {"text": "Commented-code block (5 lines) in server/index.js:64"}, "fullDescription": {"text": "A long run of `//` or `#` lines usually means abandoned code. Delete or move to git history. Keeps the canvas + dead-code detection honest."}, "properties": {"scanner": "scanner-primary", "layer": "quality", "severity": "info", "confidence": 1.0}}, {"id": "scanner-2ce2b67f5c652626", "name": "`fetch()` without try/.catch or AbortSignal \u2014 server/api/prices/providers/frankfurter.js:7", "shortDescription": {"text": "`fetch()` without try/.catch or AbortSignal \u2014 server/api/prices/providers/frankfurter.js:7"}, "fullDescription": {"text": "Bare `fetch(...)` will throw an unhandled rejection on network failure. Wrap in try/catch, attach a `.catch(...)`, or pass an AbortSignal with a timeout."}, "properties": {"scanner": "scanner-primary", "layer": "quality", "severity": "medium", "confidence": 1.0}}, {"id": "scanner-abc7ba54af63b6fb", "name": "`fetch()` without try/.catch or AbortSignal \u2014 server/api/prices/providers/cryptocompare.js:9", "shortDescription": {"text": "`fetch()` without try/.catch or AbortSignal \u2014 server/api/prices/providers/cryptocompare.js:9"}, "fullDescription": {"text": "Bare `fetch(...)` will throw an unhandled rejection on network failure. Wrap in try/catch, attach a `.catch(...)`, or pass an AbortSignal with a timeout."}, "properties": {"scanner": "scanner-primary", "layer": "quality", "severity": "medium", "confidence": 1.0}}, {"id": "scanner-03b3ae68b12559a6", "name": "`fetch()` without try/.catch or AbortSignal \u2014 server/api/prices/providers/coingecko.js:7", "shortDescription": {"text": "`fetch()` without try/.catch or AbortSignal \u2014 server/api/prices/providers/coingecko.js:7"}, "fullDescription": {"text": "Bare `fetch(...)` will throw an unhandled rejection on network failure. Wrap in try/catch, attach a `.catch(...)`, or pass an AbortSignal with a timeout."}, "properties": {"scanner": "scanner-primary", "layer": "quality", "severity": "medium", "confidence": 1.0}}, {"id": "scanner-cbee9ebaf441d402", "name": "Dangling fetch: GET https://arizgateway.azurewebsites.net/api/prices/history?basetoken=near&currency=nok&todate=2024-07-", "shortDescription": {"text": "Dangling fetch: GET https://arizgateway.azurewebsites.net/api/prices/history?basetoken=near&currency=nok&todate=2024-07-05 (tools/registertoken.js:36)"}, "fullDescription": {"text": "`tools/registertoken.js:36` calls `GET https://arizgateway.azurewebsites.net/api/prices/history?basetoken=near&currency=nok&todate=2024-07-05` but no backend route matches that path. This is a runtime 404 waiting to happen.\n\nTool: fetch\nNormalized path used for matching: `/https:/arizgateway.azurewebsites.net/api/prices/history`\nIf this points at an external API, prefix it with `https://` so the matcher skips it."}, "properties": {"scanner": "scanner-primary", "layer": "api", "severity": "high", "confidence": 1.0}}, {"id": "scanner-6498d8989bafdbe2", "name": "Unused endpoint: GET /api/prices/currencylist", "shortDescription": {"text": "Unused endpoint: GET /api/prices/currencylist"}, "fullDescription": {"text": "`server/index.js` declares `GET /api/prices/currencylist` but no frontend code we scanned calls it. This is fine if the endpoint serves external clients (mobile app, third-party, server-side webhooks). Otherwise it's dead code \u2014 consider removing or documenting who consumes it."}, "properties": {"scanner": "scanner-primary", "layer": "api", "severity": "low", "confidence": 1.0}}, {"id": "scanner-7c13accd16179c14", "name": "Unused endpoint: GET /api/prices/history", "shortDescription": {"text": "Unused endpoint: GET /api/prices/history"}, "fullDescription": {"text": "`server/index.js` declares `GET /api/prices/history` but no frontend code we scanned calls it. This is fine if the endpoint serves external clients (mobile app, third-party, server-side webhooks). Otherwise it's dead code \u2014 consider removing or documenting who consumes it."}, "properties": {"scanner": "scanner-primary", "layer": "api", "severity": "low", "confidence": 1.0}}, {"id": "scanner-ca22c6ec488d0bf4", "name": "Unused endpoint: GET /api/prices/current", "shortDescription": {"text": "Unused endpoint: GET /api/prices/current"}, "fullDescription": {"text": "`server/index.js` declares `GET /api/prices/current` but no frontend code we scanned calls it. This is fine if the endpoint serves external clients (mobile app, third-party, server-side webhooks). Otherwise it's dead code \u2014 consider removing or documenting who consumes it."}, "properties": {"scanner": "scanner-primary", "layer": "api", "severity": "low", "confidence": 1.0}}, {"id": "scanner-a4300578d785f356", "name": "Unused endpoint: POST /rpc", "shortDescription": {"text": "Unused endpoint: POST /rpc"}, "fullDescription": {"text": "`server/index.js` declares `POST /rpc` but no frontend code we scanned calls it. This is fine if the endpoint serves external clients (mobile app, third-party, server-side webhooks). Otherwise it's dead code \u2014 consider removing or documenting who consumes it."}, "properties": {"scanner": "scanner-primary", "layer": "api", "severity": "low", "confidence": 1.0}}, {"id": "scanner-effcbf5fcd9bfbd4", "name": "Unused endpoint: USE /api/accounting/:accountId", "shortDescription": {"text": "Unused endpoint: USE /api/accounting/:accountId"}, "fullDescription": {"text": "`server/index.js` declares `USE /api/accounting/:accountId` but no frontend code we scanned calls it. This is fine if the endpoint serves external clients (mobile app, third-party, server-side webhooks). Otherwise it's dead code \u2014 consider removing or documenting who consumes it."}, "properties": {"scanner": "scanner-primary", "layer": "api", "severity": "low", "confidence": 1.0}}]}}, "automationDetails": {"id": "repobility/24300"}, "properties": {"repository": "arizas/ariz-gateway", "repoUrl": "https://github.com/arizas/ariz-gateway", "branch": "main"}, "results": [{"ruleId": "scanner-69ba7157e5b924d4", "level": "note", "message": {"text": "Stray `console.log` in TS/JS \u2014 tools/registertoken.js:41"}, "properties": {"repobilityId": "8784c64207d10355", "scanner": "scanner-primary", "fingerprint": "69ba7157e5b924d4", "layer": "frontend", "severity": "low", "confidence": 1.0, "tags": ["frontend-quality", "fq.console-leak"]}}, {"ruleId": "scanner-5738bc9d6e93a170", "level": "note", "message": {"text": "Stray `console.log` in TS/JS \u2014 server/index.js:101"}, "properties": {"repobilityId": "21e6b3de2b3dd856", "scanner": "scanner-primary", "fingerprint": "5738bc9d6e93a170", "layer": "frontend", "severity": "low", "confidence": 1.0, "tags": ["frontend-quality", "fq.console-leak"]}}, {"ruleId": "scanner-c7afe39134431269", "level": "note", "message": {"text": "Stray `console.log` in TS/JS \u2014 server/index.mock.js:9"}, "properties": {"repobilityId": "12b6f1aea7185f2b", "scanner": "scanner-primary", "fingerprint": "c7afe39134431269", "layer": "frontend", "severity": "low", "confidence": 1.0, "tags": ["frontend-quality", "fq.console-leak"]}}, {"ruleId": "scanner-d63da3583b14afc0", "level": "warning", "message": {"text": "Dockerfile runs as root: Dockerfile"}, "properties": {"repobilityId": "a2ed1bd120e507db", "scanner": "scanner-primary", "fingerprint": "d63da3583b14afc0", "layer": "hardware", "severity": "medium", "confidence": 1.0, "tags": ["security", "container"]}}, {"ruleId": "scanner-a35c6a00f751880f", "level": "note", "message": {"text": "Docker base image is tag-pinned but not digest-pinned: node:20-slim"}, "properties": {"repobilityId": "be924fbee382ebe0", "scanner": "scanner-primary", "fingerprint": "a35c6a00f751880f", "layer": "hardware", "severity": "low", "confidence": 1.0, "tags": ["supply-chain", "docker", "pinned-dependencies"]}, "locations": [{"physicalLocation": {"artifactLocation": {"uri": "Dockerfile"}, "region": {"startLine": 1}}}]}, {"ruleId": "scanner-14dd75257af7e333", "level": "warning", "message": {"text": "Insecure pattern 'node_child_process' in server/index.test.js:2"}, "properties": {"repobilityId": "88d816c5fb9d77ab", "scanner": "scanner-primary", "fingerprint": "14dd75257af7e333", "layer": "security", "severity": "medium", "confidence": 1.0, "tags": ["owasp", "node_child_process"]}, "locations": [{"physicalLocation": {"artifactLocation": {"uri": "server/index.test.js"}, "region": {"startLine": 2}}}]}, {"ruleId": "scanner-7d9bdea90d0da414", "level": "warning", "message": {"text": "Insecure pattern 'cors_wildcard' in server/index.js:32"}, "properties": {"repobilityId": "d9e2487a3e052e8b", "scanner": "scanner-primary", "fingerprint": "7d9bdea90d0da414", "layer": "security", "severity": "medium", "confidence": 1.0, "tags": ["owasp", "cors_wildcard"]}, "locations": [{"physicalLocation": {"artifactLocation": {"uri": "server/index.js"}, "region": {"startLine": 32}}}]}, {"ruleId": "scanner-6372cebde0220094", "level": "warning", "message": {"text": "No auth library detected"}, "properties": {"repobilityId": "a5b6035a5bbf8054", "scanner": "scanner-primary", "fingerprint": "6372cebde0220094", "layer": "security", "severity": "medium", "confidence": 1.0, "tags": ["coverage", "auth"]}}, {"ruleId": "scanner-27924aa79fa4a517", "level": "note", "message": {"text": "GitHub Action is tag-pinned rather than SHA-pinned"}, "properties": {"repobilityId": "5f668af14b24df57", "scanner": "scanner-primary", "fingerprint": "27924aa79fa4a517", "layer": "cicd", "severity": "low", "confidence": 1.0, "tags": ["supply-chain", "github-actions", "pinned-dependencies"]}, "locations": [{"physicalLocation": {"artifactLocation": {"uri": ".github/workflows/ci.yml"}, "region": {"startLine": 17}}}]}, {"ruleId": "scanner-7f1e4527e6fecffa", "level": "error", "message": {"text": "GitHub Action tracks a moving branch"}, "properties": {"repobilityId": "42bf830819a44fa7", "scanner": "scanner-primary", "fingerprint": "7f1e4527e6fecffa", "layer": "cicd", "severity": "high", "confidence": 1.0, "tags": ["supply-chain", "github-actions", "pinned-dependencies"]}, "locations": [{"physicalLocation": {"artifactLocation": {"uri": ".github/workflows/ci.yml"}, "region": {"startLine": 20}}}]}, {"ruleId": "scanner-27924aa79fa4a517", "level": "note", "message": {"text": "GitHub Action is tag-pinned rather than SHA-pinned"}, "properties": {"repobilityId": "ec2026eb774c0b75", "scanner": "scanner-primary", "fingerprint": "27924aa79fa4a517", "layer": "cicd", "severity": "low", "confidence": 1.0, "tags": ["supply-chain", "github-actions", "pinned-dependencies"]}, "locations": [{"physicalLocation": {"artifactLocation": {"uri": ".github/workflows/ci.yml"}, "region": {"startLine": 38}}}]}, {"ruleId": "scanner-ea3b5e389d8c9c0f", "level": "note", "message": {"text": "Low test-to-source ratio"}, "properties": {"repobilityId": "ef7b2552cc00a375", "scanner": "scanner-primary", "fingerprint": "ea3b5e389d8c9c0f", "layer": "quality", "severity": "low", "confidence": 1.0, "tags": ["tests"]}}, {"ruleId": "scanner-141b30a41e03817b", "level": "note", "message": {"text": "No license file detected"}, "properties": {"repobilityId": "b0bb655d6cc9b5f9", "scanner": "scanner-primary", "fingerprint": "141b30a41e03817b", "layer": "quality", "severity": "low", "confidence": 1.0, "tags": ["license", "repo-hardening", "generated-repo-pattern"]}}, {"ruleId": "scanner-6e44f2aaee0e075a", "level": "warning", "message": {"text": "`fetch()` without try/.catch or AbortSignal \u2014 tools/registertoken.js:36"}, "properties": {"repobilityId": "31d013e8195c6080", "scanner": "scanner-primary", "fingerprint": "6e44f2aaee0e075a", "layer": "quality", "severity": "medium", "confidence": 1.0, "tags": ["integrity", "fragile-runtime", "robustness"]}}, {"ruleId": "scanner-4286d3ba7213f28d", "level": "warning", "message": {"text": "`fetch()` without try/.catch or AbortSignal \u2014 server/index.test.js:88"}, "properties": {"repobilityId": "9c00a4983853a32d", "scanner": "scanner-primary", "fingerprint": "4286d3ba7213f28d", "layer": "quality", "severity": "medium", "confidence": 1.0, "tags": ["integrity", "fragile-runtime", "robustness"]}}, {"ruleId": "scanner-14268e47efcdb421", "level": "none", "message": {"text": "Commented-code block (5 lines) in server/index.js:64"}, "properties": {"repobilityId": "64a20d80f38be32c", "scanner": "scanner-primary", "fingerprint": "14268e47efcdb421", "layer": "quality", "severity": "info", "confidence": 1.0, "tags": ["integrity", "commented-code", "dead-code"]}}, {"ruleId": "scanner-2ce2b67f5c652626", "level": "warning", "message": {"text": "`fetch()` without try/.catch or AbortSignal \u2014 server/api/prices/providers/frankfurter.js:7"}, "properties": {"repobilityId": "6c44d87b45629059", "scanner": "scanner-primary", "fingerprint": "2ce2b67f5c652626", "layer": "quality", "severity": "medium", "confidence": 1.0, "tags": ["integrity", "fragile-runtime", "robustness"]}}, {"ruleId": "scanner-abc7ba54af63b6fb", "level": "warning", "message": {"text": "`fetch()` without try/.catch or AbortSignal \u2014 server/api/prices/providers/cryptocompare.js:9"}, "properties": {"repobilityId": "f637ef9207197ba4", "scanner": "scanner-primary", "fingerprint": "abc7ba54af63b6fb", "layer": "quality", "severity": "medium", "confidence": 1.0, "tags": ["integrity", "fragile-runtime", "robustness"]}}, {"ruleId": "scanner-03b3ae68b12559a6", "level": "warning", "message": {"text": "`fetch()` without try/.catch or AbortSignal \u2014 server/api/prices/providers/coingecko.js:7"}, "properties": {"repobilityId": "54cdbd8d3e53aeb5", "scanner": "scanner-primary", "fingerprint": "03b3ae68b12559a6", "layer": "quality", "severity": "medium", "confidence": 1.0, "tags": ["integrity", "fragile-runtime", "robustness"]}}, {"ruleId": "scanner-cbee9ebaf441d402", "level": "error", "message": {"text": "Dangling fetch: GET https://arizgateway.azurewebsites.net/api/prices/history?basetoken=near&currency=nok&todate=2024-07-05 (tools/registertoken.js:36)"}, "properties": {"repobilityId": "1e240f9c5d4650d0", "scanner": "scanner-primary", "fingerprint": "cbee9ebaf441d402", "layer": "api", "severity": "high", "confidence": 1.0, "tags": ["wiring", "dangling-fetch", "fetch"]}}, {"ruleId": "scanner-6498d8989bafdbe2", "level": "note", "message": {"text": "Unused endpoint: GET /api/prices/currencylist"}, "properties": {"repobilityId": "c2a457df6179aacc", "scanner": "scanner-primary", "fingerprint": "6498d8989bafdbe2", "layer": "api", "severity": "low", "confidence": 1.0, "tags": ["wiring", "unused-endpoint"]}}, {"ruleId": "scanner-7c13accd16179c14", "level": "note", "message": {"text": "Unused endpoint: GET /api/prices/history"}, "properties": {"repobilityId": "3e8712176ac08aec", "scanner": "scanner-primary", "fingerprint": "7c13accd16179c14", "layer": "api", "severity": "low", "confidence": 1.0, "tags": ["wiring", "unused-endpoint"]}}, {"ruleId": "scanner-ca22c6ec488d0bf4", "level": "note", "message": {"text": "Unused endpoint: GET /api/prices/current"}, "properties": {"repobilityId": "d9535436ae78633a", "scanner": "scanner-primary", "fingerprint": "ca22c6ec488d0bf4", "layer": "api", "severity": "low", "confidence": 1.0, "tags": ["wiring", "unused-endpoint"]}}, {"ruleId": "scanner-a4300578d785f356", "level": "note", "message": {"text": "Unused endpoint: POST /rpc"}, "properties": {"repobilityId": "63b4fc0d5c64d026", "scanner": "scanner-primary", "fingerprint": "a4300578d785f356", "layer": "api", "severity": "low", "confidence": 1.0, "tags": ["wiring", "unused-endpoint"]}}, {"ruleId": "scanner-effcbf5fcd9bfbd4", "level": "note", "message": {"text": "Unused endpoint: USE /api/accounting/:accountId"}, "properties": {"repobilityId": "7161090d1f94f000", "scanner": "scanner-primary", "fingerprint": "effcbf5fcd9bfbd4", "layer": "api", "severity": "low", "confidence": 1.0, "tags": ["wiring", "unused-endpoint"]}}]}]}