Install
Works with Drupal: 8.xUsing Composer to manage Drupal site dependencies
Alternative installation files
Release notes
test(Collector): Add unit testing for entity collector
955b0a0 by Mateu Aguiló Bosch (G)
:100644 100644 bdf018d... 3258f7e... M simple_oauth_extras/tests/src/Functional/RolesNegotiationFunctionalTest.php
:100644 100644 37273e8... b6bd824... M src/ExpiredCollector.php
:100644 100644 7ce3f37... 254c346... M tests/src/Unit/EntityCollectorTest.php
security(Scopes): Addess security vulnerabilities related to scopes
7358d41 by Mateu Aguiló Bosch (G)
1. When using Client Credentials any user with the shared credentials for this client would be able to gain the administrator role. (This was not originally reported here.)
2. After issuing a valid token, if the roles assigned to the user or the client changed the access tokens previously issues could grant the original roles.
In order to exploit vulnerability #1 a user would need to have access to the client's id and password and they should be using the client credentials grant. Nonetheless this constitutes a privilege escalation issue, I dim it to be `Critical`.
Vulnerability #2 is mitigated by the fact that there needs to be a well timed chain of events. The exploit would only be accessible during the time after an special edit (remove a role) was made and the token was expired. In addition to that a token using that particular role being removed would have to exist prior to the edit. Nonetheless this constitutes a privilege escalation issue, I dim it to be `Less Critical`.
:100644 100644 43201ad... 37efd41... M simple_oauth.info.yml
:100644 100644 6987b78... 9fc786c... M simple_oauth.module
:100644 100644 9d9bf24... 0d72681... M simple_oauth_extras/simple_oauth_extras.info.yml
:000000 100644 0000000... bdf018d... A simple_oauth_extras/tests/src/Functional/RolesNegotiationFunctionalTest.php
:100644 100644 47c503c... 37273e8... M src/ExpiredCollector.php
:100644 100644 0f0f9bb... 03f6660... M src/HttpMiddleware/BasicAuthSwap.php
:100644 100644 ca129bf... d2ae661... M src/Plugin/Oauth2GrantManager.php
:100644 100644 4dc52b6... 4686fd3... M src/Repositories/ScopeRepository.php
:000000 100644 0000000... 3ecd4b2... A tests/src/Functional/RequestHelperTrait.php
:100644 100644 48ccbba... 3f2f48e... M tests/src/Functional/TokenBearerFunctionalTestBase.php
refactor(Client Credentials): Redundant Refresh Token dependency (#2878197 by nuez, e0ipso)
fa8cd17 by nuez (G)
:100644 100644 5d4c755... 110e715... M simple_oauth_extras/src/Plugin/Oauth2Grant/ClientCredentials.php
:100644 100644 3911e0d... 2879c4e... M src/Plugin/Oauth2GrantBase.php