Skip to content

[5.1 08-28-2019] Runtime: Hook the ObjC runtime with an untrusted demangler. #27015

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

jckarter
Copy link
Contributor

@jckarter jckarter commented Sep 4, 2019

Explanation: We don't want objc_getClass and NSClassFromString to be able to feed arbitrary symbolic reference pointers into the Swift runtime.

Scope: Possible security hole if untrusted strings can be fed to NSClassFromString

Issue: rdar://problem/54724618.

Risk: Low

Testing: Swift CI

Reviewed by: @mikeash

We don't want objc_getClass and NSClassFromString to be able to feed arbitrary symbolic reference
pointers into the Swift runtime. Fixes rdar://problem/54724618.
@jckarter jckarter requested a review from a team as a code owner September 4, 2019 02:20
@jckarter
Copy link
Contributor Author

jckarter commented Sep 4, 2019

@swift-ci Please test

@najacque najacque merged commit 3d28333 into swiftlang:swift-5.1-branch-08-28-2019 Sep 4, 2019
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.

2 participants