Skip to content

The sec-websocket-key uses prng #1305

@disconnect3d

Description

@disconnect3d

TL;DR The sec-websocket-key generation uses PRNG. If one could recover the state of the PRNG, they can predict the keys being generated.

Afaik this isn't really a security issue, but some other projects use CSPRNG for this generation, so I am leaving it here in case you want to change it.

Here is the relevant code path:
https://github.com/oxidecomputer/progenitor/blob/7c28b2581fd9f4205fd8fee2c6b91245d93322ce/progenitor-impl/src/method.rs#L855C25-L855C53

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions