Skip to content

Integer overflows in CBOR length checks (Leading to DoS) #1

@DavidBuchanan314

Description

@DavidBuchanan314

I've attached a (zipped) test case that illustrates this by triggering an infinite loop in frame header parsing. (it is possible to cause OOB reads too, but an infinite loop provides a more predicable demonstration without invoking any UB)

infinite_loop.zip

$ hexdump -C infinite_loop.bin 
00000000  bb ff ff ff ff ff ff ff  01 7b ff ff ff ff ff ff  |.........{......|
00000010  ff f6                                             |..|
00000012

You can trigger the test case by providing it as --input to assemblersky-harness

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions