aboutsummaryrefslogtreecommitdiffstats
path: root/prototypes/connections/edit-window.c
diff options
context:
space:
mode:
authoreunhhu <[email protected]>2026-09-29 12:05:58 +0100
committereunhhu <[email protected]>2026-09-29 12:05:58 +0100
commit319c2e61fabc89e2e64add218be448a9c9b6b776 (patch)
tree050e2df51e3615a5031405dda30edcc0aa01d3e1 /prototypes/connections/edit-window.c
parent95ce26b67aa6827b97a7fd0a9580a5d7be5dff37 (diff)
downloadpure-319c2e61fabc89e2e64add218be448a9c9b6b776.tar.gz
pure-319c2e61fabc89e2e64add218be448a9c9b6b776.zip
Close what an attacker on the path could do to a link, each checked
test-link now also plays an attacker: packets changed on the way, packets of the past sent again from the sender's address and its own, keys and sources not allowed, and a flood of made-up packets. It found: - A nonce used twice: a receiver sealed every answer in its one run, and a sender at rest coming back with the same run got a new slot whose answers began at number 0 again under the same key. Each slot now draws the run its answers are sealed in. - A link stopped for good by one packet of the past: a stream that did not know its last heard (after a restart or a rest) handed over from its first record held, and a stale part of an old one never came whole. It hands over from its first whole record. - Answers taken away: any packet that opened, however old, moved where answers went. Only the newest of its run moves it now; a new address is sent a challenge the sender says back (CHALLENGE, RESPONSE), and until then gets at most three times the bytes that came from it. - An answer made by a packet that did not open: a number heard before was acknowledged before the packet was opened. It is opened first. - An old answer lowering the sender's credit, or its gap making it send again: the sender now sends up to the most heard and credit it was told, and takes a gap only from a word not older than it knows. - Ten thousand made-up packets made ten thousand keys: keys made for a run that did not open now cost a token, 256 a second. Counts now say runs keyed and secrets made.
Diffstat (limited to 'prototypes/connections/edit-window.c')
0 files changed, 0 insertions, 0 deletions