[BUGFIX] Réduire au maximum l’exposition du jeton de réinitialisation de mot de passe (temporaryKey) dans les URL (PIX-24167) - #17421
Open
lego-technix wants to merge 2 commits into
Conversation
|
Choisir les applications à déployer :
Important N'oubliez pas de déployer l'API pour pouvoir accéder aux fronts et/ou à l’API MaDDo. |
lego-technix
force-pushed
the
pix-24167-fix-sensitive-data-in-check-password-reset-demand-url
branch
from
September 9, 2026 11:57
a934cab to
573b239
Compare
lego-technix
marked this pull request as ready for review
September 9, 2026 12:00
nlepage
approved these changes
Sep 9, 2026
lego-technix
force-pushed
the
pix-24167-fix-sensitive-data-in-check-password-reset-demand-url
branch
from
September 9, 2026 14:47
573b239 to
44a713e
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
☀️ Problème
Cette PR est la suite de #17203 qui avait déjà bien réduit l’exposition d’informations sensibles passées dans les URL.
Mais il reste encore le jeton de réinitialisation de mot de passe (temporaryKey) qui est présent dans un chemin d’URL et qui va être donc présent dans toutes les requêtes côté serveur.
⛱️ Proposition
Utiliser un fragment d’URL (hash), qui n’est jamais envoyé aux serveurs, pour transmettre le jeton de réinitialisation de mot de passe (temporaryKey) au frontal Pix App.
🧴 Remarques
ℹ️ On fait le choix de ne pas chercher pas à gérer l’ancienne route
/changer-mot-de-passe/:temporary_keycar :/changer-mot-de-passe/:temporary_keyva rediriger l’utilisateur sur la page de connexion de Pix App, et le réflexe de l’utilisateur va être de refaire une nouvelle demande et il obtiendra à ce moment un nouveau lien, avec la nouvelle solution avec fragment (hash), qui fonctionnera cette fois.🏊 Pour tester
La RA de Pix API peut envoyer des emails (la variable d’environnement
MAILING_ENABLEDa été mise àtrue).https://app-pr17421.review.pix.fr/changer-mot-de-passe#YYYet non de la formehttps://app-pr17421.review.pix.fr/changer-mot-de-passe/YYY