Skip to content
Info disclosure Write-up Intermediate

Exploiting iOS app for fun and profit

A learning platform's iOS app opened user-supplied links in a WebView that leaked the logged-in user's cookies, including the authentication token, to the linked site. An attacker could post a comment containing a link to their own server and take over the account of any user who clicked it.

Bijan Murmu Follow

Published on web.archive.org

Hi readers , I hope everyone doin’ well . In this blog I’m gonna share one of my recent finding on iOS app .This app highly used in India and currently it’s on top charts under education section .

Bijan Murmu (@0xbijan), on web.archive.org

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 WebView was misconfigured so that cookies for the app's domain were attached to requests for any URL loaded in it, including third-party sites.

Impact

An attacker could take over the account of any user who clicked the malicious comment link, gaining access to that user's email, phone number, permissions and tokens.

What the attacker needed

A user account able to comment; victim taps the attacker's link; attacker controls a server to receive cookies

The fix

The WebView should be configured so cookies are only sent to the app's own domain, and the auth token should not be stored in a cookie that a WebView can forward to other sites.

How it was found

  1. Post a comment on a teacher's post containing a link to the attacker's server.
  2. Wait for another user to tap the link in the comment.
  3. The link opens in the app's WebView and the user's cookies are sent to the attacker's server.
  4. Use the captured cookie, which holds the auth token, to call the app's API as the victim.

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.

A WebView is a mini browser built into an app. This app let people post links in comments, and when another user tapped one, the app's built-in browser sent that user's login cookies to the linked website. Because the login token was stored in those cookies, the attacker could use it to sign in as the victim.

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

More by Bijan Murmu

View all

8 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.