When accessing the global configuration page and modifying settings, if the logged in user has saved their login credentials in browser, their username and password will be stored in the configuration.php file in plain text for the STMP user and SMTP password
You need to address this on the Joomla CMS repo: github.com/joomla/joomla-cms