gchq / gchq/CyberChef

Bug report: AES Non-Latin input content cannot be restored after being reversed.

Open
#1,934 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**
AES Non-Latin input content cannot be restored after being reversed.

**To Reproduce**

https://gchq.github.io/CyberChef/#recipe=AES_Encrypt(%7B'option':'Hex','string':'0000000000000000000000000000000'%7D,%7B'option':'Hex','string':'0000000000000000000000000000000'%7D,'CBC','Raw','Raw',%7B'option':'Hex','string':''%7D)To_Base64('A-Za-z0-9%2B/%3D')From_Base64('A-Za-z0-9%2B/%3D',true,false)AES_Decrypt(%7B'option':'Hex','string':'0000000000000000000000000000000'%7D,%7B'option':'Hex','string':'0000000000000000000000000000000'%7D,'CBC','Raw','Raw',%7B'option':'Hex','string':''%7D,%7B'option':'Hex','string':''%7D)&input=YWJjLeW%2BiOajkmRlZg&ienc=65001&oenc=65001

**Expected behaviour**
Output content should equal to the input content

**Screenshots**
image

**Desktop (if relevant, please complete the following information):**
- OS: MAC M2
- Browser: chrome 129.0
- CyberChef version: Version 10.19.4 Compile time: 23/10/2024 15:12:24 UTC

**Additional context**

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the linked CyberChef AES recipe with the shown non-Latin input and verify whether the decrypted output differs from the original. Trace the AES encrypt/decrypt operation and its handling of encoded text, then confirm that the output content equals the input content.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.