Handle unrecognized fields #72

Open
opened 2025-12-28 18:12:26 +00:00 by sami · 0 comments
Owner

Originally created by @cthulhu-rider on GitHub (Apr 12, 2022).

Unrecognized fields can be detected during unmarshaling of binary protobuf messages. These fields can carry sensitive data, so it seems that software should process them in a special way, such as denial of service or redirection to other parties.

Since almost all messages are signed/verified, unrecognized fields force verification failure even in case of correct signing. In this scenario sender will receive INCORRECT_SIGNATURE response status which is definitely unexpected.

I propose to think about possible reactions of applications on unrecognized fields and provide some functionality to catch/process them.

Originally created by @cthulhu-rider on GitHub (Apr 12, 2022). Unrecognized fields can be detected during unmarshaling of binary protobuf messages. These fields can carry sensitive data, so it seems that software should process them in a special way, such as denial of service or redirection to other parties. Since almost all messages are signed/verified, unrecognized fields force verification failure even in case of correct signing. In this scenario sender will receive `INCORRECT_SIGNATURE` response status which is definitely unexpected. I propose to think about possible reactions of applications on unrecognized fields and provide some functionality to catch/process them.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
nspcc-dev/neofs-api-go#72
No description provided.