gchq / gchq/CyberChef

Bug report: crash the output pane using entropy and AES

Open
#1,749 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**
Adding AES encrypt after Entropy causes the output pane to crash and show JS/HTML rather than output.

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

1. Put text into the input
2. Add the entropy operation
3. Add AES Encrypt operation - The output crashes with a JS error
4. Pause encryption operation - The output shows the entropy details with the JS/HTML for the nice graph that should be there. The entropy values update as the input is updated, so the operation is still working at some level.

**Expected behaviour**
AES operation shouldn't crash when started and it crashing shouldn't take down the other operations.

**Screenshots**
![image](https://github.com/gchq/CyberChef/assets/117081/0028d71a-71dd-4fde-ae08-3ad7f94be2b5)

![image](https://github.com/gchq/CyberChef/assets/117081/48e3e2bd-64c6-420a-9c2c-7a78caea7906)

![image](https://github.com/gchq/CyberChef/assets/117081/6527fcab-bf0b-406a-922e-c56678f055fd)

![image](https://github.com/gchq/CyberChef/assets/117081/158d547e-6738-4121-83d7-5b636bb07056)

**Desktop (if relevant, please complete the following information):**

Running the latest Docker image in Chrome on Ubuntu.

```
docker run -it -p 9090:80 ghcr.io/gchq/cyberchef:latest
```

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue in CyberChef with text input, Entropy, and AES Encrypt using the Docker image in Chrome on Ubuntu. Start by examining the output pane behavior and the Entropy/AES operation interaction; done means AES no longer crashes the output and the other operation output remains usable.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
cryptography, frontend
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.