Skip to content
Info disclosure Write-up Beginner

A picture that steals data

A researcher found that Jira renders images embedded in markdown comments from arbitrary third-party URLs, so a commenter can make every viewer's browser fetch a URL they control. This leaks each viewer's IP address and request headers to the attacker's server.

Sergey Kashatov Follow

Published on medium.com

Twitter: https://twitter.com/iframe0x01 Have a good hunting)

Sergey Kashatov, on medium.com

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 application rendered user-supplied markdown image references without restricting them to trusted or proxied origins, so viewers' browsers made direct requests to attacker-controlled hosts.

Impact

Anyone who viewed the comment would have their IP address and request headers disclosed to the attacker; the author notes such reports are only accepted where data can be stolen at scale, such as chat messages.

What the attacker needed

Ability to post comments with markdown; victim views the comment; attacker-controlled logging server

The fix

The author suggests proxying all objects from third-party resources and adding a Content Security Policy (CSP).

How it was found

  1. Insert an image reference in a Jira comment using markdown syntax.
  2. Point the image at a URL on a server you control that logs incoming requests.
  3. Post the comment so other users view it.
  4. Observe the incoming requests, including viewer IP addresses and headers, on your server.

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.

When a web page shows an image, your browser has to download it from wherever the image lives. If a site lets users paste an image link from any server, the browser of everyone who views that page contacts that server, and the server owner sees their IP address (the number identifying their internet connection) and some request details. Here Jira allowed such external image links in comments, so the poster could collect data about all readers.

What is Info disclosure?

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

More by Sergey Kashatov

View all

1 more disclosed report, 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.