-
Notifications
You must be signed in to change notification settings - Fork 182
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
Unable to make HTTP/HTTPS POST request with file #315
Comments
Thanks for opening your first issue here! Be sure to follow the issue template! |
Thanks for reporting the issue. I had a look at the cPython code but was unable to find a solution yet. Looking forward to hopefully fix it in the next few days. |
Thanks for the response. I had a quick look when I found out about this issue, but was not really able to determine where the issue lies after the |
Hey, the type error is just b'' vs string expected data, however you have the larger issue that TLS/SSL data is not being captured. I was looking into why I couldn't see https POST data today & found the SSL_read() implementation in connection_tls_io_in_cb function (src/connection_tls.c) looks to be incorrect. If you do a single SSL_read() you only obtain the headers & nothing more on a basic https POST, need to continue to append the SSL_read() data in a loop until you get an error with the expected error being SSL_ERROR_WANT_READ. Did a quick test with the below & it seems to now work, not sure if there's some events this may break as my testing was rather limited to some straight forward scripted https get/post back-and-forth. Perhaps resetting all event handlers to default at the end shouldn't happen and only do those for specific cases?
|
ISSUE TYPE
DIONAEA VERSION
CONFIGURATION
No custom configuration
OS / ENVIRONMENT
SUMMARY
When making an HTTP/HTTPS POST request, dionaea is unable to process it.
STEPS TO REPRODUCE
Spin up a container using the official dionaea image and opening port 80:
Make a POST request to port 80 also sending a file (I used Postman to test the request)
EXPECTED RESULTS
No error and a correct HTTP response
ACTUAL RESULTS
Dionaea fails due to some type error
The text was updated successfully, but these errors were encountered: