-
Notifications
You must be signed in to change notification settings - Fork 11.1k
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
Breaking security release 5.6.36 #25515
Comments
I completely understand breaking stuff for security reasons, but unlike the cookie serialization stuff this didn't even get a tweet, let alone a mention in the documentation even though it broke a huge amount of applications. |
I agree, some heads up should've been given at least, a lot of people now are experiencing this issue and refactoring could take some time. |
This is still open after 19 days? |
There has been many issues opened about this and I don't understand neither why all of them are still ignored.
The best way would be to do the replacement only for strings containing HTML, which would take way too much time and would result in a very ugly code mixing two different syntaxes. @at-dro proposed a solution 10 days ago in #25408 that sounds good. Is there any chance this could be implemented? |
I for now reverted the change by replacing the ViewServiceProvider with: #25408 (comment). Until I am able to replace all occurrences and/or a fix or comment saying there won't be a fix comes... this at least allows me to move forward and keep being up-to-date with Laravel 5.7. |
I gave up wishing for a fix and removed Anyway, I've devised some regex to replace Step1: Remove simple Step2: Remove Be sure to make a commit before doing the replacements, in case something breaks. |
I downgraded and locked the laravel-framework dependency. I will wait a few weeks more for this one, it really broke everything in so many ways.... so I'll hope a clean solution will be found, before renaming everything. |
Same here |
I'm reverting this entire dumpster fire. Will just document if you use @lang its up to you to escape. |
An incomplete version of this was almost added to Laravel last year [1], but then removed again by Taylor Otwell (the creator of Laravel) [2]. To really make this work, it is necessary to use an extended HtmlString class. [1] laravel/framework@1fa7222#diff-aebbba80d9a2718c0fe6105c28bd4813 [2] laravel/framework#25515 (comment)
The security release 5.6.36 escapes the output of
@lang
calls (d3c0a36). This broke a lot of applications and even Laravel features like the links of simple pagination and the user verification email (#25408, #25430, #25501).But there is still no additional information on the release (AFAIK), not even a crucial entry in the upgrade guide.
As suggested by @stayallive, can't we just escape the parameters? Shouldn't the application's language files be considered a secure input?
The text was updated successfully, but these errors were encountered: