mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-11-30 12:14:36 -05:00
The PTZ control modules build camera URLs with user:password@ from the ControlAddress or Path, or pwd= from the ControlDevice, and log them at Debug, Info or Error. Info and Error reach the Logs table at the default settings, which every System=View user can read. There are over fifty modules, most written for one camera and not testable here. ZoneMinder::Logger gets redactCredentials(), urlForLog() and logFingerprint() (the same fp: tag as the web and C++ logs), and logPrint() passes every message through redactCredentials(): userinfo is removed from URLs and from scheme-less host specs, pass/pwd/secret parameters are replaced, token= and auth= are fingerprinted, WS-Security password digests and JSON password fields are replaced. Host, port, path and the other parameters stay in the line. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>