Skip to content

v0.807.0

Latest

Choose a tag to compare

@github-actions github-actions released this 13 Aug 20:41
· 6 commits to main since this release
v0.807.0
cfd0399

v0.807.0 — audit forensic-query hardening; EPC + TOTP verification lock-in

Headline is a correctness fix in the audit log's read path, plus two
verification gates that lock in the correctness of recently-added crypto
and RFID decoders against authoritative references.

Bug fix

  • audit: don't drop a NULL/tampered-success row from forensic queries
    (#216). Query, QueryBySession, QueryFiltered and QuerySince scanned the
    success column into a bare bool. success is an independent column from
    the hash chain, so an attacker with DB write can set it NULL (or a
    non-0/1 value) without touching entry_hash — a bare-bool scan then
    errors and the row is silently dropped from results, hiding it from an
    operator reviewing the log while VerifyChain still flags the tamper.
    This is the unfixed sibling of the VerifyChain bare-bool scan hardened
    in v0.797.0 (#179): that fixed chain.go; these four query paths carried
    the same bug. All now scan success as sql.NullInt64 (NULL/tampered ->
    false, row retained). Regression test proven load-bearing (3/4 rows
    pre-fix, 4/4 post-fix).

Verification / hardening

  • otp: verify SHA-256 / SHA-512 TOTP against RFC 6238 (#217). The TOTP
    gate only covered the SHA-1 vectors, but the SHA-256/512 paths are
    reachable via otpauth URIs (algorithm=SHA256/512) — a 2FA-code-
    generation path whose correctness against the spec was unverified at
    both the otp-package and tool-handler levels. Added Appendix B vectors
    for both algorithms (using the RFC's different per-algorithm seeds) and
    an end-to-end handler test asserting the exact RFC code from an otpauth
    URI. Codes and seeds cross-checked against an independent hmac
    implementation and pyotp; the implementation is correct.

  • epc: lock GIAI-202 decode across all partitions + the partition-0
    empty-field convention (#215). GIAI-202's asset-reference field width
    varies with the partition (the only partition-dependent piece of the
    v0.806.0 extended-scheme work); swept all partitions 0-6 against the
    epc-tds oracle (all correct) and locked them in, plus pinned the
    deliberate GRAI-170/SGLN-195 partition-0 empty-field rendering.

Documentation

  • catalog: marked the APRS compressed-position complete weather report as
    shipped (#214) — it was decoded and tested but the gap analysis still
    listed it as a follow-up.

Full commit range: v0.806.0..v0.807.0 (PRs #214, #215, #216, #217).