Lowghsa:GHSA-m3qr-fvp4-78xj

    github.com/basekick-labs/arc: Exposure of Sensitive Information to an Unauthorized Actor (ghsa:GHSA-m3qr-fvp4-78xj)

    Published Sources: Hersteller

    Share

    What is affected, what to do

    Update github.com/basekick-labs/arc to version 0.0.0-20260615165136-bb7d9761ad98.

    Not sure whether and how you are affected? Ask a question about this vulnerability

    Metrics

    —

    Priority

    No value is available for this vulnerability.

    —

    CVSS v3

    No value is available for this vulnerability.

    —

    EPSS score

    No value is available for this vulnerability.

    Show all metrics
    Severity
    Low
    Priority (0–325)

    The priority score is a consolidated metric that condenses several individual signals into a single, action-guiding ranking: technical severity (CVSS), exploitation likelihood (EPSS), known-exploited status (KEV) and the context of the affected asset. The aim is to answer the only truly important question in vulnerability management: what first?

    Read in glossary
    30.00 Methodology
    Exploit maturity

    An exploit is code or a technique that specifically uses a concrete vulnerability to force unintended behaviour — such as executing code or escalating privileges. It is the tool that turns a theoretical flaw into a practical attack.

    Read in glossary
    no public PoC known
    KEV status

    The KEV catalogue is a list maintained by the US authority CISA of vulnerabilities for which active exploitation in the wild has been confirmed. It answers not the question „how severe?“ but „is it already being attacked?“ — thereby sharply prioritising patching.

    Read in glossary
    —
    Published
    CWE

    CWE is a catalogue of typical weakness types in software and hardware — such as flawed input validation, unsafe memory handling or poor authentication. Where a CVE names a concrete vulnerability in a concrete product, a CWE describes the underlying class of defect.

    Read in glossary
    CWE-200, CWE-306

    Classification under NIS2 and CRA

    Rule-based classification from exploitation status and severity. It does not replace a case-by-case assessment.

    NIS2

    NIS2 is EU Directive (EU) 2022/2555 to raise the level of cybersecurity across the Union. It substantially broadens obligations compared with the first NIS directive: more sectors, mandatory risk management, staged reporting duties and personal accountability of senior management.

    Read in glossary
    Handle the vulnerability in regular vulnerability handling under Art. 21(2)(e) NIS2.
    CRA

    The CRA is EU Regulation (EU) 2024/2847 setting horizontal cybersecurity requirements for „products with digital elements“ — from industrial controllers and software to connected consumer devices. For the first time manufacturers must ensure security across the entire product lifecycle, handle vulnerabilities and provide security updates.

    Read in glossary
    From 11.12.2027, Annex I Part II CRA requires manufacturers of affected products with digital elements to handle vulnerabilities without delay and provide security updates.
    ISO/IEC 27001

    ISO/IEC 27001 is the internationally leading standard for an information security management system (ISMS). It describes a risk-based, process-oriented framework to systematically plan, implement, review and improve information security.

    Read in glossary
    Control A.8.8, management of technical vulnerabilities: assess relevance to your systems, plan remediation and keep evidence.

    Description

    Summary

    Arc exposes GET /api/v1/logs without authentication even when authentication is enabled by default. The route is registered before the global Fiber authentication middleware, and the handler returns recent buffered application logs without performing its own authorization check.

    Details

    Arc applies the global auth middleware after calling server.RegisterRoutes():

    • cmd/arc/main.go:1598-1599 registers base routes via server.RegisterRoutes().
    • cmd/arc/main.go:1601-1618 configures and installs auth.NewMiddleware(...) later.

    server.RegisterRoutes() registers GET /api/v1/logs as a base route:

    • internal/api/server.go:164-183 registers base health, metrics, and logs routes, including s.app.Get("/api/v1/logs", s.logsHandler).

    The logs handler returns buffered logs without checking authentication or authorization:

    • internal/api/server.go:537-567 parses limit, level, and since_minutes, reads logger.GetBuffer().GetRecent(...), and returns JSON.
    • internal/logger/buffer.go:9-16 defines log entries returned to callers: timestamp, level, component, message, and caller.
    • internal/logger/buffer.go:33-39 creates a global log buffer holding the last 10,000 entries.
    • internal/api/server.go:540-558 permits up to limit=1000 and since_minutes=1440 in one unauthenticated request.

    Authentication is enabled by default and /api/v1/logs is not listed as a public route:

    • internal/config/config.go:841-843 defaults auth to enabled.
    • internal/auth/middleware.go:29-41 public defaults are /health, /ready, /api/v1/auth/verify, and /metrics prefix; /api/v1/logs is not public.

    However, Fiber route/middleware order makes the later middleware ineffective for an earlier exact route. Local verification against Fiber v2.52.13 showed a route registered before app.Use(...) returns 200 and the later middleware is not reached. Fiber’s router walks routes in declaration order and stops after the first matching route unless the handler calls c.Next(); logsHandler does not call c.Next().

    Proof of concept

    Safe local reproduction only; do not scan external infrastructure.

    1. Start Arc with default authentication enabled.
    2. Request logs without an Authorization header or x-api-key header:
    curl -i 'http://127.0.0.1:8000/api/v1/logs?limit=1000&since_minutes=1440'
    

    Expected vulnerable result:

    HTTP/1.1 200 OK
    Content-Type: application/json
    
    {"timestamp":"...","count":...,"logs":[...]}
    
    1. Compare with a protected endpoint without credentials:
    curl -i 'http://127.0.0.1:8000/api/v1/auth/tokens'
    

    Expected protected result:

    HTTP/1.1 401 Unauthorized
    

    This demonstrates that default auth is active while /api/v1/logs bypasses it due to registration order.

    Impact

    An unauthenticated network attacker can retrieve recent application logs. Depending on deployment and log level, logs can disclose operational metadata such as component names, internal paths, database/measurement names, node identifiers, caller locations, request outcomes, and error details. This can assist further attacks and may expose sensitive data if any deployment logs secrets or user-controlled confidential data.

    The audit did not confirm that the bootstrap admin token banner is captured by this endpoint; that banner is printed with fmt.Fprintf(os.Stderr, ...), while this endpoint reads the zerolog-backed application buffer.

    Workarounds

    Until patched, operators can restrict access to /api/v1/logs at a reverse proxy, firewall, ingress policy, or service mesh. If the endpoint is not needed, block it entirely.

    Suggested fix

    • Move /api/v1/logs registration after global auth middleware and require an authenticated administrator; or
    • Add explicit route-level middleware: auth.RequireAdmin(authManager) for /api/v1/logs; and
    • Add a regression test that unauthenticated requests to /api/v1/logs return 401/403 while /health and /ready remain public.

    References / evidence

    • cmd/arc/main.go:1598-1618
    • internal/api/server.go:164-183
    • internal/api/server.go:537-567
    • internal/auth/middleware.go:29-41
    • internal/config/config.go:841-843
    • internal/logger/buffer.go:9-16
    • internal/logger/buffer.go:33-39

    Source: GitHub Security Advisories

    Affected products

    The following versions are affected. Older releases of the same product line are also vulnerable unless stated otherwise.

    Affected products
    Affected versionsFixed in
    gogithub.com/basekick-labs/arc
    • < 0.0.0-20260615165136-bb7d9761ad98
    • 0.0.0-20260615165136-bb7d9761ad98

    Vendors and products

    Weakness classes (CWE)

    • CWE-200Exposure of Sensitive Information to an Unauthorized Actor

      Class

      The product exposes sensitive information to an actor that is not explicitly authorized to have access to that information.

      Entry at MITRE CWE-200
    • CWE-306Missing Authentication for Critical Function

      Base

      The product does not perform any authentication for functionality that requires a provable user identity or consumes a significant amount of resources.

      Entry at MITRE CWE-306