SonarQube Security Hotspot: Make sure this weak hash algorithm is not used in a sensitive context here. #126

Closed
opened 2026-05-29 11:44:33 -05:00 by forgejo-actions · 1 comment

SonarQube security hotspot needs review.

SonarQube key: e2409b9a-a58e-47d1-955e-39c293bc402c
Category: others
Vulnerability probability: LOW
Location: myvideogamelist:tests/Feature/Auth/EmailVerificationTest.php:44
Message: Make sure this weak hash algorithm is not used in a sensitive context here.

https://sonarqube.linuxbox.ninja/security_hotspots?id=myvideogamelist&hotspots=e2409b9a-a58e-47d1-955e-39c293bc402c

SonarQube security hotspot needs review. **SonarQube key:** `e2409b9a-a58e-47d1-955e-39c293bc402c` **Category:** `others` **Vulnerability probability:** `LOW` **Location:** `myvideogamelist:tests/Feature/Auth/EmailVerificationTest.php:44` **Message:** Make sure this weak hash algorithm is not used in a sensitive context here. https://sonarqube.linuxbox.ninja/security_hotspots?id=myvideogamelist&hotspots=e2409b9a-a58e-47d1-955e-39c293bc402c <!-- sonarqube:hotspot:e2409b9a-a58e-47d1-955e-39c293bc402c -->
jimmyb self-assigned this 2026-06-01 23:54:14 -05:00
Member

Reviewed and fixed by b4ac348. This hotspot pointed at the second direct sha1() call in tests/Feature/Auth/EmailVerificationTest.php, on the invalid-hash verification path. The prior email verification hotspot fix removed both direct sha1() calls from this test: valid verification now uses Laravel's real VerifyEmail notification URL, and the invalid case uses a signed URL with a plain nonmatching hash value. Verified again with php artisan test --compact tests/Feature/Auth/EmailVerificationTest.php (3 passed, 6 assertions).

Reviewed and fixed by b4ac348. This hotspot pointed at the second direct sha1() call in tests/Feature/Auth/EmailVerificationTest.php, on the invalid-hash verification path. The prior email verification hotspot fix removed both direct sha1() calls from this test: valid verification now uses Laravel's real VerifyEmail notification URL, and the invalid case uses a signed URL with a plain nonmatching hash value. Verified again with php artisan test --compact tests/Feature/Auth/EmailVerificationTest.php (3 passed, 6 assertions).
Codex closed this issue 2026-06-01 23:55:24 -05:00
Sign in to join this conversation.
No milestone
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
MyVideoGameList/myvideogamelist.com#126
No description provided.