How I was able to Harvest other Vine users IP address
A Vine API endpoint used by the repost mechanism returned the IP address of the user who made a repost, encoded as a decimal number. Anyone who knew a reposted post ID could query the endpoint and convert the value back into a real IP address.
Published on bugbountypoc.com
When I testing vine API Endpoints I noticed a Endpoint what uses in Vine Repost mechanism which have a Parameter Named “ipAddress” with some plain Number value Like :- 2130706433. We all know Ip Addresses look like :- 127.0.0.1 .
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.
Context
Vine was a short-form video service, and this write-up looks at its public API rather than the mobile app. The feature in question is the repost mechanism: when a user reposts another user's Vine, the API returns a timeline object describing that repost. The researcher had previously reported a separate information disclosure on the same API that exposed Vine users' phone numbers, IP addresses and emails, which was patched and paid at 7560 USD. This report covers a second, narrower leak of the same kind of data through the repost timeline endpoint.
The vulnerable endpoint is:
https://vine.co/api/timelines/users/<POST ID>
Setup
No special accounts, roles or tooling are described beyond a browser and an online IP-to-decimal converter. The only precondition is that the victim has reposted a Vine on their timeline, since the leak appears in the repost object of the timeline response. The researcher notes that many Vine users reposted posts, so suitable targets were common.
Finding it
While testing Vine API endpoints, the researcher noticed that the endpoint used by the repost mechanism carried a parameter named ipAddress whose value was a plain number, for example:
2130706433
An IP address is normally written in dotted form such as [redacted], so the value looked invalid at first. A search explained it: the number is the IP address converted to long/decimal format. Passing it through an online converter returned the real IP address. The researcher used this converter:
http://www.smartconversion.com/unit_conversion/IP_Address_Converter.aspx
So the field was not garbage data; it was a real client IP address, just encoded as an integer.
Exploitation
Step 1: find a reposted post ID
The victim has to have reposted any Vine on their timeline. Copy the post ID of a reposted Vine and place it in the endpoint path. The researcher's example is:
https://vine.co/api/timelines/users/1293308695089926144
Step 2: request the timeline endpoint
Visiting that URL returns a JSON timeline object. The researcher notes that the contents were removed by Twitter's security team before publication, so the response below is shown with the sensitive values masked:
"repost": { "username": "██████", "verified": 0, "vanityUrls": [], "created": "█████", "repostId": ████████, "avatarUrl": "██████", "userId": ████, "user": { "username": "█████████", "verified": 0, "vanityUrls": [], "avatarUrl": "█████████", "userId": ████, "private": 0, "location": █████████ }, "flags|platform_lo": 1, "postId": ███, "ipAddress": 2130706433 , "flags|platform_hi": 1 }
The important part is the ipAddress field inside the repost object. It holds the decimal form of an IP address, here 2130706433. The surrounding fields describe the reposting user and the original post, but the leak is the IP value.
Step 3: convert the value back
Take the ipAddress number and run it through the converter linked above to obtain the dotted IP address. That is the IP address associated with the repost, returned to anyone who requests the timeline for that post ID.
Root cause
The API serialises the client IP address into the repost object returned by the timeline endpoint, and only obscures it by encoding it as a long/decimal integer. Encoding is not access control: anyone who knows the conversion can recover the address. The report does not describe the server-side code, so the exact reason the field was included in the response is not stated; likely the repost record was serialised with more fields than the client needed, and the decimal format was assumed to be opaque. The report also does not say whether authentication or authorisation checks existed on the endpoint; the researcher simply visited the URL and received the data.
Impact
An attacker can harvest the IP addresses of Vine users who have reposted content, by requesting the timeline endpoint for their reposted post IDs and converting the ipAddress value. Because the value is a plain integer in a JSON response, the leak is trivial to automate across many post IDs. The report does not state how many users were affected or whether the endpoint required a session. The researcher reported the issue on 26 January and was paid 5040 USD on 25 February. The main report is at https://hackerone.com/reports/201300.
Fix
The obvious remediation is to stop returning ipAddress in the timeline response at all, rather than relying on decimal encoding, and to review other endpoints that serialise repost or user objects for the same field.
Variants to test
- Request timeline and feed endpoints for other object types (likes, comments, follows) and look for numeric fields that convert to plausible IPv4 addresses.
- Check whether the same
ipAddressfield appears in responses for private accounts or for posts the caller should not see. - Try the decimal value against an IP converter and confirm it maps to a routable address rather than a placeholder such as
[redacted]. - Look for the same field name in mobile API responses, which often serialise more fields than the web client.
- Test whether the endpoint enforces authentication: request it without cookies and see whether the
ipAddressfield is still present.
What happened, in plain words
Vine was a service where people posted very short videos. Like most apps, it had a website and a mobile app, and behind both of them sat a server that answered questions in a structured way. That question-and-answer layer is called an API (application programming interface). Think of a restaurant: you do not walk into the kitchen, you tell the waiter what you want, and the waiter brings back a plate. The API is the waiter. Your browser or phone app asks the API for something, and the API sends back data.
This story is about one particular question you could ask the Vine API: "show me the timeline of a user". A timeline is the list of posts a user has made or shared. The answer came back as JSON, which is just a text format for data, with labels and values, a bit like a very strict shopping list.
The problem was that the answer included a piece of information it should never have included: the IP address of a Vine user. An IP address is the number that identifies a device on the internet, roughly like a postal address for a computer. If you know someone's IP address, you learn something about where they connect from, and that is private information.
The researcher had found a similar leak on the same API before. That earlier report exposed Vine users' phone numbers, IP addresses and email addresses, and it was fixed and paid at 7560 USD. This write-up is about a second, smaller leak of the same kind of data, this time through the repost feature.
A repost is when a user shares somebody else's Vine on their own timeline, the same idea as retweeting. When you look at a timeline, the API describes each repost with a small block of data. That block contained the IP address, hidden only by writing it as a long number instead of the usual dotted form.
The vulnerable endpoint
An endpoint is one specific address on a server that answers one specific kind of request. The endpoint in this report is:
https://vine.co/api/timelines/users/<POST ID>
Read it piece by piece:
https://is the secure version of the protocol browsers use to talk to websites.vine.cois the domain, the name of the server./api/signals that this path is meant for programs rather than for a human-facing web page./timelines/users/says which feature you are asking about: the timeline of a user.<POST ID>is a placeholder. A post ID is a unique number that identifies one post. The angle brackets are not typed literally; you replace them with a real number.
So the whole URL means: "give me the timeline data for the user associated with this post ID".
Setup
There is not much to prepare. The write-up describes only a browser and an online converter for turning the long number back into a normal IP address. No special account, no special role, no special software.
The one condition is that the victim has reposted a Vine on their timeline, because the leak appears inside the repost part of the answer. The researcher notes that many Vine users reposted posts, so finding a suitable target was easy.
Finding it
While testing Vine API endpoints, the researcher noticed that the endpoint used by the repost mechanism carried a parameter named ipAddress. A parameter is a named value inside a request or a response, like a field on a form: a label plus the value that goes with it. The value here was a plain number, for example:
2130706433
An IP address is normally written in dotted form, such as [redacted], four numbers separated by dots. So at first the value looked like nonsense. A web search explained it: the number is the same IP address converted to long/decimal format, meaning the four parts are packed into one single integer. It is the same address wearing a different costume.
To turn it back, the researcher used an online converter:
http://www.smartconversion.com/unit_conversion/IP_Address_Converter.aspx
You paste the number in, and the tool gives you the dotted address. So the field was not junk data. It was a real client IP address, just written as an integer. A client here means the device that made the original request, in other words the user's own computer or phone.
Exploitation
Step 1: find a reposted post ID
The victim has to have reposted some Vine on their timeline. Copy the post ID of a reposted Vine and put it into the endpoint path in place of <POST ID>. The researcher's example is:
https://vine.co/api/timelines/users/1293308695089926144
Why this step? Because the leak lives inside the repost data, and the timeline endpoint is the door that returns repost data. You need a post ID that belongs to a repost so that the answer contains the repost block.
Step 2: request the timeline endpoint
Visiting that URL in a browser returns a JSON timeline object. The researcher notes that the contents were removed by Twitter's security team before publication, so the response below is shown with the sensitive values masked:
"repost": { "username": "██████", "verified": 0, "vanityUrls": [], "created": "█████", "repostId": ████████, "avatarUrl": "██████", "userId": ████, "user": { "username": "█████████", "verified": 0, "vanityUrls": [], "avatarUrl": "█████████", "userId": ████, "private": 0, "location": █████████ }, "flags|platform_lo": 1, "postId": ███, "ipAddress": 2130706433 , "flags|platform_hi": 1 }
Line by line, in plain words:
"repost": { ... }is one labelled block inside the answer. Everything inside the curly braces belongs to the repost description."username": "██████"is the name of the account that reposted. The black blocks are where the security team hid the real value."verified": 0is a flag, a yes/no value written as a number.0means no, the account was not verified."vanityUrls": []is an empty list. The square brackets mean list, and nothing inside means the account had no custom URLs."created": "█████"is when the repost was created, hidden here."repostId": ████████is the unique number of the repost itself."avatarUrl": "██████"is the link to the profile picture."userId": ████is the unique number of the reposting user."user": { ... }is a second block nested inside the first, describing the user in more detail.- Inside that nested block,
"username","verified","vanityUrls","avatarUrl"and"userId"mean the same as above. "private": 0says the account was not private."location": █████████is the profile location, hidden here."flags|platform_lo": 1and"flags|platform_hi": 1are internal markers about the platform, not interesting for us."postId": ███is the ID of the original post that was reposted."ipAddress": 2130706433is the important one. This is the IP address of the client, written as a decimal integer.
The surrounding fields describe the reposting user and the original post. The leak is the ipAddress value. The value is written as a decimal integer and can be converted back to a dotted IP address with the converter.
Step 3: convert the value back
Take the ipAddress number and run it through the converter linked above to get the dotted IP address. That is the IP address associated with the repost, handed out to anyone who asked for the timeline of that post ID.
Why this is a vulnerability
The class of problem here is an information disclosure: the server reveals data to someone who should not have it. That means the server lets you reach an object, here the timeline of a post, simply by naming its ID, without checking whether you are allowed to see it. The everyday comparison is a hotel where room numbers are the only key: if you know that room 214 exists, you can walk in, because nobody checks whether the room is yours.
The API wrote the client IP address into the repost block and only disguised it by encoding it as a long integer. Encoding is not access control. Encoding changes how data looks; access control decides who may see it. Writing your house key in a different alphabet does not stop anyone from reading it. Anyone who knows the conversion can recover the address, and the conversion is public knowledge.
The report does not describe the server-side code, so the exact reason the field was included is not stated. A likely explanation is that the repost record was serialised with more fields than the client needed, and the decimal format was assumed to be opaque. The report also does not say whether authentication or authorisation checks existed on the endpoint; the researcher simply visited the URL and received the data.
Impact
An attacker can harvest the IP addresses of Vine users who have reposted content, by requesting the timeline endpoint for their reposted post IDs and converting the ipAddress value. Because the value is a plain integer in a JSON response, the leak is trivial to automate across many post IDs. The report does not state how many users were affected or whether the endpoint required a session.
The researcher reported the issue on 26 January and was paid 5040 USD on 25 February. The main report is at https://hackerone.com/reports/201300.
Fix
The obvious remediation is to stop returning ipAddress in the timeline response at all, rather than relying on decimal encoding, and to review other endpoints that serialise repost or user objects for the same field.
Variants to test
- Request timeline and feed endpoints for other object types (likes, comments, follows) and look for numeric fields that convert to plausible IPv4 addresses.
- Check whether the same
ipAddressfield appears in responses for private accounts or for posts the caller should not see. - Try the decimal value against an IP converter and confirm it maps to a routable address rather than a placeholder such as
[redacted]. - Look for the same field name in mobile API responses, which often serialise more fields than the web client.
- Test whether the endpoint enforces authentication: request it without cookies and see whether the
ipAddressfield is still present.
Glossary
- API: the layer a program uses to ask a server for data or actions, like a waiter between you and the kitchen.
- Access control: the rules that decide who is allowed to see or do what.
- Authentication: proving who you are, usually by logging in.
- Authorisation: deciding what an authenticated user is allowed to do.
- Client: the device or program making a request, such as your browser or phone.
- Cookie: a small piece of data a site stores in your browser so it can recognise you on later requests, often used to keep you logged in.
- Decimal / long format: a way of writing an IP address as one single integer instead of four dotted numbers.
- Encoding: changing how data is written without hiding it from anyone who knows the format.
- Endpoint: one specific URL on a server that answers one specific kind of request.
- Harvest: to collect data in bulk, often automatically.
- IDOR (Insecure Direct Object Reference): a flaw where naming an object's ID is enough to reach it, with no check that it is yours to see.
- Information disclosure: a flaw where the server reveals data to someone who should not have it.
- IP address: the number that identifies a device on a network, like a postal address for a computer.
- IPv4: the common four-number form of an IP address, such as
[redacted]. - JSON: a text format for structured data, made of labels and values.
- Loopback address:
[redacted], the address a machine uses to refer to itself. - Parameter: a named value inside a request or response, a label plus its value.
- Post ID: the unique number that identifies one post.
- Repost: sharing another user's post on your own timeline.
- Response: the data a server sends back after a request.
- Serialise: to turn an internal object into a text format such as JSON for sending.
- Session: a logged-in state a server keeps for you across requests.
- Timeline: the list of posts a user has made or shared.
- Vulnerability: a weakness in software that lets someone do something they should not be able to do.