-
Notifications
You must be signed in to change notification settings - Fork 300
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Schema to send a file as request body for an API fuzzing #338
Comments
Hello @Jane2197, Thank you for reporting this issue (and the others you opened). For this one, RESTler does not currently support/recognize the "binary" format in the specification. However, you may be able to get this working by modifying the grammar manually. I've pushed some changes to the mp/formdata_fix branch, the commit message has an explanation for how to modify the grammar and dictionary to send a file as the body. If you have time to try this out, please let us know if it works for you. (If the above works for you, please leave this issue open so we can track supporting the binary format in the RESTler compiler.) Thanks, Marina |
Hi, I tried file uploading with the mentioned branch by adding required changes in grammar.py and dict.json, but observed following issues
and at the end of file
Thank you |
@Jane2197 thanks for trying this out and for the detailed logs. I see now the issue with the file upload. I will get back to you when back from vacation next week with a fix. Thanks, Marina |
Is there a schema method or specific parameter to set to include a local file as a request body when fuzzing an REST endpoint. When tried with schema type as string and format as binary in OpenAPI Specification as described here https://swagger.io/docs/specification/describing-request-body/file-upload/ and the compiled grammar when used for fuzzing doesn't show the request body as uploading a file.
The text was updated successfully, but these errors were encountered: