RTC NPM Resource Changed PR-5.2-dev Pending

User tests: Successful: Unsuccessful:

avatar brianteeman
brianteeman
17 May 2024

The script used to check for symbols in a password contains a limited set of symbols.

Pull Request for Issue #41552 .

Summary of Changes

This PR updates the script to ensure that all of the the list of special characters/symbols provided by OWASP are also included. They are the punctuation characters that are present on standard US keyboard.
The entire set of special characters/symbols is now @$!#?=;:*-_€%&()`´+[]{}'"|,.<>/~^

I added the additional comment to the licence so that it is clear that the script has been changed from the original which probably should have been done earlier when the regex was updated to include @

Testing Instructions

This change will require using a prebuilt package or npm ci to test

Set the password requirements in the User Options Password Minimum Symbols to 1

Try to create a password containing letters and one or more symbols from this list
+[]{}'"|,.<>/~^

Actual result BEFORE applying this Pull Request

The password will be rejected

Expected result AFTER applying this Pull Request

The password will be accepted

Link to documentations

Please select:

  • Documentation link for docs.joomla.org:

  • No documentation changes for docs.joomla.org needed

  • Pull Request link for manual.joomla.org:

  • No documentation changes for manual.joomla.org needed

avatar brianteeman brianteeman - open - 17 May 2024
avatar brianteeman brianteeman - change - 17 May 2024
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 17 May 2024
Category JavaScript Repository NPM Change
388d8e3 17 May 2024 avatar brianteeman final
avatar brianteeman brianteeman - change - 17 May 2024
Labels Added: NPM Resource Changed PR-5.2-dev
avatar ceford ceford - test_item - 18 May 2024 - Tested successfully
avatar ceford
ceford - comment - 18 May 2024

I have tested this item ✅ successfully on 388d8e3


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/43484.

avatar viocassel viocassel - test_item - 18 May 2024 - Tested successfully
avatar viocassel
viocassel - comment - 18 May 2024

I have tested this item ✅ successfully on 388d8e3


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/43484.

avatar alikon alikon - change - 19 May 2024
Status Pending Ready to Commit
avatar alikon
alikon - comment - 19 May 2024

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/43484.

avatar pe7er pe7er - change - 21 May 2024
Labels Added: RTC
avatar Quy
Quy - comment - 21 May 2024
avatar brianteeman
brianteeman - comment - 21 May 2024

i will not be at a pc for the foreseeable future - feel free to update it directly

2836081 21 May 2024 avatar Quy cs
avatar pe7er pe7er - change - 22 May 2024
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2024-05-22 11:32:25
Closed_By pe7er
avatar pe7er pe7er - close - 22 May 2024
avatar pe7er pe7er - merge - 22 May 2024
avatar pe7er
pe7er - comment - 22 May 2024

Thank you @brianteeman and @Quy !

avatar MaverickPOZ
MaverickPOZ - comment - 15 Oct 2024

The symbol "_" is not correctly recognized as a sybmol, so password "0123456789_Aa" is incorrect and throw error that mininum 1 special character (symbol) is required (only after registration form submit). Progress bar is green while paste password. Can You fix that ?

avatar brianteeman
brianteeman - comment - 15 Oct 2024

@MaverickPOZ please do not comment on closed PR - hardly anyone will see it. Please create a new issue

avatar petrovicivan
petrovicivan - comment - 18 Oct 2024

Default installation shows 0 in Password Options->Minimum Symbols

avatar MaverickPOZ
MaverickPOZ - comment - 18 Oct 2024

And so what ? This is default ... Please put 1 in that field and use _ in password.

avatar petrovicivan
petrovicivan - comment - 19 Oct 2024

https://docs.joomla.org/J5.x:Enhancing_Password_Security_with_Symbolic_Characters#Additional_Notes

This change applies to all Joomla 5.2 installations. Administrators should ensure that the password requirements are updated in the configuration to take full advantage of the enhanced security features.

For the end-user enable by default would be better option

avatar MaverickPOZ
MaverickPOZ - comment - 21 Oct 2024

Ivan, I have fresh J5.2 and nothing change - please provide password with symbol _ "TestPassword123With_" at https://demo.webster-studio.pl/login?view=registration - the bar is green but after submit form the error with "no symbol" appear.

avatar MaverickPOZ
MaverickPOZ - comment - 21 Oct 2024

Screenshot
Screenshot 2024-10-21 at 09-21-55 Login - Joomla 5 Demo Webster-Studio

avatar ceford
ceford - comment - 21 Oct 2024

This is a separate issue. The client side password has passed validation there but the server side uses this:

$nsymbols = preg_match_all('[\W]', $value, $smatch);

on line 133 of libraries/src/Form/Rule/PasswordRule.php - I think underline does not count as a non-word character.

Add a Comment

Login with GitHub to post a comment