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

Extend the HIDE_VERSION functionality to restrict component version to technical users #10160

Closed
andrew-mantha-rcgt opened this issue Oct 11, 2023 · 2 comments
Assignees
Labels
enhancement Adding or requesting a new feature.
Milestone

Comments

@andrew-mantha-rcgt
Copy link

Describe the problem

Component version information could be used by an attacker to find potential vulnerabilities to exploit. The Version information in the about page provides no benefit to most users and serves as a minor but potential security risk.

Describe the solution you'd like

One of two solutions:

  • Restrict Version Information only to Superusers

  • Allow hiding all version information from the UI entirely (The CLI still exists to dump all version info for troubleshooting).

Describe alternatives you've considered

No response

Screenshots

No response

Additional context

No response

@nijel nijel self-assigned this Oct 11, 2023
@nijel nijel added this to the 5.1 milestone Oct 11, 2023
@nijel nijel added the enhancement Adding or requesting a new feature. label Oct 11, 2023
@nijel
Copy link
Member

nijel commented Oct 11, 2023

Right now, HIDE_VERSION shows version information on the about page to authenticated users:

{% if not hide_version or user.is_authenticated %}
<span>{{ ver.2 }}</span>
{% endif %}

But it makes more sense to that only for superusers...

@nijel nijel closed this as completed in dd716f9 Oct 11, 2023
@github-actions
Copy link

Thank you for your report; the issue you have reported has just been fixed.

  • In case you see a problem with the fix, please comment on this issue.
  • In case you see a similar problem, please open a separate issue.
  • If you are happy with the outcome, don’t hesitate to support Weblate by making a donation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Adding or requesting a new feature.
Projects
None yet
Development

No branches or pull requests

2 participants