Docs Version v0.2
Docs menu

Security

The 2025 CWE Top 25, against this code

Changed 6 min readv0.2

On this page

Introduction

The Common Weakness Enumeration (CWE) is a catalogue of the kinds of mistake that make software unsafe, each with a number such as CWE-79. MITRE manages it, and publishes a yearly list of the 25 most dangerous software weaknesses.

This page reads each entry of MITRE's 2025 list against the engine (Go) and the console (PHP), as of November 2026. The list is MITRE's 2025 Top 25 page. Each entry names where it is held, by file and line, or why it does not apply. Seven of the twenty-five are memory-safety weaknesses, which neither language can have in code written here.

It is for a security reviewer or an auditor who wants to check Signari against a common baseline. Each row is a claim you can check, by opening the file at the line it names. How it was done gives the method.

The twenty-five

RankCWEHere
1CWE-79 cross-site scriptingEvery page is an html/template (engine/internal/pages/pages.go:54), which escapes by context; the three places that mark text as already safe are each recorded with why (engine/gosec-baseline.txt:18-20: an otpauth URI and QR SVG Signari makes, and catalogue text whose interpolated values are escaped first). Every page also carries a Content-Security-Policy (engine/internal/httpapi/securityheaders.go:115), and the console runs an inline script only when it carries the response's nonce
2CWE-89 SQL injectionpgx with bound parameters throughout. gosec's two SQL rules (G201, G202) report nothing (no line for either in engine/gosec-baseline.txt). A table name put into a statement comes from a fixed map, never a request. The console's one dynamic setting goes through set_config with bind parameters (admin/app/Http/Middleware/ScopeToOrganisation.php:53), never SET
3CWE-352 cross-site request forgeryEvery form post is checked against a double-submit token (checkCSRF, engine/internal/httpapi/session.go:78), and session cookies are SameSite. The console's panel runs Laravel's PreventRequestForgery in its middleware (admin/app/Providers/Filament/AdminPanelProvider.php)
4CWE-862 missing authorizationEvery Admin API route is registered through one of two helpers that wrap it in the scope check (engine/internal/adminapi/server.go:229, :238, auth at :746), and TestScopeIsEnforcedPerEndpoint (engine/internal/adminapi/principal_test.go:59) holds a token to its scopes. The console reaches the engine's data only through views whose row-level security returns nothing without an organisation
5CWE-787 out-of-bounds writeNot in Go or PHP code written here: both check bounds, there is no cgo (no import "C") and no unsafe outside tests
6CWE-22 path traversalNo route serves a file from a request's path (no http.FileServer, ServeFile or http.Dir). Pages are embedded (engine/internal/pages/pages.go:65). Every file the engine opens is named by the administrator's own flag or setting, each recorded (engine/gosec-baseline.txt:23-32)
7CWE-416 use after freeNot possible in managed memory, as for rank 5
8CWE-125 out-of-bounds readAs for rank 5
9CWE-78 OS command injectionThree subprocesses, each an argument vector with no shell: kadmin with the administrator's Kerberos realm, principal and keytab (engine/internal/kerberos/sync.go:99, recorded at engine/gosec-baseline.txt:21), stty around a password prompt, and softhsm2-util in a test helper package. No request reaches any of them
10CWE-94 code injectionNothing is evaluated: extension is through out-of-process providers over HTTP (Extending Signari with your own service), with no plugins, embedded expression language or WebAssembly. Sign-in flow and access policy conditions are a fixed vocabulary parsed into structures
11CWE-120 buffer copy without checking sizeAs for rank 5
12CWE-434 unrestricted upload of a dangerous typeNothing is uploaded, to the engine or the console. A brand's logo is a URL (engine/internal/adminapi/instances.go:35), and the console has no file field
13CWE-476 NULL pointer dereferenceA nil dereference in Go panics, and the engine recovers it per request (engine/internal/httpapi/recovermw.go:51), so one request fails and the process stays up. It cannot read or write memory it should not
14CWE-121 stack-based buffer overflowAs for rank 5
15CWE-502 deserialization of untrusted dataJSON only, decoded into fixed types, with duplicate keys refused (engine/internal/jsonstrict/jsonstrict.go:38); no encoding/gob. The console's cache refuses to unserialise any class (admin/config/cache.php:134), and its sessions are kept server-side
16CWE-122 heap-based buffer overflowAs for rank 5
17CWE-863 incorrect authorizationA token narrowed to named clients, groups or attributes is held to them by one rule (mayActOnObject, engine/internal/adminapi/principal.go:189), an organisation's token to its organisation (requireOrg, :410), and a high-value change can be made to wait for a second person (two-person approvals)
18CWE-20 improper input validationRequest bodies are decoded strictly, unknown fields refused, and a protocol parameter given twice is refused rather than one copy chosen (refuseDuplicateParams, engine/internal/httpapi/dupeparams.go:44)
19CWE-284 improper access controlThe schema boundary is a GRANT, not a convention: the console's database role has no privilege on core at all, and every organisation's table forces row-level security (TestEveryOrgScopedTableEnforcesTenantIsolation, engine/internal/store/rlscompleteness_test.go:33)
20CWE-200 exposure of sensitive informationA failed sign-in says the same whether the account exists, and takes as long: an unknown name is hashed against a dummy (engine/internal/httpapi/ldapauth.go:329). Errors name the refusal, never a stack. Metrics live on their own listener (SIGNARI_METRICS_ADDR), with labels from closed sets
21CWE-306 missing authentication for a critical functionThe Admin API has no unauthenticated route, listens on its own address, and refuses to start without Transport Layer Security (TLS) unless plaintext is asked for by name
22CWE-918 server-side request forgeryEvery outbound request goes through one dialler that refuses loopback, private, link-local and metadata addresses however they are spelt, at connect time, after resolution (engine/internal/safedial/safedial.go:331; TestTheDiallerRefusesLoopbackHoweverItIsSpelled, safedial_test.go:78)
23CWE-77 command injectionAs for rank 9
24CWE-639 authorization bypass through a user-controlled keyAn object named in a path is looked up within the caller's organisation, and every core_v1 view returns only the organisation's rows (TestNoCoreV1ViewReturnsAnotherTenantsRow, engine/internal/store/viewtenancy_test.go:60)
25CWE-770 allocation without limits or throttlingGuesses are reserved against a budget before the hash is spent (ReserveRate, engine/internal/store/ratelimit.go:55). Bodies are bounded (http.MaxBytesReader, 24 calls in engine/internal/httpapi), headers have a read deadline (ReadHeaderTimeout), and the Admin API has a rate for the listener and one per token

How it was done

Each entry was read against the code, not the documentation: the citation is where it is held. The memory-safety entries were checked by the absence of what would bring them in (import "C", unsafe), not assumed from the language.

Where an entry rests on a guard test, the test is named. A change that breaks the guard then fails the build, instead of this page going stale.