test: verify browser trust boundary on both application routers (#2)
This commit is contained in:
1 parent
fa09513e26
commit
e8dd03c4f5
4 files changed
+151
-44
No files matched your search
@@ -2,14 +2,14 @@
|
||||
|
||||
Repository: https://git.mchus.pro/mchus/QuoteForge
|
||||
|
||||
All issue pages were retrieved, including closed issues: seven total, six open.
|
||||
Issue [#1](https://git.mchus.pro/mchus/QuoteForge/issues/1) was already closed and
|
||||
is excluded from implementation. Work is sequential on
|
||||
`fix/open-issues-security-recovery`, with one implementation commit per open issue.
|
||||
Six issues (#2-#7) remain open. Their initial fixes were merged into `main`
|
||||
in [PR #8](https://git.mchus.pro/mchus/QuoteForge/pulls/8), with release notes
|
||||
in v3.50. Acceptance and remaining rule compliance work continue sequentially
|
||||
on `fix/issue-acceptance-and-migration-safety`.
|
||||
|
||||
| Order | Issue | Implementation and acceptance | Status |
|
||||
| --- | --- | --- | --- |
|
||||
| 1 | [#2](https://git.mchus.pro/mchus/QuoteForge/issues/2) | Block foreign Host/Origin/Referer and cross-site browser requests in both routers; validate API body types; refuse saved-password reuse for a changed host/port/user. Middleware attack cases and setup credential tests must pass. | Implemented |
|
||||
| 1 | [#2](https://git.mchus.pro/mchus/QuoteForge/issues/2) | Block foreign Host/Origin/Referer and cross-site browser requests in both routers; validate API body types; refuse saved-password reuse for a changed host/port/user. Middleware and real setup/runtime router tests reject attacks without changing saved credentials or user data. | Acceptance passed |
|
||||
| 2 | [#4](https://git.mchus.pro/mchus/QuoteForge/issues/4) | Move LOT-bearing cart/rental events to delegated listeners and escaped data attributes; escape BOM and sync output; share HTML escaping; render toast as text. Malicious LOT regression checks and template tests must pass. | Implemented |
|
||||
| 3 | [#7](https://git.mchus.pro/mchus/QuoteForge/issues/7) | Require a fresh verified archive outside rotation before reset, refuse unsynced/legacy states without explicit force, use transactional deletion, remove environment-triggered reset. Verify refusal, ZIP restore, backup failure and rollback. | Implemented |
|
||||
| 4 | [#5](https://git.mchus.pro/mchus/QuoteForge/issues/5) | Persist TLS mode/CA in SQLite, expose setup controls, share policy across setup/sync/migration DSNs. Verify certificate trust, hostname checks, plaintext fallback policy and settings round-trip. | Implemented |
|
||||
@@ -42,5 +42,18 @@ whose affected code is not called. Gin's transitive quic-go was explicitly raise
|
||||
to v0.59.1 after the first scan identified a reachable advisory in v0.59.0.
|
||||
|
||||
The checks use temporary SQLite databases and synthetic certificates. They do
|
||||
not exercise a live MariaDB server or browser automation. Review the draft PR
|
||||
before merge; issue state changes and a production release remain separate steps.
|
||||
not exercise a live MariaDB server or browser automation. The original implementation PR is merged. Remaining acceptance work and
|
||||
rule compliance are tracked below; issue state changes are separate.
|
||||
|
||||
## Acceptance follow-up
|
||||
|
||||
### Issue #2
|
||||
|
||||
`go test ./cmd/qfs -run TestRequestBoundaryOnApplicationRouters -count=1`
|
||||
exercises the production setup and runtime route constructors with temporary
|
||||
SQLite state. Foreign setup forms, opaque origins and rebinding hosts are
|
||||
rejected, text/plain JSON receives 415, and both setup handlers reject saved
|
||||
password reuse for a changed destination. Local reads still succeed. Saved
|
||||
credentials, project/configuration counts and the pending queue remain unchanged.
|
||||
The setup router construction was extracted without changing its routes so
|
||||
this regression exercises the same middleware registration as startup.
|
||||
Reference in new issue
Block a user