gchq / gchq/CyberChef

Cannot decode a CBOR string

Open
#1,269 5 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
JavaScript
Stars
35.8k
Forks
4.1k
Avg merge
2d 26m
Merged PRs (30d)
33

Description

This string:

`¢H90hÍÚ&`

equivalent to

`a2 04 48 39 30 17 68 cd da 05 13 01 26`

Should decode to

```
A2 # map(2)
04 # unsigned(4)
48 # bytes(8)
39301768CDDA0513 # string
01 # unsigned(1)
26 # negative(6)
```

according to http://cbor.me/ , but it decodes to {}, i.e. nothing.

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the supplied hexadecimal CBOR input in CyberChef and compare its result with the expected two-entry map. The issue names no file or test, so trace the CBOR decoding operation from its user-facing entry point; done means this input produces the documented map instead of {}.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
data
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.