I'm currently evaluating ZAP for security testing of our REST services. When I ran our functional tests though ZAP as the proxy server, I encountered the following error for one of our REST service used for file upload (Content-Type: multipart/form-data).
<?xml version="1.0" encoding="UTF-8"?>
<problem xmlns="urn:ietf:rfc:XXXX-draft-ietf-appsawg-http-problem-00">
<title>Reached EOF, but there is no closing MIME boundary.</title>
<status>400</status>
</problem>
The upload is war file and the file size is around 530 KB. I tried with different file formats such as txt, pdf of the same size or bigger and received the same error. When I tried to upload a file size of 100 KB, I did not see this error. It looked like there is a size limitation in HTTP request/response with ZAP as the proxy server (intercepting proxy).
When using the direct direction with our REST services, our tests are working as expected. For further testing, I also ran our tests through Charles Debugging Proxy (
http://www.charlesproxy.com/) and Fiddler (
http://www.telerik.com/fiddler) and I did not see the same error when uploading the war file of 530 KB or bigger.
So the problem is now pointing to ZAP when it's proxying the multipart/form-data request of a bigger payload. Attached are raw HTTP request and response captured in ZAP if it helps in debugging this problem.
Please let me know if you have seen this problem in ZAP before or any suggestions on how to resolve and fix this problem.
Thanks,
Phong