1888 files, from working commit b1a079a. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
97 lines
5.0 KiB
JSON
97 lines
5.0 KiB
JSON
{
|
|
"schema_version": 1,
|
|
"kind": "source-legacy-header-key-width-correction",
|
|
"date": "2026-10-21",
|
|
"status": "implemented-independent-focused-tests-pass-live-validation-pending",
|
|
"problem": "The source realm serializes a numeric BigNumber session key at minimal byte width for legacy header encryption. The gateway kept a fixed40-byte header-cipher modulus even when the stored numeric key occupied39 bytes.",
|
|
"observed_length_only_evidence": {
|
|
"stored_session_key_hex_characters": 78,
|
|
"numeric_header_key_bytes": 39,
|
|
"witness_sha256": "2473f1c7bfa55713bd9bdaeea4d68443e194408dbbc4cc78504c483cbca4a603",
|
|
"key_material_inspected_or_exported": false
|
|
},
|
|
"source_contract": {
|
|
"world_socket": "WorldSocket.cpp:341 SetKey(K.AsByteArray()); empty numeric key rejected at240",
|
|
"number_representation": "BigNumber.h:85 defaults minSize0/reverseTrue; BigNumber.cpp uses BN_num_bytes, BN_bn2bin, then reverses to minimal-width little-endian",
|
|
"cipher_modulus": "AuthCrypt uses actual _key.size() for both directions",
|
|
"valid_initial_packet": "Opcodes_1_12_1.h:298 SMSG_SET_PROFICIENCY=0x127; Player.cpp:19647 allocates1+4-byte body",
|
|
"source_sha256_pins": {
|
|
"/home/praxis/Servers/tortoise-wow/src/game/Protocol/WorldSocket.cpp": "31459b652096fe3c802281250dfbb42c730ced4046e39541814347b4c5c75e4f",
|
|
"/home/praxis/Servers/tortoise-wow/src/shared/Auth/BigNumber.h": "bf16e8d12b655247515a8395d9ead2c7245368f00129c02038f3b714feaddb95",
|
|
"/home/praxis/Servers/tortoise-wow/src/shared/Auth/BigNumber.cpp": "cabddc98b25376b3856a9f5baf56136b9cd466b2edfd936b039b3cc90d586321",
|
|
"/home/praxis/Servers/tortoise-wow/src/shared/Auth/AuthCrypt.cpp": "99904b88159771d9ee0b2bd4087517104636b4795b976b24ae044ca9a71b6f21"
|
|
}
|
|
},
|
|
"correction": {
|
|
"source_only": "LegacyPacketStream explicitly selects HeaderKeyWidth::SourceBigNumber for both directions",
|
|
"input_guard": "Original SRP input still exactly40 bytes; shorter raw inputs remain rejected",
|
|
"numeric_width": "Only trailing high-order zero bytes removed; low-order zeros/high-bit nonzero bytes retained",
|
|
"zero_guard": "Source numeric-zero key rejects before modulo, matching source WorldSocket precondition",
|
|
"generic_contract": "Default Cipher constructor remains Fixed40 with unchanged behavior and ABI entry point",
|
|
"proof_isolation": {
|
|
"source": "src/protocol.cpp:69",
|
|
"canonical_input": "natural(key)",
|
|
"function_unchanged": true,
|
|
"function_source_sha256": "753d77a4cb5964a33782aaaa97787e926653be4447a42f13063bf15d7d86bc83"
|
|
},
|
|
"untouched": [
|
|
"SRP generation and proof",
|
|
"World-auth digest inputs",
|
|
"Modern Forever crypto",
|
|
"Framing header/body state machine",
|
|
"Native auth/readiness guards"
|
|
]
|
|
},
|
|
"tested_scope": {
|
|
"stream_cases": 52,
|
|
"effective_key_widths": [
|
|
40,
|
|
39,
|
|
38,
|
|
32,
|
|
2,
|
|
1
|
|
],
|
|
"fragment_sizes": [
|
|
1,
|
|
2,
|
|
3,
|
|
7,
|
|
31,
|
|
4096,
|
|
65535
|
|
],
|
|
"inbound_packets_per_case": 32,
|
|
"outbound_headers_per_case": 35,
|
|
"large_fragmented_payload_bytes": 12289,
|
|
"independent_oracle": "OpenSSL BigNumber little-endian conversion plus source AuthCrypt reference; does not use the production canonicalization function",
|
|
"additional_contracts": [
|
|
"Default fixed40 preservation across wraps",
|
|
"Same first39 bytes then differing wrap in synthetic39 case",
|
|
"Strict raw input lengths and unknown policy rejection",
|
|
"Source all-zero rejection while generic fixed40 behavior preserved",
|
|
"Low-order zero and high-bit preservation"
|
|
],
|
|
"actual_result": "PASS52 stream cases plus strict/default contracts",
|
|
"existing_protocol_and_framing_regressions": "PASS (root-operated)"
|
|
},
|
|
"implementation_files": {
|
|
"src/protocol.cpp": "38f0c324710d019b4c05f45a03271e577e5afe593b4f34a8cf36a3dd3b39494c",
|
|
"include/gateway/protocol.hpp": "f49e2dd47e3fbe1b4b7e7a7b9e01a6003147fb502bbf38b94fbf513ac5794a97",
|
|
"include/gateway/legacy_stream.hpp": "a3852b482ae003afc3c8883c504c18acc84e045aa4366b5ff02999ef76cdf5b2",
|
|
"tests/legacy_source_key_width_test.cpp": "9d67486af5a91eca5428ba28e4d6408a0d946d25e35ad3b8c380900d03f93832"
|
|
},
|
|
"independent_review": {
|
|
"path": "runtime/nearby-player-writer-20261021/source-key-width-independent-review.json",
|
|
"sha256": "2102e57ca7ccc963833b5ea461e64100e1a99e045ba3dd7c52c2809afc62d65a",
|
|
"verdict": "ACCEPT",
|
|
"actual_focused_result": "PASS52 stream cases plus strict/default contracts"
|
|
},
|
|
"acceptance_limits": [
|
|
"Focused header/cipher and existing protocol/framing regressions pass; independent review ACCEPT. Fresh native world entry on the fixed matched build is pending root acceptance.",
|
|
"The exact unusual opcode sequence is not reconstructed using secret keys.",
|
|
"The corrected width mismatch is source-proven; no lifecycle rollback or speculative auth changes were made."
|
|
],
|
|
"private_contract_sha256": "42a26702c7ec13ecada5c460f3d443ee9d57cdd290afbce9d0868c45dacc33ed"
|
|
}
|