gchq / CyberChef

The Cyber Swiss Army Knife - a web app for encryption, encoding, compression and data analysis

Home Page:https://gchq.github.io/CyberChef

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bug report: extra bytes are added to input on loading from URL

mikecat opened this issue · comments

Describe the bug

Extra bytes may appear in the input when input is loaded from URL.

To Reproduce

Here is an example of URL generated from single-byte input a.

https://gchq.github.io/CyberChef/#input=YQ

When I access to this URL, two extra 0x00 bytes are appended to the input and the URL becomes:

https://gchq.github.io/CyberChef/#input=YQAA

Expected behaviour

No extra bytes is added to the input and the input is restored as-is.

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

  • OS: Windows 10 Home 21H2 x64
  • Browser: Firefox Browser 101.0 (x64)
  • CyberChef version: 9.38.6

Additional context

Information on "REPORT A BUG" tab:

* Version: 9.38.6
* Compile time: 03/06/2022 22:00:14 UTC
* User-Agent:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:101.0) Gecko/20100101 Firefox/101.0
* [Link to reproduce](https://gchq.github.io/CyberChef/#input=YQ)