Unreal Dragon
Unreal Dragon

Reputation: 191

Send post data securely from iPhone

I have the following issue: I've understood how to create a secure login between an iPhone app and a WebServer (SSL,Https). My question is after creating the session token, how do I make sure that if a hacker intercepts it, in the subsequent POST requests I receive data from the same user?

I ask this because I would have to send the session token each time a request is made right? (to be able to identify the user).

I want to prevent multiple things:

I have been looking at:

Cookies from what I've seen can be easily traced and see what data is inside them.

Maybe I'm not asking the right question here so it could actually be how can I make sure the data I receive is from the correct user and the correct application?

Upvotes: 2

Views: 175

Answers (1)

wireharbor
wireharbor

Reputation: 163

The purpose of SSL around your POST requests is to prevent interception by a third-party in transit. If a hacker can get to it, it means the token was either leaked on the client (rooted device), server (insecure application logging/debugging) or they broke SSL. (unlikely)

You could perform some advanced checking by capturing device UDID (apple doesn't like this) or comparing to source IP, but it is going to be a lot of effort for questionable security improvement.

Just ensure everything sensitive is in SSL and you should be ok.

Upvotes: 1

Related Questions