microsoft / restler-fuzzer

RESTler is the first stateful REST API fuzzing tool for automatically testing cloud services through their REST APIs and finding security and reliability bugs in these services.
MIT License
2.52k stars 283 forks source link

Handling ByteArray in Request Object During Fuzz Testing: Incorrect JSON Representation Issue #896

Open abdelmouheimen-trabelssi opened 1 month ago

abdelmouheimen-trabelssi commented 1 month ago

Description

I have a ByteArray type in my request object defined as: val logo: ByteArray? However, during fuzz testing, the generated test input represents this field as a table string, like this:

{
    "logo": [
        "fuzzstring"
    ]
}

This causes an issue because the ByteArray is expected to be binary data, not a string or a list. How can I resolve this problem to properly handle the ByteArray during fuzz testing?