gchq / gchq/CyberChef

Bug report: Magic does not include Rail Fence

Open
#1,340 0 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

**Describe the bug**
When using "Magic" with a known Crib, sample Rail Fence encoded text does not get decoded.

**To Reproduce**
Steps to reproduce the behaviour or a link to the recipe / input used to cause the bug:

1. Go to to [this](https://gchq.github.io/CyberChef/#recipe=Magic(3,true,false,'WAIT%20A%20MINUTE')Rail_Fence_Cipher_Decode(3,0/disabled)&input=VyBJRUFGU0QgSVRVIE8gIEJFSiBSVEZVWURFIEFJQiAgSUhDRFJBVEFNTlQgSFRJIE5UQSBGVFlOIE9QTkhUUlVIVEVNTVJOICBVVE1STyBIIFJRRUMgTiBFIEZJQ05QR1lBS09GTyBUVEkgT0wgT0tJIFVXIElFT1JHIENIR0hFQUlTSVJFRU5BU0kgIEdDRkYgU1VX) sample link.
2. Notice that `Nothing of interest could be detected about the input data.` is displayed
3. Disable `Magic`, enable the `Rail Fence Cipher Decode`
4. Notice the displayed output includes the Crib

**Expected behaviour**
When `Magic` is chosen, the Rail Fence text should be decoded.

Contributor guide

Open the contributing guide

Research direction

Start with the linked CyberChef recipe and compare Magic with the separately enabled Rail Fence Cipher Decode operation using the provided input and crib. Trace how Magic identifies candidate operations, then verify that the sample Rail Fence text is detected and decoded with the crib present.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.