Skip to content
SSRF Write-up Intermediate

The Unusual Case of Status code- 301 Redirection to AWS Security Credentials Compromise

A misconfigured routing rule allowed an attacker to make the server fetch arbitrary URLs, leading to server-side request forgery. The attacker used this to access AWS EC2 instance metadata, including security credentials, though the IAM role had restricted permissions.

Avinash Jain Follow

Published on medium.com

#### Avinash Jain (@logicbomb1)

Avinash Jain (@logicbomb_1), 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.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 7 min read.

Context

This is a write-up of a chain found while testing India's leading fintech company, as the author describes it. The application is written in ASP.net and runs on Windows IIS/10.0, which the author says is visible from the response headers alone.

The feature at the centre of the finding is the "My account" page. Normally a request to /myaccount executes the myaccountApi.MyProfile action. The author's interest was in how ASP.NET Core MVC routing maps incoming URLs to actions, and in what happens when the path after /myaccount is not a normal sub-route.

Image for post
MVC Architecture From the original on medium.com

The article opens with the MVC architecture diagram above to frame that discussion: routing middleware matches the URL of an incoming request and maps it to an action, and bad routing logic or improper code architecture can make misconfigured routing perform unintended functions.

Setup

No accounts, roles or credentials are described. The only tooling named is:

  • A browser and manual inspection of response headers to fingerprint the stack.
  • Requestbin, used to inspect and debug HTTP requests. The author notes it serves almost the same purpose as Burp Collaborator.
  • A whois lookup, used to interpret the addresses seen in x-forwarded-for.

The precondition for the whole chain is simply that the target exposes the /myaccount route with the routing behaviour described below.

Finding it

The stack was identified from the response headers:

Image for post
Application is over Windows IIS server and written in ASP.net From the original on medium.com

To understand how the routing rule might have been written, the author first appended garbage to the root URL:

As expected, this returned 404 not found. The behaviour changed on the "My account" page. Appending the same kind of garbage there:

returned a 301 redirection back to the route the request came from, https://redacted.com/myaccount.

The next test appended a random HTTP URL instead of garbage:

The result was the same redirection to evilzone.org, but the URL in the address bar stayed the same, https://redacted.com/myaccount/http://evilzone.org. In the author's reading, that means the page was loaded within the server, most likely sent to the upstream server as is.

The author's reconstruction of the logic behind the code is:

Text
For a URL path like /myaccount, the myaccountApi.MyProfile action will be executed, for the URL path having HTTP or HTTPs protocol, like /myaccount/^(http|https)://(.*),accept it and pass it to the upstream server and for anything not matching any other condition, executing the same action as myaccountApi.MyProfile.

The author's explanation for why the code was left like this is that it looks like testing code meant for a staging environment, pushed to production through negligence, together with misconfigured rules in the upstream proxy.

Exploitation

Step 1: Confirm the request reaches an external host

To inspect and debug the HTTP requests, the author used Requestbin and made this request:

Image for post
Image for post From the original on medium.com

The response header contained two IPs in the x-forwarded-for header, which the author calls weird. A whois lookup showed the first IP was the author's router IP, which is expected, and the second IP belonged to the server IP of redacted.com, that is, of the upstream proxy server. The redirection seen in the first step was therefore becoming a server-side redirection, not just a client-side one. If the redirection happens server side, the author reasoned, there is a good chance of SSRF.

The author's sketch of how the upstream proxy might have been configured:

Text
# server context, here the victim.com is the value which is passed #by MVC action.location /myaccount/* {    proxy_set_header HOST $host;    proxy_set_header X-Forwarded-Proto $scheme;    proxy_set_header X-Real-IP $remote_addr;    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for,    $client_ip ;    proxy_pass http://victim.com/;}. . .

Step 2: Internal port scan through the SSRF

The author tested for SSRF by hitting localhost on different ports. First port 80:

This returned 200 status OK, meaning the port is open, which the author notes is obvious since the application is running on it. Then a different port, 21:

Image for post
Status code 000 From the original on medium.com

The response was status code 000, not 200, which confirmed the port might be closed or filtered. This was the author's first and simplest SSRF test case: an internal server port scan.

Step 3: Confirm the application is on AWS

Looking further at the response headers, the X-Amz-Cf-Id and cloudfront keywords confirmed that the application is hosted on AWS.

Image for post
X-Amz-Cf-Id and cloudfront keyword From the original on medium.com

Step 4: Read the instance metadata

With the cloud confirmed, the author called the AWS instance metadata API at http://[redacted]/latest/meta-data through the vulnerable route:

The metadata was returned.

Step 5: Read the SSH public key

Next, the author called the public keys path of the metadata API:

Image for post
SSH Public key From the original on medium.com

Access to the SSH public key was obtained.

Step 6: Read the AWS security credentials

At this point the author had SSRF, could scan internal ports and could read EC2 metadata. The remaining goal was the AWS security credentials, described in the article as the credentials AWS uses to identify an instance to the rest of the Amazon EC2 infrastructure. The call went to the identity credentials path of the metadata API:

As expected, the author was able to get hold of the credentials. The IAM role attached to the EC2 instance, however, appeared to have very restricted permissions, so the risk level attached to the finding was low.

Root cause

The chain starts with routing logic that treats any path segment beginning with an HTTP or HTTPS protocol after /myaccount as a URL to pass to the upstream server, and falls back to the myaccountApi.MyProfile action for anything else. The author's reading is that this was staging test code that reached production, combined with misconfigured rules in the upstream proxy. The author's sketch of the proxy configuration shows the passed value being used as the proxy target, which would turn what looks like a redirect into a server-side fetch. The requests to internal addresses such as [redacted] and the link-local metadata address [redacted] were answered, which the author attributes to the server-side redirection.

Impact

An attacker who can reach the /myaccount route can make the server issue requests to addresses supplied in the path, including internal ones. In this case that allowed an internal port scan of localhost, reading the EC2 instance metadata, reading the instance's SSH public key, and reading the EC2 instance identity security credentials. The practical impact depends on the permissions of the IAM role attached to the instance: here the role was very restricted, so the author rated the risk low. With a more permissive role, the same access to credentials would carry correspondingly greater risk.

Fix

The report records that the bug was marked fixed by the company the day after it was reported, and that the author re-tested and confirmed the fix the same day. The report does not describe the change that was made. The author's general guidance to developers and companies is to never commit code to the production environment without proper peer review, since staging test code can be pushed to production by negligence, and to give a second look to manually created proxy and routing rules.

Timeline as given in the report:

Date Event
25-May-2019 Bug reported to the concerned company
26-May-2019 Bug marked fixed
26-May-2019 Re-tested and confirmed the fix
30-May-2019 Rewarded

Variants to test

  1. Append a full URL after a known route on other applications and point it at a Requestbin or Collaborator host. A positive result is a response whose headers show the request arriving from the target's own infrastructure, for example an x-forwarded-for entry belonging to the target's server rather than your own address.
  2. Append garbage after the same route and compare with the root URL. A positive result is a 301 back to the parent route where the root URL returns 404, which suggests a catch-all routing rule worth probing with a URL.
  3. Once a server-side fetch is confirmed, request http://[redacted]:<port> for a range of ports. A positive result is a 200 for an open port and a distinct failure such as status 000 for a closed or filtered one.
  4. On cloud-hosted targets, request http://[redacted]/latest/meta-data through the same route. A positive result is the metadata listing coming back in the response.
  5. Walk the metadata paths for public-keys/0/openssh-key and identity-credentials/ec2/security-credentials/ec2-instance. A positive result is the key or credential document being returned, which tells you the instance role's exposure.
  6. Look for X-Amz-Cf-Id and cloudfront in response headers to identify AWS hosting before spending time on metadata paths, and check x-forwarded-for for addresses that do not belong to you.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 19 min read.

What happened, in plain words

A security researcher was testing a website belonging to what he describes as India's leading fintech company, a company that handles money. While poking at the site's "My account" page, he noticed that the page behaved oddly when he typed strange things after its address. That odd behaviour let him make the company's own server fetch web addresses of his choosing, including addresses that only the server itself can reach. One of those internal addresses belongs to Amazon Web Services (AWS), the cloud provider the application was running on, and it hands out secret credentials to any program running on the machine. Because the server was fetching addresses on his behalf, he could read those credentials too.

The chain of problems, in the order he found them, was:

  1. A strange redirect on the "My account" page.
  2. A way to make the server fetch a file from another site, which he calls a kind of Remote File Inclusion (RFI).
  3. That fetch happening on the server side, which is Server Side Request Forgery (SSRF).
  4. Reading AWS EC2 credentials through that SSRF.

This is a beginner's walkthrough of the same story, in the same order, with the same requests. Every technical word is explained the first time it appears, and there is a glossary at the end.

The building blocks, explained from zero

Before following the steps, here are the ideas the whole story rests on.

A web request and a response. When you type an address into your browser and press Enter, the browser sends a request to a computer somewhere on the internet. That computer, the server, sends back a response: the page you see, plus some hidden information called headers. Headers are like the label on a parcel: they say what is inside, who sent it, and how it should be handled. You never see them in the page itself, but your browser does, and so can anyone who looks with the right tools.

A URL path. A web address like https://example.com/myaccount has two parts that matter here. example.com is the name of the server. /myaccount is the path, which tells the server which page or feature you want, a bit like a floor number and room number in a building.

Routing. Servers do not magically know what to do with a path. A piece of software called a router looks at the path and decides which piece of code should run. In a big building, the receptionist reads the room number and sends you to the right floor. Routing is that receptionist. When the routing rules are written badly, the receptionist can send you somewhere nobody intended.

ASP.NET and IIS. ASP.NET is a framework, a set of ready-made building blocks, for writing web applications. IIS (Internet Information Services) is Microsoft's web server software, the program that actually answers requests on a Windows machine. The version mentioned in the report is IIS/10.0. Together they are a common way to build and run websites on Windows.

MVC. MVC stands for Model, View, Controller. It is a way of organising code so that the data (the Model), the page you see (the View) and the logic that decides what to do (the Controller) are kept apart. In ASP.NET Core MVC, the router matches an incoming URL to a controller action, which is simply a named piece of code that does one job. In this story the action is called myaccountApi.MyProfile, and it is the code that shows your profile on the "My account" page.

Image for post
MVC Architecture From the original on medium.com

The diagram above shows that MVC arrangement: the routing middleware takes the URL of an incoming request and maps it to an action. The author's point is that bad routing logic or a poorly structured codebase can make a misconfigured route do something nobody intended.

A status code. Every response carries a three-digit number saying how it went. 200 means "here is the page, all fine". 301 means "this page has moved, go to this other address instead", which is a redirect. 404 means "no such page". 000 is not a real HTTP status at all; tools show it when no proper response came back, for example because the connection failed.

An upstream server and a proxy. Large sites rarely have one computer doing everything. Often a proxy sits in front: it receives your request first and then passes it on to another server behind it, the upstream server, which does the real work. Think of a receptionist who takes your form and walks it to the back office. If the receptionist can be tricked into walking your form to any room in the building, that is a problem.

SSRF (Server Side Request Forgery). Normally, when a website fetches another address, it does so because its own code decided to. SSRF means an attacker has found a way to make the server fetch an address the attacker chooses. The danger is that the server can reach places you cannot: internal machines, internal ports, and special addresses that only make sense from inside the network. It is like convincing a staff member with a master key to go into a locked room and read out what is on the shelf.

RFI (Remote File Inclusion). File inclusion is when an application pulls in a file from somewhere and uses it. Remote File Inclusion is when the file comes from a remote location, typically a URL supplied by the user. The author describes what he found as "kind of" RFI, because the application was taking a URL from the path and fetching it.

A port. One server can run many services at once, each listening on a numbered port. Port 80 is the usual one for plain web traffic, port 21 is traditionally used for FTP (file transfer), and so on. Checking which ports answer is called a port scan, and doing it from the outside against internal addresses is a classic use of SSRF.

[redacted] and localhost. Every computer has a special address that means "this machine itself": [redacted], also called localhost. If a server can be made to fetch http://[redacted], it is talking to itself, not to the internet.

169.254.169.254. This is a special address used inside cloud networks. On AWS, a program running on a cloud machine can ask this address questions about itself, such as its name, its keys, and its credentials. The service is called the instance metadata service. It exists so that machines can configure themselves without a human typing secrets in. The catch is that anything able to make requests from that machine can ask the same questions.

AWS, EC2, CloudFront, IAM. AWS (Amazon Web Services) is a cloud provider: instead of buying computers, companies rent them by the hour. A rented virtual computer is called an EC2 instance. CloudFront is AWS's content delivery network, a service that caches and serves content from many locations; its presence in headers is a hint that a site uses AWS. IAM (Identity and Access Management) is how AWS controls what each program is allowed to do. An IAM role is a set of permissions attached to an instance. If the role is generous, stolen credentials are dangerous; if it is tightly restricted, they are much less useful.

Credentials. A credential is anything that proves identity: a username and password, a key, a token. AWS credentials let a program prove to AWS that it is a particular instance with particular permissions.

Requestbin and Burp Collaborator. These are services that give you a unique web address and record every request that arrives at it. You hand that address to the target; if the target fetches it, you see the request appear in your Requestbin or Collaborator dashboard. It is a way of proving "the server really did go and fetch my address", like leaving a marked envelope with a suspect and seeing whether it comes back through the post.

whois. A public lookup service that tells you who owns an IP address, an internet address for a computer. It is useful for working out whether an address in a log belongs to you or to the target.

x-forwarded-for. When a proxy passes a request along, it often adds a header recording where the request originally came from. That header is x-forwarded-for. If it lists more than one address, it usually means the request passed through more than one hop.

Staging versus production. Production is the live system real customers use. Staging is a test copy used by developers before changes go live. Test code belongs on staging. When it ends up on production, features nobody meant to expose become reachable by the public.

Setting the scene

The author was testing a fintech company's website. He does not describe creating any account, using any special role, or holding any credentials. The only tools he names are:

  • A browser, plus a way to look at response headers, to work out what the site is built with.
  • Requestbin, to inspect and debug HTTP requests. He notes it does almost the same job as Burp Collaborator.
  • A whois lookup, to work out whose addresses appeared in a header.

The only precondition for the whole chain is that the site exposes the /myaccount route and behaves in the way described below.

Finding it

Step 1: Work out what the site is built with

The first move was simply to look at the response headers. The author says the stack was visible from them alone: the application is written in ASP.NET and runs on Windows IIS/10.0.

Image for post
Application is over Windows IIS server and written in ASP.net From the original on medium.com

Why this matters: knowing the framework and the server tells you what kinds of routing quirks and misconfigurations are plausible. It narrows down what to try next.

Step 2: Compare the root page with the account page

To understand how the routing rule might have been written, the author first appended nonsense to the root address:

Line by line: this is the site's home address with xyxyz stuck on the end, a path that does not exist. As expected, the server answered 404 not found, meaning "no such page". That is normal, healthy behaviour.

Then he did the same thing on the "My account" page:

Line by line: this is the account page address with xyyyz stuck on the end, again nonsense. This time the answer was different: a 301 redirect back to the address the request came from, https://redacted.com/myaccount.

Why this matters: a 404 on the home page but a redirect on the account page means the account page has a catch-all rule. Instead of saying "no such page", it quietly sends you back to the parent. That is the first sign of routing logic that does more than it should.

Step 3: Put a real web address where the nonsense went

The next test replaced the nonsense with a real address belonging to someone else:

Line by line: the path is now /myaccount/ followed by a complete URL, http://evilzone.org. The result was the same redirect to evilzone.org, but the address bar still showed https://redacted.com/myaccount/http://evilzone.org.

Why this matters: the page from evilzone.org appeared, yet the browser's address never changed to evilzone.org. In the author's reading, the page was loaded within the server: the server fetched evilzone.org itself and handed the result back. The request was most likely passed to the upstream server as is.

Step 4: Reconstruct the rule

From that behaviour, the author sketched what the code probably does:

Text
For a URL path like /myaccount, the myaccountApi.MyProfile action will be executed, for the URL path having HTTP or HTTPs protocol, like /myaccount/^(http|https)://(.*),accept it and pass it to the upstream server and for anything not matching any other condition, executing the same action as myaccountApi.MyProfile.

Line by line, in plain words:

  • If the path is just /myaccount, run the normal profile action, myaccountApi.MyProfile.
  • If the path after /myaccount starts with http:// or https://, accept it and pass it to the upstream server. The ^(http|https)://(.*) part is a pattern meaning "begins with http or https, then a colon and two slashes, then anything".
  • If nothing else matches, run the same profile action as before.

Why the code was like this: the author's explanation is that it looks like testing code meant for a staging environment, pushed to production through negligence, together with misconfigured rules in the upstream proxy. In other words, a developer's shortcut for testing became a public feature by accident.

Exploitation

Step 5: Prove the request reaches an outside host

To inspect and debug the HTTP requests, the author used Requestbin and made this request:

Line by line: the path is /myaccount/ followed by a URL pointing at a Requestbin-style endpoint, https://en1sxi232vmus.x.pipedream.net/. That endpoint is a trap the author controls: anything that arrives there is recorded for him to see.

Image for post
Image for post From the original on medium.com

The response header contained two IP addresses in the x-forwarded-for header, which the author calls weird. A whois lookup showed that the first address was his own router's address, which is expected, and the second belonged to the server of redacted.com, that is, the upstream proxy server.

Why this matters: if the request had been made by his browser, only his own address would appear. The presence of the target's own server address in the header led the author to conclude the request was made by the server, not by his browser. The redirect from the earlier step was therefore a server-side redirect, not just a client-side one. And if a server can be made to fetch addresses on command, there is a good chance of SSRF.

The author's sketch of how the upstream proxy might have been configured:

Text
# server context, here the victim.com is the value which is passed #by MVC action.location /myaccount/* {    proxy_set_header HOST $host;    proxy_set_header X-Forwarded-Proto $scheme;    proxy_set_header X-Real-IP $remote_addr;    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for,    $client_ip ;    proxy_pass http://victim.com/;}. . .

Line by line, in plain words:

  • location /myaccount/* means: this block applies to any address starting with /myaccount/.
  • The proxy_set_header lines add information to the request before passing it on: the original host, the protocol used, the real client address, and the forwarding chain in X-Forwarded-For.
  • proxy_pass http://victim.com/; is the key line: it sends the request on to victim.com. In the author's sketch, victim.com stands for the value taken from the URL, which is exactly why an attacker-supplied address ends up being fetched.

Step 6: Scan internal ports through the SSRF

The author tested for SSRF by asking the server to reach its own machine on different ports. First port 80:

Line by line: /myaccount/ followed by http://[redacted]:80, which means "this very machine, port 80". Port 80 is the standard web port. The answer was 200 status OK, meaning the port is open, which the author notes is obvious since the application is running on it.

Then a different port, 21:

Line by line: the same idea, but port 21, traditionally used for FTP. If something were listening there, the server would get a response.

Image for post
Status code 000 From the original on medium.com

The response was status code 000, not 200, which confirmed the port might be closed or filtered.

Why this matters: a 200 for one port and a 000 for another shows the server is genuinely trying to connect to each port and reporting back what happened. That is a port scan performed by the target against itself. The author calls this the first and simplest SSRF test case.

Step 7: Confirm the site is on AWS

Looking further at the response headers, the X-Amz-Cf-Id and cloudfront keywords confirmed that the application is hosted on AWS.

Image for post
X-Amz-Cf-Id and cloudfront keyword From the original on medium.com

Why this matters: the metadata address [redacted] only exists on cloud machines. Knowing the site runs on AWS tells you that address is worth trying, before spending time on other ideas.

Step 8: Read the instance metadata

With the cloud confirmed, the author called the AWS instance metadata API through the vulnerable route:

Line by line: /myaccount/ followed by http://[redacted]/latest/meta-data. The address [redacted] is the internal metadata service, and /latest/meta-data asks it for the list of information it holds about this machine. Because the request is made by the server, the server asks itself this question and hands the answer back.

The metadata was returned.

Why this matters: this is the moment the SSRF stops being a port scan and starts leaking real information about the machine.

Step 9: Read the SSH public key

Next, the author called the public keys path of the metadata API:

Line by line: the same metadata address, but this time asking for public-keys/0/openssh-key, which is the machine's SSH public key. SSH is the protocol used to log in to servers remotely; a public key is the half of a key pair that can safely be shown, and it identifies the machine.

Image for post
SSH Public key From the original on medium.com

Access to the SSH public key was obtained.

Why this matters: a public key alone does not let you log in, but it confirms the metadata service is fully readable, not just the index page. It also tells you something about how the machine is set up.

Step 10: Read the AWS security credentials

At this point the author had SSRF, could scan internal ports and could read EC2 metadata. The remaining goal was the AWS security credentials, described in the article as the credentials AWS uses to identify an instance to the rest of the Amazon EC2 infrastructure. The call went to the identity credentials path of the metadata API:

Line by line: the same metadata address, but the path now walks to identity-credentials/ec2/security-credentials/ec2-instance, the place where the machine's own AWS credentials are kept. These are the secrets a program on the machine would use to talk to other AWS services.

As expected, the author was able to get hold of the credentials. The IAM role attached to the EC2 instance, however, appeared to have very restricted permissions, so the risk level attached to the finding was low.

Why this matters: credentials are the prize. What they unlock depends entirely on the permissions attached to them. Here the role was tightly limited, so the author rated the risk low. With a more generous role, the same access would have been far more serious.

Why it worked

The chain starts with routing logic that treats any path segment beginning with http:// or https:// after /myaccount as a URL to pass to the upstream server, and falls back to the myaccountApi.MyProfile action for anything else. The author's reading is that this was staging test code that reached production, combined with misconfigured rules in the upstream proxy. The author's sketch of the proxy configuration shows the passed value being used as the proxy target, which would turn what looks like a redirect into a server-side fetch. The requests to internal addresses such as [redacted] and the link-local metadata address [redacted] were answered, which the author attributes to the server-side redirection.

What an attacker could do with it

Anyone who can reach the /myaccount route can make the server issue requests to addresses supplied in the path, including internal ones. In this case that allowed an internal port scan of localhost, reading the EC2 instance metadata, reading the instance's SSH public key, and reading the EC2 instance identity security credentials. The practical impact depends on the permissions of the IAM role attached to the instance: here the role was very restricted, so the author rated the risk low. With a more permissive role, the same access to credentials would carry correspondingly greater risk.

The fix

The report records that the bug was marked fixed by the company the day after it was reported, and that the author re-tested and confirmed the fix the same day. The report does not describe the change that was made. The author's general guidance to developers and companies is to never commit code to the production environment without proper peer review, since staging test code can be pushed to production by negligence, and to give a second look to manually created proxy and routing rules.

Timeline as given in the report:

Date Event
25-May-2019 Bug reported to the concerned company
26-May-2019 Bug marked fixed
26-May-2019 Re-tested and confirmed the fix
30-May-2019 Rewarded

Things you can try yourself

These are the same checks, phrased as things to look for. Only test sites you are allowed to test.

  1. Append a full URL after a known route on other applications and point it at a Requestbin or Collaborator host. A positive result is a response whose headers show the request arriving from the target's own infrastructure, for example an x-forwarded-for entry belonging to the target's server rather than your own address.
  2. Append garbage after the same route and compare with the root URL. A positive result is a 301 back to the parent route where the root URL returns 404, which suggests a catch-all routing rule worth probing with a URL.
  3. Once a server-side fetch is confirmed, request http://[redacted]:<port> for a range of ports. A positive result is a 200 for an open port and a distinct failure such as status 000 for a closed or filtered one.
  4. On cloud-hosted targets, request http://[redacted]/latest/meta-data through the same route. A positive result is the metadata listing coming back in the response.
  5. Walk the metadata paths for public-keys/0/openssh-key and identity-credentials/ec2/security-credentials/ec2-instance. A positive result is the key or credential document being returned, which tells you the instance role's exposure.
  6. Look for X-Amz-Cf-Id and cloudfront in response headers to identify AWS hosting before spending time on metadata paths, and check x-forwarded-for for addresses that do not belong to you.

Glossary

  • 301: an HTTP status code meaning the page has moved and the browser should go to another address instead.
  • 404: an HTTP status code meaning no such page exists.
  • 200: an HTTP status code meaning the request succeeded and the content follows.
  • 000: not a real HTTP status; tools show it when no proper response came back, for example because the connection failed.
  • Action (controller action): a named piece of code in an MVC application that does one job in response to a request.
  • ASP.NET: a framework from Microsoft for building web applications.
  • AWS: Amazon Web Services, a cloud provider that rents out computers and services over the internet.
  • Burp Collaborator: a service that gives you a unique address and records requests arriving at it, used to prove a server fetched your address.
  • CloudFront: AWS's content delivery network, which caches and serves content from many locations.
  • Credential: anything that proves identity, such as a password, key or token.
  • EC2 instance: a virtual computer rented from AWS.
  • Header: hidden information sent alongside a web request or response, such as content type or forwarding details.
  • IAM role: a set of permissions attached to an AWS instance, deciding what it is allowed to do.
  • IIS: Microsoft's web server software for Windows.
  • Instance metadata service: an internal AWS service at [redacted] that answers questions a machine asks about itself, including its credentials.
  • Localhost / [redacted]: the special address a computer uses to refer to itself.
  • MVC: Model, View, Controller, a way of organising application code so data, display and logic stay separate.
  • Port: a numbered channel on a computer that a particular service listens on, such as 80 for web or 21 for FTP.
  • Port scan: checking which ports on a machine answer, to learn which services are running.
  • Production: the live system that real customers use.
  • Proxy: a server that receives requests first and passes them on to another server behind it.
  • Requestbin: a service that gives you a unique address and records requests arriving at it, similar in purpose to Burp Collaborator.
  • Response: what a server sends back after a request: the page plus headers and a status code.
  • RFI (Remote File Inclusion): when an application pulls in a file from a remote location, typically a URL supplied by the user.
  • Routing: the logic that decides which piece of code handles a given URL path.
  • SSH public key: the shareable half of a key pair used to log in to servers remotely; it identifies a machine without revealing the secret half.
  • SSRF (Server Side Request Forgery): tricking a server into making a request to an address the attacker chooses, including internal addresses the attacker cannot reach directly.
  • Staging: a test copy of a system used by developers before changes go live.
  • Status code: the three-digit number in a response saying how the request went.
  • Upstream server: the server behind a proxy that does the real work.
  • URL path: the part of a web address after the server name, such as /myaccount, that selects a page or feature.
  • whois: a public lookup service that says who owns an IP address.
  • x-forwarded-for: a header a proxy adds to record where a request originally came from.

More by Avinash Jain

View all

29 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Server-side request forgery (SSRF)

The lesson behind this report.

The server can be made to fetch an address the attacker chooses, reaching internal services, cloud metadata or other customers' data.