Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sidechain Magic number should be used in NeoFS requests #82

Closed
realloc opened this issue Oct 23, 2020 · 2 comments · Fixed by #175 or #186
Closed

Sidechain Magic number should be used in NeoFS requests #82

realloc opened this issue Oct 23, 2020 · 2 comments · Fixed by #175 or #186
Assignees

Comments

@realloc
Copy link

realloc commented Oct 23, 2020

To prevent theoretical replay attack, we need to have Sidechain Magic in NeoFS requests.

@alexvanin
Copy link
Contributor

Would be nice to think about it after #127 and nspcc-dev/neofs-dev-env#6

cthulhu-rider pushed a commit to cthulhu-rider/neofs-api that referenced this issue Sep 27, 2021
Add `sidechain_magic` numeric field to `session.RequestMetaHeader`
message.

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
@cthulhu-rider cthulhu-rider self-assigned this Sep 28, 2021
cthulhu-rider pushed a commit to cthulhu-rider/neofs-api that referenced this issue Sep 28, 2021
Add `sidechain_magic` numeric field to `session.RequestMetaHeader`
message.

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
@alexvanin
Copy link
Contributor

This issue was rollbacked because it would break backward compatibility without status codes. Now it should work fine.

Besides that implement, status code for invalid message so the client can process that and downgrade request version number.

cthulhu-rider pushed a commit to cthulhu-rider/neofs-api that referenced this issue Jan 10, 2022
To prevent theoretical cross-network replay attack, we need to have
sidechain magic in NeoFS requests.

Add `sidechain_magic` numeric field to `session.RequestMetaHeader`
message.

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
cthulhu-rider pushed a commit to cthulhu-rider/neofs-api that referenced this issue Jan 10, 2022
To prevent theoretical cross-network replay attack, we need to have
sidechain magic in NeoFS requests.

Add `sidechain_magic` numeric field to `session.RequestMetaHeader`
message.

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
cthulhu-rider pushed a commit to cthulhu-rider/neofs-api that referenced this issue Jan 10, 2022
After the recent update of NeoFS V2 protocol all requests must carry
correct sidechain magic.

Add `WRONG_SIDECHAIN_MAGIC` code to `CommonFail` section.

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
cthulhu-rider pushed a commit to cthulhu-rider/neofs-api that referenced this issue Jan 10, 2022
To prevent theoretical cross-network replay attack, we need to have
sidechain magic in NeoFS requests.

Add `sidechain_magic` numeric field to `session.RequestMetaHeader`
message.

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
cthulhu-rider pushed a commit to cthulhu-rider/neofs-api that referenced this issue Jan 10, 2022
After the recent update of NeoFS V2 protocol all requests must carry
correct sidechain magic.

Add `WRONG_SIDECHAIN_MAGIC` code to `CommonFail` section.

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
cthulhu-rider pushed a commit to cthulhu-rider/neofs-api that referenced this issue Jan 10, 2022
To prevent theoretical cross-network replay attack, we need to have
network magic in NeoFS requests.

Add `magic_number` numeric field to `session.RequestMetaHeader`
message.

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
cthulhu-rider pushed a commit to cthulhu-rider/neofs-api that referenced this issue Jan 10, 2022
After the recent update of NeoFS V2 protocol all requests must carry
correct network magic.

Add `WRONG_MAGIC_NUMBER` code to `CommonFail` section.

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
cthulhu-rider pushed a commit that referenced this issue Jan 10, 2022
To prevent theoretical cross-network replay attack, we need to have
network magic in NeoFS requests.

Add `magic_number` numeric field to `session.RequestMetaHeader`
message.

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
cthulhu-rider pushed a commit that referenced this issue Jan 10, 2022
After the recent update of NeoFS V2 protocol all requests must carry
correct network magic.

Add `WRONG_MAGIC_NUMBER` code to `CommonFail` section.

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants