Skip to content

Fix URL encoding incorrectly converting input to UTF-8#2340

Open
C85297 wants to merge 3 commits intogchq:masterfrom
C85297:584-fix-url-encode-binary
Open

Fix URL encoding incorrectly converting input to UTF-8#2340
C85297 wants to merge 3 commits intogchq:masterfrom
C85297:584-fix-url-encode-binary

Conversation

@C85297
Copy link
Copy Markdown
Member

@C85297 C85297 commented Apr 27, 2026

Description
The URL Encode operation takes a string input - this means CyberChef will convert a bytes output from a previous operation into a UTF-8 string before passing it to the URL Encode operation.
This would cause CyberChef to encode invalid UTF-8 strings when operating on non UTF-8 binary data, causing bad output from URL Encode.
Fixed by making URL Encode operation operate on binary input.
The operation still outputs strings, with the binary input URL encoded.

Existing Issue
#584

AI disclosure
GPT 5.5

Test Coverage
👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants