Skip to content

How does socket.io prevent session hijacking when polling transport is used? #4991

Answered by darrachequesne
kujiraOo asked this question in Q&A
Discussion options

You must be logged in to vote

Hi!

Do i understand correctly that the polling transport relies solely on the SID value for checking the client identity?

Yes.

Does SID need to be treated as sensitive information?

Yes.

If yes, how secure is SID randomness?

The SID is generated by the base64id package, which uses crypto.randomBytes under the hood.

See also: #3416 (comment)

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@kujiraOo
Comment options

Answer selected by kujiraOo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants