Crashing a Webhook Endpoint by Disguising an IP Address — $100 Bounty
The webhook URL validation on redacted.com failed to recognise IPv6-mapped IPv4 addresses as private, so submitting such an address caused a repeatable server crash instead of a clean rejection. An authenticated user could therefore trigger a denial of service on the webhook registration feature, though no outbound request was made.
Published on medium.com
Ssrf
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
redacted.com offers a webhook feature. A webhook is a URL that a user supplies so that the server can send a message to it whenever something happens. Because the URL is user-controlled, the feature is a natural SSRF surface: a user could enter an internal address, such as the server's own private network address, and try to make the server call itself or another internal system it should not be able to reach.
To prevent this, redacted.com blocks obviously dangerous addresses, including:
[redacted](localhost)[redacted](a private network address)[redacted](the address cloud servers use to expose instance metadata, a common SSRF target)
The platform also blocks common obfuscation tricks, such as writing an IP address as a plain decimal number (2852039166) instead of dotted-quad form. One format was not covered: IPv6-mapped IPv4 addresses, where a normal IPv4 address is written inside IPv6 notation, for example ::ffff:[redacted] instead of [redacted]. It is the same address in a different representation.
Setup
The write-up does not describe any special account, role or access level. The request shown uses a bearer token and a resource ID, both replaced with placeholders, which suggests an ordinary authenticated user of the webhook feature. The only tooling mentioned is curl for sending requests and Claude, used to log and compare each request and response pair side by side. No versions are given.
Finding it
The researcher worked through a checklist of known ways to disguise a blocked IP address and tried each one against the webhook feature, one at a time. The results were:
| What was tried | What happened |
|---|---|
Plain private IP ([redacted]) |
Blocked, clean error: "Invalid Hostname" |
Cloud metadata IP ([redacted]) |
Blocked, same clean error |
localhost |
Blocked, different error: "resolves to a private address" |
A domain that secretly points to a private IP (DNS rebinding, e.g. 169.254.169.254.nip.io) |
Blocked, same "resolves to private address" error |
IP written as a plain number (2852039166) |
Blocked |
IP written in octal (0251.0376.0251.0376) |
Blocked |
IPv6 localhost (::1) |
Blocked, "not found" error |
IPv6-mapped IPv4 (::ffff:[redacted]) |
Not blocked; the server crashed instead |
Every entry except the last produced a normal rejection message. The interesting signal was not a payload that worked but a payload that failed differently from all the others. A different error usually means a different code path, one that nobody tested. The researcher notes that keeping eight or more near-identical test requests straight by hand is easy to get wrong, and that comparing each request and response pair side by side is what made the odd one out stand out.
Exploitation
Step 1: send the IPv6-mapped metadata address
The request that triggered the crash, with the target replaced by redacted.com and the token and IDs replaced by placeholders:
curl -X POST "https://redacted.com/api/1.0/webhooks" \ -H "Authorization: Bearer <YOUR_TOKEN>" \ -H "Content-Type: application/json" \ -d '{ "data": { "resource": "<SOME_RESOURCE_ID>", "target": "https://[::ffff:[redacted]]" } }'
The target field carries the webhook URL. The IPv4 metadata address is wrapped in IPv6 notation and placed in square brackets, as required for a literal IPv6 host in a URL. The response came back the same way every time:
{ "errors": [{ "message": "Oops! An unexpected error occurred while processing this request. The input may have contained something the server did not know how to handle.", "phrase": "24 boring urchins hunt terribly brightly" }]}
Two details made this a provable proof of concept rather than a one-off:
- It was fully repeatable. The exact request was sent many times and crashed every time, so it was not a random glitch.
- The
phrasevalue changed on every request. That random phrase is an internal error-tracking ID generated fresh each time something crashes. Seeing it change on every attempt showed that a live server was being reached and a fresh crash caused each time, rather than a cached error page being served to everyone.
Step 2: confirm the format, not the address, is the problem
The same trick was tried with several other disguised addresses:
| Payload | Result |
|---|---|
https://[::ffff:[redacted]] |
500 crash |
https://[::ffff:[redacted]]/latest/meta-data/ |
500 crash |
https://[::ffff:[redacted]] |
500 crash |
https://[::ffff:[redacted]] |
500 crash |
Every disguised private address produced the same crash, which confirmed that the format itself was the problem, not one particular address.
Step 3: check whether any outbound request is actually made
A crash alone does not prove SSRF. If the server were also reaching out to the supplied address before crashing, the bug would be far more serious, because it could be used to steal cloud credentials. To test this, the researcher set up a simple listener on a public URL under their own control and pointed the same disguised trick at it:
The result was the same 500 crash, but nothing ever arrived at the listener. That places the bug precisely: the crash happens before the server attempts any outbound connection.
Root cause
The filter checks two things separately: whether the input is a plain private IP, and whether a hostname resolves to a private IP. It never converts an IPv6-wrapped address back into its plain IPv4 form before running those checks. The filter never converts an IPv6-wrapped address back into its plain IPv4 form before running those checks, and the code that handles the address afterwards fails on it, producing the 500. Because the failure occurs before any connection attempt, the missing normalisation currently results only in a crash rather than a working SSRF.
Impact
The researcher describes three effects, with clear limits on each.
- A blind spot in the SSRF defences. The disguised format slips past both of the platform's safety checks undetected. It is harmless today only because the crash happens first. If the code is ever changed so that the connection attempt happens even slightly earlier, the blind spot becomes a working path to internal systems or cloud credentials, with no additional bypass needed.
- A denial-of-service against the webhook registration feature. Any ordinary signed-up user, with no special access, can send this one request and reliably crash the feature on demand. Legitimate users trying to set up webhooks would be blocked by these crashes, and the engineering team gets alert noise over something that is not an infrastructure problem.
- A small information leak. Each crash message includes a unique tracking phrase. On its own it is harmless, but it lets an outsider confirm that a real production server was reached and crashed, which is a small piece of internal information a company generally would not want confirmed from outside.
The researcher explains why the issue was rated low to medium rather than critical: severity is judged on confirmed impact, not worst-case theory, and no actual outbound connection was demonstrated. If a future update lets the outbound call go through, the same bug becomes a credential-stealing SSRF.
Fix
The recommended fix is to normalise the address into one standard shape before deciding whether to trust it, rather than trying to recognise every possible disguise separately. Concretely, always unwrap an IPv6-mapped IPv4 address back to its plain IPv4 form first, then run the same private-address check that already exists. The write-up does not say whether the platform has applied a fix.
Variants to test
- IPv6-mapped IPv4 addresses in any URL-accepting feature:
::ffff:[redacted],::ffff:[redacted],::ffff:[redacted]. A positive result is a response that differs from the normal rejection, such as a 500 crash, or a connection observed on a listener you control. - The same mapped address with a path appended, such as
https://[::ffff:[redacted]]/latest/meta-data/. A positive result is the same anomalous behaviour as the bare address, showing the format rather than the path is the trigger. - The mapped address pointing at a listener you control. A positive result is an inbound request arriving at the listener, which would turn a crash into a confirmed SSRF.
- The other disguises from the checklist, decimal (
2852039166), octal (0251.0376.0251.0376),localhost,::1, and DNS rebinding domains such as169.254.169.254.nip.io, run against the same feature. A positive result is any of them behaving differently from the rest, which points to a separate code path worth chasing.
When testing any feature that accepts a URL, add IPv6-mapped IPv4 (::ffff:x.x.x.x) to the bypass checklist alongside decimal IPs, octal IPs and DNS rebinding tricks. It is an easy one for developers to miss.
What happened, in plain words
redacted.com has a feature called webhooks. A webhook is a way of telling a server: "whenever something happens here, send a message to this address." The user types that address in themselves. It is a bit like leaving a forwarding address at a post office: you write down where you want your post sent, and the post office sends it there.
That is useful, but it is also risky. If a user can type any address, a malicious user can type an internal address, one that only the company's own machines should be able to reach. The server would then be tricked into calling itself, or another machine deep inside the company network that the outside world is not supposed to touch. This kind of attack is called SSRF, short for Server-Side Request Forgery. The name sounds complicated, but the idea is simple: the server makes a request on the attacker's behalf, to a place the attacker could not reach directly.
To stop this, redacted.com blocks obviously dangerous addresses, such as:
[redacted], which always means "this computer itself" (also called localhost)[redacted], a typical address on a private home or office network[redacted], a special address that cloud servers use to store secret credentials. It is a favourite target for SSRF attacks. It is a favourite target for SSRF attacks, because reaching it can mean stealing the keys to the cloud account.
The platform also blocks well-known tricks for disguising an address, such as writing an IP address as one big plain number (2852039166) instead of the usual dotted form.
But there is one disguise they forgot: IPv6-mapped IPv4 addresses. This is an official, standard way of writing an ordinary IPv4 address inside IPv6 formatting. It looks like ::ffff:[redacted] instead of [redacted]. It is the same address wearing a different outfit.
When the researcher put that disguised address into the webhook URL field, the server did not politely reject it the way it rejected every other trick. It crashed, every single time.
The background you need first
Before the steps make sense, here are the few ideas the whole story rests on. None of them require any security knowledge, just a rough idea of how websites work.
A server is the computer somewhere else that runs a website. Your browser asks it for pages, and it answers. When you fill in a form and press a button, your browser sends the form's contents to the server, and the server decides what to do with them.
An API is the part of a website that programs talk to, rather than people. When you use a website through your browser, you see buttons and pages. An API is the same service with the buttons and pages stripped away: you send it a structured message, and it sends back a structured answer. Think of a restaurant. The dining room with menus and waiters is the website you see. The kitchen is the API: you hand over an order in a fixed format, and food comes back. You never walk into the kitchen yourself, but the order still gets made.
A token is a long string of characters that proves who you are, a bit like a wristband at an event. You show it with every request, and the server checks it before doing anything. It is a secret: anyone who has your token can act as you. In the requests below it appears as Bearer <YOUR_TOKEN>, where the real value has been replaced with a placeholder so it is not published.
A resource ID is simply the name or number of a particular thing in the system, for example one specific project or one specific item that the webhook belongs to. In the requests it appears as <SOME_RESOURCE_ID>, again replaced with a placeholder.
curl is a command-line tool for sending requests to a server by hand. Instead of clicking a button in a browser, you type out exactly what you want to send. Security researchers use it because it lets you control every detail of a request and see the raw answer.
An IP address is the number that identifies a computer on a network, like a postal address for machines. The common form, called IPv4, looks like [redacted]: four numbers separated by dots. A newer form, IPv6, is longer and uses letters and colons, and it exists because the world ran out of the old-style addresses.
A private address is an IP address that only makes sense inside a private network. It is not reachable from the open internet. [redacted] and [redacted] are examples. If an outsider can make a company's server contact a private address, they have effectively stepped inside the building.
A 500 error is the standard code a web server sends back when something on its side has gone wrong unexpectedly. It is the server's way of saying "I broke while handling this." A normal rejection, by contrast, is a polite, deliberate answer: "I understood you and I am refusing." The difference between those two kinds of answer is the heart of this whole story.
How the bug was found
The researcher did not guess this on day one. They went down a checklist of every disguise trick they knew for sneaking a blocked IP address past a filter, and tried each one against the webhook feature, one at a time. Here is roughly what that looked like:
| What was tried | What happened |
|---|---|
Plain private IP ([redacted]) |
Blocked, clean error: "Invalid Hostname" |
Cloud metadata IP ([redacted]) |
Blocked, same clean error |
localhost |
Blocked, different error: "resolves to a private address" |
A domain that secretly points to a private IP (DNS rebinding, e.g. 169.254.169.254.nip.io) |
Blocked, same "resolves to private address" error |
IP written as a plain number (2852039166) |
Blocked |
IP written in octal (0251.0376.0251.0376) |
Blocked |
IPv6 localhost (::1) |
Blocked, "not found" error |
IPv6-mapped IPv4 (::ffff:[redacted]) |
Not blocked; the server crashed instead |
A few of those rows deserve a word of explanation, because they are the tricks a filter is normally built to catch.
DNS rebinding is the sneakiest one. When you type a name like example.com into a browser, a system called DNS translates that name into an IP address, like a phone book turning a name into a number. A rebinding attack uses a domain the attacker controls and makes it point at a private address. The filter sees a harmless-looking name, but the name secretly leads somewhere private. The example 169.254.169.254.nip.io is a service that deliberately turns a name back into the address written inside it, so the name looks innocent while pointing at the cloud metadata address.
Decimal and octal notation are other ways of writing the same number. 2852039166 is the private address [redacted] written as one big number instead of four dotted parts. 0251.0376.0251.0376 is the same address written in octal, a number system with eight digits instead of ten. Both mean exactly the same machine as [redacted]. Filters that only compare the text against the dotted form miss them.
::1 is the IPv6 way of writing "this computer itself", the equivalent of [redacted].
Every entry on that list got a normal, expected rejection message, except the very last one. That is the moment worth paying attention to: not when something works, but when something fails differently from everything else. A different error usually means you have found a different path through the code, one that nobody tested.
The researcher is honest about the practical difficulty: keeping eight or more near-identical test requests straight, and noticing that one of them returned a genuinely different kind of error instead of the usual clean rejection, is easy to get wrong when you are doing it by hand and moving fast. They used Claude throughout the process to help log and compare each request and response pair side by side, which is what let that one odd result stand out instead of getting lost in a pile of near-identical failed attempts.
The proof of concept
A proof of concept, or PoC, is a small, repeatable demonstration that a bug is real. It is the difference between saying "I think this door is unlocked" and actually opening it in front of someone. Here is the exact shape of the request that triggered the crash, with the target replaced by redacted.com and the token and IDs replaced with placeholders:
curl -X POST "https://redacted.com/api/1.0/webhooks" \ -H "Authorization: Bearer <YOUR_TOKEN>" \ -H "Content-Type: application/json" \ -d '{ "data": { "resource": "<SOME_RESOURCE_ID>", "target": "https://[::ffff:[redacted]]" } }'
Line by line, in plain words:
curl -X POSTmeans "send a request of type POST". POST is the type of request used when you are sending something to the server, such as filling in a form, rather than just asking to view a page."https://redacted.com/api/1.0/webhooks"is the address being called. It is the API endpoint for webhooks: the kitchen counter where webhook orders are handed in.redacted.comstands in for the real site name.-H "Authorization: Bearer <YOUR_TOKEN>"attaches a header. A header is a small piece of extra information sent alongside a request, like the label on a parcel. This particular header carries the token, the wristband that proves who is asking.Beareris just the word that tells the server what kind of token follows.-H "Content-Type: application/json"tells the server what format the body of the request is in. JSON is a simple text format for structured data, built from names and values in curly braces. It is how programs pass information to each other.-d '{ ... }'is the body of the request, the actual order being placed. Inside it,"data"is an outer container,"resource"names which thing the webhook belongs to, and"target"is the webhook URL itself, the address the server is being asked to send messages to."target": "https://[::ffff:[redacted]]"is the payload, the disguised address. The ordinary IPv4 address[redacted]has been wrapped in IPv6 notation as::ffff:[redacted]. The square brackets are required by the URL standard whenever a literal IPv6 address is used as the host part of a web address, so they are not part of the trick, just correct syntax.
The response came back the same way every time:
{ "errors": [{ "message": "Oops! An unexpected error occurred while processing this request. The input may have contained something the server did not know how to handle.", "phrase": "24 boring urchins hunt terribly brightly" }]}
What this answer means:
"errors"is a list of problems the server is reporting. The square brackets mean it is a list, even though here it holds only one item."message"is the human-readable text. Notice that it does not say "invalid hostname" or "private address not allowed". It says an unexpected error occurred and the input may have contained something the server did not know how to handle. That is the voice of a program that fell over, not one that made a decision."phrase"is a short string of random words. It is an internal error-tracking ID: a label the server generates so that its own engineers can find this particular crash in their logs. It is not a password or a secret, just a reference number in word form.
Two details made this a solid, provable PoC rather than a one-off fluke:
- It was completely repeatable. The researcher sent this exact request many times, and it crashed every time. It was not a random glitch or a bad moment on the network.
- The
phrasevalue changed on every request. Because that random phrase is generated fresh each time something crashes, seeing a new one on every attempt proved that a live server was being reached and a real, fresh crash caused each time. If the same phrase had come back every time, it could have been a cached error page, a stored copy shown to everyone, and would have proved much less.
To be extra thorough, the researcher tried the same trick with a few other disguised addresses, to confirm it was not a one-address fluke:
| Payload | Result |
|---|---|
https://[::ffff:[redacted]] |
500 crash |
https://[::ffff:[redacted]]/latest/meta-data/ |
500 crash |
https://[::ffff:[redacted]] |
500 crash |
https://[::ffff:[redacted]] |
500 crash |
Each row is the same disguise applied to a different private address. The second one adds /latest/meta-data/ to the end, which is the path cloud servers commonly use to serve up credentials. The third and fourth wrap the localhost address and a private network address instead of the metadata address. Every one produced the same crash, which confirmed that the format itself was the problem, not something specific to one address.
The test that mattered most: is anything actually being sent?
This is the step beginners most often skip, and it is the most important one. A crash is one thing. But if the server was also secretly reaching out to that address before crashing, the bug becomes far more serious: a real SSRF, capable of stealing cloud credentials.
To find out, the researcher set up a simple listener on a public URL they controlled. A listener is a small program that does nothing except wait and record any connection that arrives, like leaving a phone switched on and seeing whether anyone calls. If the company's server really did try to contact the supplied address, the call would land on that listener and be recorded.
They then sent the same disguised trick, pointing at their own listener instead:
This request is identical to the first one except for the address in target. Instead of the cloud metadata address, it now contains [redacted], the public address of the researcher's own listener, again wrapped in the IPv6-mapped form. The idea is simple: if the server tries to connect to that address, the listener will see it.
The result was the same 500 crash, but nothing ever arrived at the listener. That places the bug precisely: the crash happens before the server attempts any outbound connection. In other words, the server falls over while still examining the address, and never gets as far as dialling it.
Why this matters
The researcher describes three effects, each with clear limits.
1. It is a hidden hole in the SSRF defences. The whole point of blocking these addresses is to stop the server being tricked into contacting places it should not. This disguised format slips past both of the platform's safety checks completely undetected. It is harmless today only because the crash happens first. But it means the filter has a blind spot nobody knew about. If the code is ever changed so that the connection attempt happens even slightly earlier, that blind spot becomes a working attack path straight to internal systems or cloud credentials, with no extra bypass work needed.
2. It is a free "break this feature" button. Any ordinary signed-up user, with no special access, can send this one request and reliably crash the webhook registration feature on demand. That is a denial of service: an attack that stops a feature working for everyone, rather than stealing anything. Legitimate users trying to set up webhooks would be blocked by these crashes, and the engineering team gets a stream of alerts over something that is not even a real infrastructure problem.
3. A small information leak. Each crash message includes that unique tracking phrase. On its own it is harmless, but it lets an outsider confirm that a real production server was reached and crashed. That is a small piece of internal information a company generally would not want an outsider to be able to confirm.
Why it was rated low to medium, not critical
It is natural to see "cloud metadata address" and assume this is a huge deal. It is not, yet, for one specific reason: the researcher proved that no actual outbound connection happens. Severity in bug bounty work is judged on confirmed impact, not worst-case theory. If a future update accidentally lets that outbound call go through, this exact bug becomes a credential-stealing SSRF overnight, which is exactly why it is worth reporting and fixing now, even though today it only crashes a server.
The fix
The core problem is this: the filter checks "is this a plain private IP?" and separately "does this hostname resolve to a private IP?", but it never converts a disguised IPv6-wrapped address back into its plain IPv4 form before checking. The fix is to always unwrap that disguise first, then run the exact same private-address check that already exists. In plain terms: normalise the address into one standard shape before deciding whether to trust it, rather than trying to recognise every possible disguise separately. The write-up does not say whether the platform has applied a fix.
Other things worth testing
If you want to look for the same kind of gap elsewhere, these are the variations the researcher suggests. In each case, a positive result means something that differs from the normal, polite rejection.
- IPv6-mapped IPv4 addresses in any feature that accepts a URL:
::ffff:[redacted],::ffff:[redacted],::ffff:[redacted]. A positive result is a response that differs from the usual rejection, such as a 500 error, or a connection seen on a listener you control. - The same mapped address with a path appended, such as
https://[::ffff:[redacted]]/latest/meta-data/. A positive result is the same odd behaviour as the bare address, which shows the format rather than the path is the trigger. - The mapped address pointing at a listener you control. A positive result is an inbound request arriving at the listener, which would turn a crash into a confirmed SSRF.
- The other disguises from the checklist, decimal (
2852039166), octal (0251.0376.0251.0376),localhost,::1, and DNS rebinding domains such as169.254.169.254.nip.io, run against the same feature. A positive result is any of them behaving differently from the rest, which points to a separate path through the code worth chasing.
Takeaways for beginner hunters
- A checklist beats a lucky guess. This bug was not found by being clever once. It was found by trying every known IP-disguise trick, one by one, until one of them behaved differently.
- Pay attention to different failures, not just failures. Nine payloads getting rejected the same way is boring. The tenth payload getting rejected in a new way is the one worth chasing.
- Always check whether anything actually happened before reporting. Pointing the same trick at a server you personally control is a simple, safe way to prove, or disprove, that something more dangerous is happening behind the scenes. It massively changes how serious your report is.
- Good bookkeeping is half the work. A lot of real bug hunting is just carefully tracking a dozen near-identical requests and responses so that you actually notice the one that is different. Do not be afraid to use tools, as the researcher did with Claude, to help keep that organised.
- Add this disguise to your own checklist. When testing any feature that accepts a URL, add IPv6-mapped IPv4 (
::ffff:x.x.x.x) alongside decimal IPs, octal IPs and DNS rebinding tricks. It is an easy one for developers to miss.
Glossary
- API: the part of a website that programs talk to, sending structured messages and getting structured answers, rather than showing pages to a person.
- Bearer token: a long secret string sent with a request to prove who is asking, like a wristband at an event.
- Cloud metadata address: the special address
[redacted], which cloud servers use to store secret credentials. - Crash: when a program hits something it cannot handle and stops working, usually answering with a generic error instead of a proper reply.
curl: a command-line tool for sending requests to a server by hand and seeing the raw answer.- Decimal IP notation: writing an IP address as one large plain number, such as
2852039166, instead of four dotted parts. - Denial of service: an attack that stops a feature working for legitimate users, rather than stealing anything.
- DNS: the system that translates a name like
example.cominto an IP address, like a phone book for the internet. - DNS rebinding: a trick where a domain the attacker controls secretly points at a private address, so a harmless-looking name leads somewhere private.
- Header: a small piece of extra information sent alongside a request, like the label on a parcel.
- IP address: the number that identifies a computer on a network, like a postal address for machines.
- IPv4: the common form of IP address, four numbers separated by dots, such as
[redacted]. - IPv6: the newer, longer form of IP address, using letters and colons, created because the world ran out of IPv4 addresses.
- IPv6-mapped IPv4 address: a standard way of writing an ordinary IPv4 address inside IPv6 formatting, such as
::ffff:[redacted]for[redacted]. Same address, different representation. - JSON: a simple text format for structured data, built from names and values in curly braces, used for programs to pass information to each other.
- Listener: a small program that waits and records any connection that arrives, used to see whether a server really tried to contact an address.
- Localhost: the address a computer uses to refer to itself,
[redacted]in IPv4 and::1in IPv6. - Octal notation: writing an IP address in a number system with eight digits instead of ten, such as
0251.0376.0251.0376for[redacted]. - Payload: the part of a request that carries the actual attack, here the disguised address in the
targetfield. - POST: the type of request used when sending something to a server, such as filling in a form, rather than just asking to view a page.
- Private address: an IP address that only makes sense inside a private network and is not reachable from the open internet, such as
[redacted]. - Proof of concept (PoC): a small, repeatable demonstration that a bug is real.
- Resource ID: the name or number identifying one particular thing in a system, such as the item a webhook belongs to.
- Server: the computer somewhere else that runs a website and answers requests.
- SSRF (Server-Side Request Forgery): an attack where a server is tricked into making a request on the attacker's behalf, to a place the attacker could not reach directly.
- 500 error: the standard code a web server sends when something on its side has gone wrong unexpectedly, meaning it broke rather than deliberately refusing.
- Webhook: a feature where a user supplies a URL and the server sends a message to it whenever something happens.