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

[IMP] http_routing: Avoid returning verbose errors #588

Open
wants to merge 1 commit into
base: 15.0
Choose a base branch
from

Conversation

VEscaname
Copy link

@VEscaname VEscaname commented Mar 20, 2024

Description of the issue/feature this PR addresses:
Returning verbose errors presents a vulnerability to subsequent attacks by sharing information that could be used to find and exploit vulnerabilites.

Current behavior before PR:
Errors can be displayed in an error page with a full traceback for debugging

Desired behavior after PR is merged:
The traceback sent to the template for the error page now displays a hash instead. This hash will match a hash that will accompany the error within the log, so that errors raised can still be debugged

Related Task T#77665

Screenshot from 2024-03-20 11-31-12

Screenshot from 2024-03-20 11-31-33

@VEscaname
Copy link
Author

@hugho-ad @moylop260 @xmglord Could you please take a look?

@moylop260
Copy link

could you share a video/screenshots about the output to the user and output in the logger, please?

Returning verbose errors presents a vulnerability to subsequent attacks
by sharing information that could be used to find and exploit
vulnerabilites. To fix this, the traceback sent to the template for the
error page now displays a hash instead. This hash will match a hash that
will accompany the error within the log, so that errors raised can still
be debugged
@VEscaname VEscaname force-pushed the 15.0-avoid_verbose_errors-vescaname branch from d21ba24 to 7dbf25b Compare March 20, 2024 16:30
@VEscaname
Copy link
Author

could you share a video/screenshots about the output to the user and output in the logger, please?

Sure thing. Here is the link to the video. I also added the requested screenshots to the PR description

@moylop260
Copy link

@mart-e

I'm curious what Odoo thinks about

@mart-e
Copy link

mart-e commented Mar 21, 2024

@moylop260 as explained by my collegue by email, we don’t really consider this as an issue as the code is open source anyway. At least in term of security, might be different for a UX point of view but it’s hidden for visitors anyway.
Also, it’s easy to hide it by customizing http_routing.http_error if needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants