-
Notifications
You must be signed in to change notification settings - Fork 22
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
Switch from Unsafe Serialization API to NSSecureCoding #252
Comments
@cagatayemekci Thanks for reaching out. Can you please elaborate the issue you are facing or you are suggesting on Video SDK? Thanks. |
We are using data theorem for security issues. This application also controls the frameworks we use. This is the details Details
The following binaries within the App contain code which leverages
Apple provides the |
@cagatayemekci Thanks for the details. Can you please share which class in Video SDK you are trying to deserialize which could potentially have the problem? Also are you talking about JSON serialization/deserialization? I am not sure why would you do serialization/deserialization of Twilio video sdk class/objects. They are not in JSON. Can you please share code snippets. |
@piyushtank The following classes in the binary conform to NSCoding: |
I was out for few weeks. |
Description
NSCoding does not verify the type of object upon deserialization and therefore is vulnerable to object substitution attacks. The code can protect itself from these attacks by using NSSecureCoding instead: https://developer.apple.com/documentation/foundation/nssecurecoding?language=objc
Expected Behavior
Use NSSecureCoding instead of NSCoding
Versions
All relevant version information for the issue.
Video iOS SDK
[e.g. 5.4 via SPM]
Xcode
[e.g. 14.1]
iOS Version
[e.g. 15.6.1]
iOS Device
[e.g. iPhone 11 Pro Max]
The text was updated successfully, but these errors were encountered: