To make a long story short, a client phone was compromised and used to make illicit calls. An investigation revealed a port forwarding entry to the phone's web UI, which is "protected" by a 6 digit numeric password. We're assuming this was compromised, and are now trying to figure out how they got an extension password from there (it's not available to the UI, nor is it contained in the config file backups you can retrieve from the web UI.) One thing they can do via the web UI is change the registration server.
I know the password is never sent in clear text, but I think the main purpose of the challenge/response authentication is to ensure that the client is who they say they are, for the server's protection. I don't know how much protection is afforded to the client. So, my question: if an endpoint attempts registration against a malicious SIP server, can that server obtain the SIP credentials?