-- HikaShop version -- : 6.8.2 business
-- Joomla version -- : 6.2.1
-- PHP version -- : 8.3
-- Browser(s) name and version -- : Chrome 158.0
Code:
Hello,
I found a problem with the "Hikashop Google Products Plugin" (HikaShop 6.8.2, Joomla 6.2.1).
The fields "FTP User Name" (user_name) and "FTP Password" (google_password) have showon="enable_auto_update:1", so they are hidden when "Enable Auto Update" is set to No. They are still part of the form and are submitted on save.
The browser's password manager sees a text field followed by a password field and fills them with the saved Joomla administrator login. The user can't see it, because the fields are hidden. On save, the administrator username and password are stored in plain text in the plugin params in #__extensions, and from there they go into every database backup and site copy. Clearing the fields doesn't help: the browser fills them again at the next save.
Steps to reproduce:
1. Save the Joomla administrator login in the browser's password manager.
2. Open System > Manage > Plugins > Hikashop Google Products Plugin. Leave "Enable Auto Update" set to No.
3. Click Save.
4. Look at the params of the plugin in #__extensions: user_name and google_password contain the administrator login and password.
Suggested fix: add autocomplete attributes to both fields in google_products.xml (the <config> section, and the <params> section too if HikaShop's own interface uses it):
<field name="user_name" ... autocomplete="off" />
<field name="google_password" ... autocomplete="new-password" />
Browsers don't fill saved passwords into a field marked "new-password". Joomla's text and password fields already support the autocomplete attribute.
Workaround until then: switch "Enable Auto Update" to Yes, type any dummy text into both fields, switch back to No and save. The browser doesn't overwrite fields that already have a value.
Thank you.