-
-
Notifications
You must be signed in to change notification settings - Fork 6.9k
Fix #20232: Fix regression introduced in GHSA-cjcc-p67m-7qxm while attaching behavior defined by __class array key
#20232
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
Conversation
…havior defined by `__class` array key
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #20232 +/- ##
=========================================
Coverage 64.93% 64.93%
- Complexity 11389 11391 +2
=========================================
Files 430 430
Lines 36912 36912
=========================================
Hits 23970 23970
Misses 12942 12942 ☔ View full report in Codecov by Sentry. |
__class keyGHSA-cjcc-p67m-7qxm while attaching behavior defined by __class array key
|
I'm afraid that this restores vulnerability fixed in 628d406. Now you can pass behavior as |
|
Will it help if we swap condition so |
|
Probably, but IMO it should not even check for |
|
Ok, I'll submit a new version tomorrow. |
Fix restored vulnerability after #20232
Just spotted this problem after upgrading to the latest version to fix CVE.
Context: configuration via
Yii2::createObject()allows creating an object via__classdefinition. But after the changes in the 628d406, this option was forgotten. This PR restores forgotten behavior.