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

Remove unnecessary localization logic #4038

Merged
merged 1 commit into from
May 16, 2024
Merged

Conversation

MDeLuise
Copy link
Contributor

Description

This pull request addresses an XSS vulnerability by removing unnecessary localization logic from the console.jsp file. The original code dynamically set the locale based on request parameters, which could potentially be exploited by malicious users. Since our system does not support multiple languages, we replaced the dynamic logic with a static default locale of "en" to mitigate the XSS risk.

Removed unnecessary localization logic that dynamically set the locale based on request parameters to mitigate a XSS vulnerability. Since our system does not support multiple languages, replaced it with a static default locale of `en`.
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 16.67%. Comparing base (c215cc9) to head (7412f03).
Report is 4 commits behind head on develop.

Additional details and impacted files

Impacted file tree graph

@@              Coverage Diff              @@
##             develop    #4038      +/-   ##
=============================================
- Coverage      16.71%   16.67%   -0.04%     
  Complexity        22       22              
=============================================
  Files           2009     2009              
  Lines          52223    52223              
  Branches        4437     4437              
=============================================
- Hits            8728     8708      -20     
- Misses         43092    43112      +20     
  Partials         403      403              

see 2 files with indirect coverage changes

@Coduz Coduz added Bug This is a bug or an unexpected behaviour. Fix it! Console GWT This issue/PR is related to Admin Web Console labels May 16, 2024
@Coduz Coduz merged commit e8938c2 into eclipse-kapua:develop May 16, 2024
32 of 33 checks passed
@MDeLuise MDeLuise deleted the fix-xss branch May 16, 2024 15:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug This is a bug or an unexpected behaviour. Fix it! Console GWT This issue/PR is related to Admin Web Console
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants