Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[ErrorRenderer] Security fix: hide sensitive error messages#34158

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
yceruto merged 1 commit intosymfony:4.4fromdunglas:error-renderer-security
Oct 28, 2019

Conversation

@dunglas
Copy link
Member

QA
Branch?4.4
Bug fix?yes
New feature?no
Deprecations?no
Ticketsn/a
LicenseMIT
Doc PRn/a

This PR fixes a security issue. Exception messages must not be displayed except when debugging, because they can contain sensitive data including credentials.
For instance, PDO and Doctrine throw exception with message such asThe details are: SQLSTATE[HY000] [1045] Access denied for user 'root'@'db.example.com' (using password: NO) revealing internal details about the infrastructure usful for an attacker.

Also, I still think that ErrorRenderer should be removed in favor of using the Serializer directly (see#33650 (comment)). I'll try to open some PRs to do that in tomorrow.

@yceruto
Copy link
Member

yceruto commentedOct 28, 2019
edited
Loading

Absolutely agree with these changes!

@ycerutoycerutoforce-pushed theerror-renderer-security branch fromca4e97f tod7d7f22CompareOctober 28, 2019 23:42
@yceruto
Copy link
Member

Thank you@dunglas.

yceruto added a commit that referenced this pull requestOct 28, 2019
…s (dunglas)This PR was merged into the 4.4 branch.Discussion----------[ErrorRenderer] Security fix: hide sensitive error messages| Q             | A| ------------- | ---| Branch?       | 4.4| Bug fix?      | yes| New feature?  | no <!-- please update src/**/CHANGELOG.md files -->| Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->| Tickets       | n/a| License       | MIT| Doc PR        | n/aThis PR fixes a security issue. Exception messages must not be displayed except when debugging, because they can contain sensitive data including credentials.For instance, PDO and Doctrine throw exception with message such as `The details are: SQLSTATE[HY000] [1045] Access denied for user 'root'@'db.example.com' (using password: NO)` revealing internal details about the infrastructure usful for an attacker.Also, I still think that ErrorRenderer should be removed in favor of using the Serializer directly (see#33650 (comment)). I'll try to open some PRs to do that in tomorrow.Commits-------d7d7f22 [ErrorRenderer] Security fix: hide sensitive error messages
@ycerutoyceruto merged commitd7d7f22 intosymfony:4.4Oct 28, 2019
@Tobion
Copy link
Contributor

Showing the exception message should be based on the status code. 4xx error are client errors which are meant for clients. So not showing the error message would make it useless.

@yceruto
Copy link
Member

@Tobion I addressed your comment in#34197.

@dunglasdunglas deleted the error-renderer-security branchOctober 31, 2019 09:45
fabpot added a commit that referenced this pull requestNov 4, 2019
…yceruto)This PR was merged into the 4.4 branch.Discussion----------[ErrorRenderer] Show generic message in non-debug mode| Q             | A| ------------- | ---| Branch?       | 4.4| Bug fix?      | no| New feature?  | no| Deprecations? | no| Tickets       | -| License       | MIT| Doc PR        | -I agree with@Tobion here#34158 (comment), so let's always show the detail message, but for 5xx errors we'll send a generic message instead./cc@dunglas wdyt?Commits-------45f1a5e Show generic message in non-debug mode
symfony-splitter pushed a commit to symfony/security-bundle that referenced this pull requestNov 4, 2019
…yceruto)This PR was merged into the 4.4 branch.Discussion----------[ErrorRenderer] Show generic message in non-debug mode| Q             | A| ------------- | ---| Branch?       | 4.4| Bug fix?      | no| New feature?  | no| Deprecations? | no| Tickets       | -| License       | MIT| Doc PR        | -I agree with@Tobion heresymfony/symfony#34158 (comment), so let's always show the detail message, but for 5xx errors we'll send a generic message instead./cc@dunglas wdyt?Commits-------45f1a5ee06 Show generic message in non-debug mode
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@ycerutoycerutoyceruto approved these changes

Assignees

No one assigned

Projects

None yet

Milestone

4.4

Development

Successfully merging this pull request may close these issues.

4 participants

@dunglas@yceruto@Tobion@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp