Actions
BUG #4238
opendev #4299: [SQA] : Auth module
[SQA] Create New Password: Password containing HTML/script tags fails on Sign In
Description
Description¶
Module/Section: Agency → Create New Password
Profile: Agency
Issue Category: Functional
On the Create New Password page, a password containing HTML/script tags can be successfully set, but the same password fails during Sign In, resulting in an incorrect password error.
This indicates inconsistent password handling and missing input sanitization between the reset and authentication flows.
Steps to Reproduce¶
- Go to Forgot Password and submit an email with an existing account.
- Open the verification link and navigate to Create New Password.
- Enter
S!<script>alert(1)</script>as New Password and Confirm Password. - Submit to reset the password (success message appears).
- Go to Sign In and attempt to log in using the same email and password.
- Observe the error message.
Expected Result¶
Passwords containing HTML/script tags should be either:
- Rejected or sanitized consistently, or
- If accepted, should authenticate successfully after reset.
Actual Result¶
The password is accepted during reset but fails during Sign In, causing an incorrect password error.
Attachments¶
Impact Area:¶
Root Cause:¶
Additional Info¶
- Tested By: Aman
Actions