Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make links in the login page visually obvious #11474

Merged
merged 2 commits into from
Jan 23, 2025

Conversation

oussama-taoufiq
Copy link

@oussama-taoufiq oussama-taoufiq commented Dec 27, 2024

Page / Screen Title
Defect Dojo login
Page URL / Screen ID
https://demo.defectdojo.org
Error Title
Creating links that are not visually evident without color vision
Error Severity
Serious
Status
Fail
Accessibility Issue
[Description of issue] "I forgot my password" and "I forgot my username" are links without underline and its not visually evident without color vision.

[Impact on users] Users may not know that they are links and can be misleading.

[Pattern] Within the login page.

[Sample of code] <a id="reset-password" href="/password_reset/">I forgot my password</a>

Remediation
[Recommendation]
Please remove styles on the hyperlinks so that it is visually easy to know that its an hyperlink.

[Additional Resources]
https://www.w3.org/WAI/WCAG21/Techniques/failures/F73
https://www.w3.org/WAI/WCAG21/Techniques/general/G182

"I forgot my password" and "I forgot my username" are links without underline and its not visually evident without color vision.
@github-actions github-actions bot added the ui label Dec 27, 2024
Copy link

dryrunsecurity bot commented Dec 27, 2024

DryRun Security Summary

The pull request involves a routine CSS style update to the "dojo.css" file, adding color styles for specific password-related link elements without introducing any security vulnerabilities.

Expand for full summary

Summary:

The code changes in this pull request appear to be a routine update to the application's CSS styles, specifically related to the styling and layout of the "dojo/static/dojo/css/dojo.css" file. The changes include adding styles for the "form ul li a#reset-password" and "form ul li a#forgot-username" elements, setting their color to RGB(51, 122, 183). From an application security perspective, these changes do not introduce any obvious security vulnerabilities, as they are focused on the visual styling of the application and do not seem to affect any security-critical functionality. Overall, this code change is likely intended to improve the user interface and user experience of the application.

Files Changed:

  • dojo/static/dojo/css/dojo.css: This file has been updated to include new styles for the "form ul li a#reset-password" and "form ul li a#forgot-username" elements, setting their color to RGB(51, 122, 183). These changes are focused on the visual styling of the application and do not appear to have any direct security implications.

Code Analysis

We ran 9 analyzers against 1 file and 0 analyzers had findings. 9 analyzers had no findings.

View PR in the DryRun Dashboard.

@oussama-taoufiq
Copy link
Author

@mtesauro, @grendel513
The changes to the dojo/templates/dojo/login.html file change the appearance of the two links to be more visible for accessibility reasons and do not affect how authentication works.
Does using inline styling cause any problem? If I use external CSS file for my changes will be better?

@Maffooch
Copy link
Contributor

Maffooch commented Jan 3, 2025

Does using inline styling cause any problem? If I use external CSS file for my changes will be better?

Yes, please make that change. There is nothing wrong with inline styles, but we already have a styles file here that would be a more appropriate place.

@oussama-taoufiq
Copy link
Author

Does using inline styling cause any problem? If I use external CSS file for my changes will be better?

Yes, please make that change. There is nothing wrong with inline styles, but we already have a styles file here that would be a more appropriate place.

The inline styles from the login.html page have been removed and have been put into the dojo.css styles file.

@mtesauro
Copy link
Contributor

@oussama-taoufiq Looks like you've got a bunch of unrelated files in this PR. Can you please clean that up so we can approve this PR?

@oussama-taoufiq
Copy link
Author

@mtesauro done. I cleaned the PR of the unrelated files and keep only the styles file.

Copy link
Contributor

@mtesauro mtesauro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved

@Maffooch Maffooch merged commit 9d773a0 into DefectDojo:dev Jan 23, 2025
73 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants