Consider this hypothetical situation:
Bob and Eve's apps are installed on the same iPhone. Bob's app is running and binds to localhost:8080 to listen for AJAX calls from its own UIWebView
. Eve's app runs in the background and tries to interfere with Bob's app by making AJAX calls to localhost:8080.
Two questions:
Assuming Eve's app knows Bob's AJAX API, will her calls be successful? (i.e. does iOS sandbox traffic on localhost?)
Is it possible for Eve's app to sniff the traffic Bob's app is generating?