Skip to content
Mobile Write-up Intermediate

Learning iOS App Pentesting and Security Part 1

The social app used custom URL schemes without validation, allowing an attacker to craft a malicious URL that forced the app to open a phishing login page. The news app used the deprecated UIWebView without proper security controls, enabling an attacker to inject JavaScript and steal authentication tokens.

Swaroop Yermalkar Follow

Published on cobalt.io

Since beginning my journey as a core penetration tester with Cobalt in 2016, I've gained extensive experience in various types of pentesting, including mobile app security. In this three-part blog series, we'll delve deep into the world of iOS app pentesting, exploring the practical steps and the underlying rationale…

Swaroop Yermalkar (@swaroopsy), on cobalt.io

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the apps failed to validate custom URL schemes and used a deprecated web view without security controls.

Impact

An attacker could force the app to open a phishing login page, potentially stealing user credentials.

What the attacker needed

Victim clicks a link; app installed

The fix

The company implemented proper validation and security measures for their custom URL schemes.

How it was found

  1. Download the iOS app and extract its files.
  2. Analyse the source code to find custom URL schemes.
  3. Craft malicious URLs to trigger unintended actions.
  4. Create a proof of concept and report the vulnerability.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

This article describes two iOS app security issues. In the first, an app accepted special links that could make it open a fake login page, tricking users into giving away their passwords. In the second, an app used an old web viewer that didn't block malicious scripts, so an attacker could steal login tokens.

What is Mobile?

Flaws specific to Android and iOS apps: exported components, deep links, WebViews and data left on the device.

More by Swaroop Yermalkar

View all

1 more disclosed report, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Mobile app vulnerabilities

The lesson behind this report.

Flaws specific to Android and iOS apps: exported components, deep links, WebViews and data left on the device.