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.61k stars 303 forks source link

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

Open abdelmouheimen-trabelssi opened 5 months ago

abdelmouheimen-trabelssi commented 5 months 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?