Skip to content
Info disclosure Disclosed report Beginner

LINE Profile ID leaks in OpenChat

When a user attached an image to a post in OpenChat's Note feature, the image metadata stored the user's LINE Profile ID alongside the OpenChat profile. An attacker could read that metadata to link an OpenChat participant to their real LINE profile, breaking the anonymity that OpenChat is meant to provide.

aki__0421 Follow

Originally disclosed on HackerOne

Bounty$3,000 High View original
  • Triaged in 4 days
  • Fixed in 3 months
  • Paid in 3 months
  • Disclosed after 17 months

Summary by the program

Users can participate in OpenChat using a new OpenChat profile that is distinct from the LINE profile. However, when the victim attaches an image in a post in OpenChat's Note, the ID of LINE Profile was stored together in the image's metadata. From this information, it is possible to determine the LINE user profile of OpenChat participants.

Summary by the researcher

Hackers were able to break anonymity in OpenChat.

The original report as published on HackerOne, by aki__0421. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

The original is short, so this covers everything it reports, then explains this kind of bug in general: how it works, how to test for it and how it is fixed. The general sections are about the bug class, not this target. Written with AI and checked against the original; the original is the record. 5 min read.

What the report shows

The target is LY Corporation's LINE platform, specifically the *.line.naver.jp asset, and the feature under scrutiny is OpenChat. OpenChat lets users take part in chats using a new OpenChat profile that is kept distinct from their ordinary LINE profile. That separation is the whole point: participants are meant to be able to join and post without their real LINE identity being tied to the OpenChat activity.

The researcher, aki__0421, found that this separation broke down in one specific place. When a victim attaches an image to a post in OpenChat's Note feature, the ID of the LINE Profile is stored together with the image in the image's metadata. The OpenChat profile is what other participants see, but the underlying file carries the LINE Profile ID as well.

From that stored identifier it becomes possible to work out the LINE user profile behind an OpenChat participant. In other words, the anonymity that OpenChat is supposed to provide can be broken: the researcher's summary states plainly that hackers were able to break anonymity in OpenChat.

The report does not include any request, payload, command or response, so there is no code to reproduce here. It also does not describe the exact metadata field, the image format involved, or the steps taken to extract the identifier. What it does give is the outcome: the report was rated high severity and a bounty of 3,000 USD was awarded, and it was disclosed on 27 December 2021. The report does not describe the fix.

Root cause

The report says the LINE Profile ID was stored together with the image in the image's metadata. The OpenChat profile is presented to other users, but the file itself still references the real account.

Impact

Within the report's own framing, the impact is loss of anonymity. From the stored identifier it is possible to determine the LINE user profile of OpenChat participants. Because OpenChat is built around the idea that the OpenChat profile is separate from the LINE profile, this defeats a core privacy promise of the feature. The report does not claim account takeover, message access or any other escalation; the demonstrated consequence is de-anonymisation of OpenChat participants.

How this kind of bug works

Metadata leakage happens when an application accepts a file from a user and stores or serves it without sanitising the descriptive data the file carries. Images in particular can hold EXIF, XMP and other chunks, and applications frequently add their own fields during processing: uploader identifiers, timestamps, device details, software versions, internal paths. If any of those fields is tied to an account that is supposed to be separate from the identity shown in the interface, the file becomes a side channel that links the two.

The bug class is common in features that promise pseudonymity or anonymity: forums with display names, marketplaces with seller aliases, chat products with separate profiles. The pseudonym is enforced in the UI and the API responses, but a background job or a shared upload handler still stamps the real account onto the artefact. Defences are straightforward in principle: strip all metadata on ingest, generate fresh files server-side, and never write internal or account identifiers into anything a user can download. Allow-list the fields you keep rather than deny-listing the ones you remove.

How to test for it

  1. Identify features where the product presents a separate identity: aliases, pseudonymous profiles, anonymous posting, guest modes. Note where users upload files in those features.
  2. Upload a file you control and download it again, or fetch it as another user would. Compare the bytes you sent with the bytes you received.
  3. Inspect the returned file for metadata. Look at EXIF and XMP blocks, comment fields, and any trailing data after the image payload. Tools that dump all metadata at once are more useful than viewers that show only common tags.
  4. If you find an identifier, determine what it maps to. Does it match your real account, a session value, an internal user number, or a value returned elsewhere in the API for your real profile? A positive result is an identifier in the file that resolves to the identity the feature is supposed to hide.
  5. Confirm the link from a second account: fetch the same file as a different user and check that the identifier is still present and still resolves.

Common false positives: a random upload ID that does not map to any account; a timestamp or device string that is not identifying; metadata that is present in the file you uploaded yourself and was simply passed through unchanged (still worth reporting if it links identities, but be precise about what it proves); and identifiers that only the uploader can see because of access controls on the file.

How it is fixed

The standard fix is to re-encode uploaded images server-side and write a clean file with no inherited metadata, keeping only what the feature needs. Where metadata must be preserved, allow-list the specific fields. Never populate metadata with account identifiers, internal user numbers, session values or hostnames. Apply the same treatment to thumbnails and derived sizes, since these are often generated by a different code path that reintroduces the problem. Add tests that assert downloaded files contain no account-linked fields.

Hunting notes

This class tends to hide in secondary upload paths: comment attachments, note and post images, avatar processing, export and archive features, and anything that generates files asynchronously. Recon signals include features that advertise separate profiles or anonymity, upload endpoints that return a download URL, and responses that expose numeric user identifiers elsewhere in the API, which give you something to match against. To make a report land, show the identifier in the file, show what it resolves to, and show that another participant can retrieve the file. Keep the demonstration minimal and avoid touching other users' data.

The original is short, so this covers everything it reports, then explains this kind of bug in general: how it works, how to test for it and how it is fixed. The general sections are about the bug class, not this target. Written with AI and checked against the original; the original is the record. 6 min read.

What happened, in plain words

LINE is a messaging app made by LY Corporation. Inside LINE there is a feature called OpenChat, which lets people join public group chats using a separate profile, an "OpenChat profile", that is meant to be different from their normal LINE profile. The whole point of this feature is that other people in the chat should not be able to tell who you really are on LINE. You show up under your OpenChat name, not your real LINE identity.

A researcher called aki__0421 found that this separation did not hold in one place. OpenChat has a feature called Note, where participants can write posts, and a post can have an image attached. When someone attached an image to a Note post, the person's LINE Profile ID was stored together in the image's metadata.

Metadata is extra information stored inside a file alongside the actual picture. Think of it like the writing on the back of a printed photo: the picture is what you see, but the back can carry a name, a date or a location. Most people never look at it, but it travels with the file wherever the file goes.

So the picture looked anonymous, but the file carried a hidden label saying which real LINE account had uploaded it. From that stored identifier it was possible to determine the LINE profile of the person who posted it. The researcher's summary puts it simply: hackers were able to break anonymity in OpenChat.

The report was rated high severity, a bounty of 3,000 USD was paid, and it was disclosed on 27 December 2021. The report does not include any request, payload, command or response, so there is no code to show here, and it does not describe the exact metadata field, the image format, or the steps used to pull the identifier out. It also does not describe how the problem was fixed.

Why this matters

OpenChat is built on a promise: the OpenChat profile is separate from the LINE profile. People join chats on that understanding. If the real account can be recovered from a posted image, that promise is broken. The report does not claim that accounts were taken over or that messages were read. The demonstrated consequence is that participants could be identified, which is a privacy failure in its own right.

In general, how this kind of bug works

This is a metadata leak. It happens when an application accepts a file from a user and stores or serves it without cleaning the descriptive data the file carries. Image files can hold blocks of extra data, such as EXIF (a standard place where cameras and software record details about a photo) and XMP (a similar standard for descriptive information). Applications often add their own fields during processing: who uploaded the file, when, from what device, with what software, or internal file paths.

If one of those fields is tied to an account that is supposed to be hidden, the file becomes a side channel: a way of learning something the interface deliberately does not show. The pseudonym is enforced on screen and in the normal responses, but a background job or a shared upload handler still stamps the real account onto the file.

This pattern shows up wherever a product promises pseudonymity or anonymity: forums with display names, marketplaces with seller aliases, chat products with separate profiles. The fix is straightforward in principle. Strip all metadata when a file is received, generate a fresh clean file on the server, and never write account identifiers into anything a user can download. Keep an allow-list of the fields you want to preserve rather than a deny-list of the ones you remove, because a deny-list always misses something.

In general, how to test for it

  1. Find features where the product shows a separate identity: aliases, pseudonymous profiles, anonymous posting, guest modes. Note where users upload files in those features.
  2. Upload a file you control, then download it again, or fetch it the way another user would. Compare what you sent with what you got back.
  3. Inspect the returned file for metadata. Look at EXIF and XMP blocks, comment fields, and any data trailing after the image itself. A tool that dumps all metadata at once is more useful than a viewer that shows only the common tags.
  4. If you find an identifier, work out what it maps to. Does it match your real account, a session value, an internal user number, or a value the API returns elsewhere for your real profile? A positive result is an identifier in the file that resolves to the identity the feature is supposed to hide.
  5. Confirm the link from a second account: fetch the same file as a different user and check that the identifier is still there and still resolves.

Some results look like findings but are not. A random upload ID that maps to no account proves nothing. A timestamp or device string that identifies nobody is not a leak. Metadata that was already in the file you uploaded and was simply passed through unchanged is worth reporting only if it links identities, and then you must be precise about what it proves. Identifiers that only the uploader can see, because the file is access-controlled, are not exposed to other participants.

In general, how it is fixed

The standard fix is to re-encode uploaded images on the server and write a clean file with no inherited metadata, keeping only what the feature needs. Where metadata must be preserved, allow-list the specific fields. Never fill metadata with account identifiers, internal user numbers, session values or hostnames. Apply the same treatment to thumbnails and resized versions, because these are often produced by a different code path that can reintroduce the problem. Add tests that check downloaded files contain no account-linked fields.

In general, where to look

This class of bug tends to hide in secondary upload paths: comment attachments, note and post images, avatar processing, export and archive features, and anything that generates files in the background. Useful signals are features that advertise separate profiles or anonymity, upload endpoints that return a download link, and responses elsewhere in the API that expose numeric user identifiers, which give you something to match against. To make a report land, show the identifier in the file, show what it resolves to, and show that another participant can retrieve the file. Keep the demonstration minimal and do not touch other users' data.

Glossary

  • OpenChat: a LINE feature for joining public group chats using a separate profile.
  • OpenChat profile: the identity a user shows inside OpenChat, kept distinct from their normal LINE profile.
  • LINE Profile ID: the identifier for a user's real LINE account.
  • Note: the OpenChat feature where participants write posts, which can include an attached image.
  • Metadata: extra information stored inside a file alongside its actual content, such as who created it or when.
  • EXIF: a standard block inside image files where cameras and software record details about a photo.
  • XMP: a similar standard for storing descriptive information inside files.
  • Metadata leak: a bug where hidden descriptive data in a file reveals information the product meant to keep private.
  • Side channel: a way of learning something that the normal interface deliberately does not show.
  • Pseudonymity: using a name or profile that is separate from your real identity.
  • Anonymity: being unidentifiable, so that others cannot work out who you are.
  • De-anonymisation: working out the real identity behind an anonymous or pseudonymous account.
  • Data minimisation: the principle of collecting and storing only the data you actually need.
  • Allow-list: a list of the specific items you permit, with everything else excluded.
  • Deny-list: a list of the specific items you block, with everything else allowed.
  • Re-encode: to rebuild a file from its image content on the server, producing a fresh file without the old metadata.
  • Bounty: a payment made to a researcher who reports a valid security bug.
  • Severity: a rating of how serious a bug is, here rated high.

More by aki__0421

View all

2 more disclosed reports, best first.

More from LY Corporation

View all

The newest disclosed reports for this program.

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.