MarketSquare / MarketSquare/Rammbock

Binary data can be stripped on Get Message

Open Beginner friendly
#89 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
64
Forks
48
PR merge metrics
No merged PRs in 30d

Description

Create a binary container
```
new tbcd container my_field
tbcd 2 ID 123
tbcd * value
end tbcd container
```
Call Get Message on it with binary data with first bytes equal to whitespaces
```
${binary} = Hex to Bin 0x0a09010203 # starts with characters equal to \n and \t, but it is expected to be like that
Load Template My Message
${request}= Get Message
... BinaryField.value.my_field.value:${binary}
```

Because following function is called that treats templates as strings it will truncate whitespace characters
```
def _name_and_value(self, separator, parameter):
...
return key, parameter[index + 1:].strip()
```

As result data will be encoded and sent without expected characters

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating _name_and_value and tracing how Get Message parses the BinaryField.value.my_field.value parameter. Reproduce the issue with the shown TBCD container and 0x0a09010203 input, then verify that leading whitespace bytes remain in the encoded message.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
networking, testing-qa
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
65/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.