Change User Passwordfor WHMCS · Documentation
v2.4.1

Security & Support

How the module stays safe and where to get help.


Security model

  • Server-side access control — every page and endpoint repeats the WHMCS Access Control check; denied admins get a permission error, not data.
  • CSRF tokens — every state-changing action is POST plus a check_token guard.
  • POST-only — password generation, password saves and settings saves reject GET with HTTP 405, even when a valid token is present.
  • Validated input — user ids are cast to int, password length is clamped to 8–64, character types are whitelisted, and password values are decoded through WHMCS’s Sanitize.
  • Least privilege — only configured admin roles see the change-password action.
  • No secrets in logs — the raw password is never written to the audit log, and the change-password email is excluded from WHMCS’s email log.
  • Never fatal — hooks, endpoints and cron code run inside try/catch, and errors return a generic message instead of a stack trace.
  • Defence in depth — every PHP file refuses direct web access, and the bundled .htaccess blocks .tpl and .md files and the compiled-template directory on Apache.
  • Audit trail — every change is logged with actor, IP and browser user-agent.

Recommended practice

  • Tick only the admin roles that genuinely need to reset passwords.
  • Keep a retention period that fits your audit needs (0 keeps the log forever).
  • Review the Activity Log periodically for unexpected changes.

Support

  • Before reporting an issue, include your WHMCS version, the module version and the relevant Activity Log rows.
  • Licensing questions: your license key is emailed after purchase and is also in the client area under Account → My Products → manage product.
  • Product page and support: hardsoftcode.com.