-
-
Notifications
You must be signed in to change notification settings - Fork 521
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
Digest authentication no longer works #247
Comments
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
The problem remains only on digest authentication. also with the test on your RTSPAllTheThings tool. |
This comment has been minimized.
This comment has been minimized.
Since this issue is the most detailed out of the 3 describing the same issue, I'll keep this one and close the other ones as duplicates. Currently the status on this issue is that I've spent a great deal of time trying to understand what's going on, and I'm completely dumbfounded. It turns out that even reverting to the original commit where digest auth was added, and where in the PR there were reproducible examples to verify that it worked, running the exact same commands no longer works on any of my machines. I suspected a bug introduced in a recent version of curl, but that doesn't seem to be the case. Modifying the code in any way in Cameradar didn't seem to solve this issue at all either. I guess I'll need to seek help from someone with more experience with curl, or to switch to another method for making RTSP requests altogether. |
So after some investigation and a bounty on stackoverflow, it seems like it's a curl issue: curl/curl#4750 A solution could be to download a specific curl version when building the binary in docker, but this means that building the binary manually ( I'll write some fixes and documentation this weekend, and I'll try to help on fixing the issue in curl. |
Perfect, thank you very much. I await your instructions. I can't wait to get the most out of your tool. Thanks again. |
Hi @vincyrei ! It should be fixed on master now, I'll push the fixed docker image to the repository now :) You can run |
It's pushed on DockerHub under the tags Also, if you prefer to use the binary version, just make sure that your version of the Let me know if it works for you, and thanks for your patience 🙏 |
Now it works great. In my case with a HIKVISION DS-2CD2345FWD-I camera I had to modify the parameters --attack-interval duration to avoid a problem like this: Perform failed for "rtsp: // admin: 4321@192.168.10.64: 554 /" ( auth 3): curl: Failure when receiving data from the peer. |
@vincyrei Ah glad to hear that. It's interesting that you got this error and that the interval solved it. Is the camera you're accessing on the same network as the attacking host? Are you sure the network is reliable? |
The host is on the same network. the network is reliable. I think it's a matter of speed of requests. probably due to a method of protection. it doesn't happen with other cameras. maybe a new hikvision firmware |
Ah, very interesting :) I'll try to get my hands on one of those to see if I can do smth about it :p |
i get something like this : Perform failed: curl: Unsupported protocol |
@jeretc Which version of Cameradar are you using? This issue has been fixed in the latest version. |
hi, do you have some information on how to install older libcurl. i installed cameradar using go. i have the same issue. |
Hi @jepunband You can find download links to all curl versions at https://curl.se/download.html |
Context
Both binary and docker releases
Any commit since digest authentication was added
Environment
Any OS
Issue
Making any requests with digest authentication causes the following issue:
While when using basic authentication or no authentication, streams are accessed without any issue, and this log never appears.
The text was updated successfully, but these errors were encountered: