• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
RE: NSSecureCoding with containers (or, is NSArray lying?)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: NSSecureCoding with containers (or, is NSArray lying?)


  • Subject: RE: NSSecureCoding with containers (or, is NSArray lying?)
  • From: André Francisco <email@hidden>
  • Date: Fri, 17 Jul 2015 13:03:51 +0000
  • Importance: Normal

Hm. I was specifically thinking of unrecognised selector exceptions, although I might have came up with a much more dangerous scenario: recognised selectors.  What happens if the instantiated class *does* recognise the selector, but it doesn't quite do what you think it does. Say, -open, or -unlock. How dangerous is it to call such a selector on an instance of unknown type? Quite, I think. And it might lead to exploits. I guess that it's not safe to assume that without type checking the contained instances you'll be safe from exploits. But definitely the most immediate threat is just crashing the app.
Cheers.

> Subject: Re: NSSecureCoding with containers (or, is NSArray lying?)
> From: email@hidden
> Date: Fri, 17 Jul 2015 09:52:33 +1000
> CC: email@hidden; email@hidden
> To: email@hidden
>
>
> > On 16 Jul 2015, at 12:17 pm, André Francisco <email@hidden> wrote:
> >
> > This can easily crash an app if I get a type that I'm not expecting, even if it implements NSSecureCoding.
>
>
> Actually, probably not. It will likely start throwing exceptions all over the place, which *may* cause termination, but it won’t crash in a way that could lead to an exploit.
>
> —Graham
>
>

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Follow-Ups:
    • Re: NSSecureCoding with containers (or, is NSArray lying?)
      • From: Tony Parker <email@hidden>
References: 
 >NSSecureCoding with containers (or, is NSArray lying?) (From: André Francisco <email@hidden>)
 >Re: NSSecureCoding with containers (or, is NSArray lying?) (From: Roland King <email@hidden>)
 >RE: NSSecureCoding with containers (or, is NSArray lying?) (From: André Francisco <email@hidden>)
 >Re: NSSecureCoding with containers (or, is NSArray lying?) (From: Graham Cox <email@hidden>)

  • Prev by Date: Re: C Sharp?
  • Next by Date: Re: C Sharp?
  • Previous by thread: Re: NSSecureCoding with containers (or, is NSArray lying?)
  • Next by thread: Re: NSSecureCoding with containers (or, is NSArray lying?)
  • Index(es):
    • Date
    • Thread