Skip to content

bug(HMAC): when hashing function is empty it throws an uncaught TypeError #2513

@HackingRepo

Description

@HackingRepo

To reproduce that use a direct link https://gchq.github.io/CyberChef/#recipe=HMAC(%7B'option':'','string':''%7D,'')&input=aGk

as you can see an uncaught TypeError look like

HMAC - TypeError in https://gchq.github.io/CyberChef/modules/Crypto.js on line 2.<br><br>Message: can't access property "blockSizeInBytes", n is undefined

the issue simple and persits because the Hashing Function is not validated is empty or not before using it in any operation

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions