Skip to content
Info disclosure Write-up Beginner

The Key Wasn’t the Leak

A forgotten phpinfo() page left in a client site's web root printed the server environment, which included API keys set globally for every virtual host. Scanners fetched the page and used the exposed keys, draining the account twice even after the key was rotated.

medium.com

Published on medium.com

PHP

Faris Hassani, 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. 8 min read.

Context

This is a personal post-mortem about a small PHP application that offers AI search. The app does not call the model provider directly: a PHP proxy on the server reads the API keys and makes the calls. The server is an Apache host that runs several sites, including a client's boat show website that the author had not opened since January.

The keys were stored as SetEnv lines in a file under /etc/httpd/conf.d/, which is how the PHP proxy picks them up. The author describes conf.d as global: every site on that server could see those variables.

From the original on medium.com

The article's subtitle sets out the sequence: the author rotated an API key, topped up $10 and went to bed, and the server handed the new key to strangers before breakfast.

Setup

  • An Anthropic account with a spend limit and, at the start, bonus credit.
  • An OpenAI key, an Anthropic key, an app token and a webhook secret, all exposed through the same mechanism.
  • Apache with the sites behind a Cloudflare tunnel.
  • A PHP proxy that reads the keys from the environment set by SetEnv in conf.d.
  • A client site with an info.php in its web root containing a single phpinfo() call, created in January to check a PHP setting and then forgotten.
  • Two more phpinfo pages on another small site on the same box.

The app's AI search costs roughly a cent an answer. It calls Sonnet and Haiku, not Opus.

Finding it

The author's starting point was a bill, not a vulnerability. On October 12 the Anthropic balance went from about $205 to zero in a day. He assumed the old key had got out somehow and that a new key would sort it. He created a new key, put ten dollars on the account, pasted the key into the server config, reloaded Apache and watched one request come back 200. Around ten at night on the 20th he shut the laptop.

Two days later the second email arrived: Your API key has been disabled. Anthropic had noticed the key being used somewhere it shouldn't be and turned it off. Somebody had already run $7.86 of Opus on it.

Text
Oct 12   first key, drained to zero         $205.09
Oct 22   new key, Opus 5.5 and Opus 4.8     $7.86
Text
Monthly usage at the end: $213.10 of a $220 spend limit.

What bothered him was the speed: only his server had ever seen that key, and two days later someone else was spending it. Whatever he had fixed on the 20th was not the problem.

He then worked through the places a leaked key usually comes from:

  1. Every repo and every branch, history included.
  2. His laptop, for a stray .env.
  3. His shell history.
  4. Chat transcripts, in case he had pasted it somewhere.
  5. Whether his own tooling on the server could see it. It cannot; it signs in a different way.

Then the server logs, which should have been the easy part. Every request in them came from ::1. Because the sites sit behind a Cloudflare tunnel, Apache saw every visitor as localhost. Nine months of access logs, and he could not tell his own phone apart from a scanner.

The keys turned out to be in a file under /etc/httpd/conf.d/ as SetEnv lines. The point he had missed is that conf.d is global: every site on the server could see those variables, including the boat show site.

That site had an info.php in its web root, one line of phpinfo(), dropped there in January to check a PHP setting. phpinfo() prints the server's environment, and thanks to the global SetEnv the environment held the OpenAI key, the Anthropic key, the app token and a webhook secret, in a formatted table.

Once he grepped every site instead of only the one he was worried about, the pattern was almost boring. Scanners had been fetching that page for months. One grabbed it on October 11, the day before the first bill. On the 21st, about eight and a half hours after he had made the new key, a credential scanner went through its usual list:

Text
Oct 21 06:41  GET /.aws/credentials
Oct 21 06:41  GET /.env
Oct 21 06:41  GET /?phpinfo=1

It did not need the first two. Another small site on the same box had two more phpinfo pages, in case one was not enough.

His summary of the finding: rotating the key fixed nothing, because the key was not the leak. The page was, and every new key he made went straight onto it.

Exploitation

Step 1: Request the exposed phpinfo() page

A scanner fetched the forgotten page on the client site, which printed the server environment. Because the keys were set globally with SetEnv in conf.d, the output included the OpenAI key, the Anthropic key, the app token and the webhook secret. The report does not show the page's response body.

Step 2: Use the key against the provider

The attacker used the Anthropic key to run Opus models, which the app itself never calls. The first key drained the balance to zero on October 12. After the author made the new key on the 20th, it was used for $7.86 of Opus 5.5 and Opus 4.8 by October 22, when Anthropic disabled it.

Step 3: Keep scanning the usual paths

The credential scanner's requests on October 21 show the pattern: it tried /.aws/credentials and /.env first, then /?phpinfo=1. The first two were unnecessary here; the third path was enough.

Root cause

The mistake is a combination of two things, both implied by the report rather than stated as a single flaw:

  • Secrets were placed in a global Apache configuration scope. SetEnv lines in conf.d apply to every virtual host on the server, so a page on any site, including one the author had forgotten, could read them from the environment.
  • A phpinfo() page was left in a web root. phpinfo() prints the environment, so it turned the global variables into a formatted table of secrets for anyone who requested the page.

Existing defences did not help. The access logs were useless for triage because the Cloudflare tunnel made every request appear to come from ::1, so the author could not distinguish his own traffic from a scanner's. Searching repositories, his laptop, shell history and chat transcripts found nothing, because the key had never been in any of them. Rotating the key did not help either, because the leak was the page, and each new key was written into the same global environment and printed by the same page.

Impact

An unauthenticated visitor who found the page could read the OpenAI key, the Anthropic key, the app token and the webhook secret. In this case the Anthropic balance was spent: about $205 on the first key and $7.86 of Opus on the second, for a monthly total of $213.10 against a $220 spend limit. The author notes that the money was bonus credit and that he would rather lose $213 this way than find out with a client's key, which points at the wider exposure: the same server hosted a client site, and the same global variables were visible to it.

What stopped the bleeding was mostly settings: auto-reload was off, so when the balance hit zero the attacker hit zero too; a monthly spend limit on the account held; and Anthropic's leak detection disabled the second key before it reached $8.

Fix

The author lists what he changed:

  1. Took down all three phpinfo pages, moving them out of the web roots rather than deleting them, so the evidence remains.
  2. Moved the keys out of conf.d into a root-only file (chmod 600) that only the one virtual host that needs it includes. He checked from the boat show site afterwards and the variables are gone.
Text
<VirtualHost *:80>
    ...
    Include /etc/httpd/private/site-env.conf
</VirtualHost>
  1. Made new OpenAI and Anthropic keys after closing the leak. The old ones return 401.
  2. Blocked dotfiles like .env and .git on every site.
  3. Turned on mod_remoteip so Apache logs the real visitor IP from Cloudflare's header, trusted only when it comes from the tunnel on localhost.
Text
# conf.d/remoteip.conf
RemoteIPHeader CF-Connecting-IP
RemoteIPInternalProxy [redacted] ::1
  1. Changed passwords and rotated the webhook secret, since they had been on the same page.

During the cleanup he made one more mistake: a sed command meant to mask secrets before printing a config file used a pattern that was too narrow and printed two of them in full. He rotated the webhook secret again. His advice is to try a mask on a harmless file first.

His closing points: a leaked key is a symptom, and making a new one before finding the leak just restocks whoever has it; think about who can see a secret, not just where it is stored; phpinfo() is a page that prints your secrets; keep auto-reload off and set a spend limit you could live with losing; and if every line in your access log says localhost, you do not really have access logs.

Variants to test

  • phpinfo() and similar debug pages on every virtual host. Request common names such as info.php, phpinfo.php and test.php, and query strings such as /?phpinfo=1. A positive result is a page that prints environment variables, server paths or configuration, especially one containing keys or tokens.
  • Global environment variables on shared servers. If one site's configuration sets secrets with SetEnv in a global scope, request a page on a different virtual host that prints the environment. A positive result is a secret from another site appearing in that output.
  • Log fidelity behind a proxy or tunnel. Compare what the access log records with the real client address. If every entry shows a loopback address, the logs cannot be used for triage, and mod_remoteip (or the equivalent) is missing or misconfigured.
  • Dotfile exposure. Request /.env, /.git/config and /.aws/credentials on each site.
  • Secret masking before sharing. Run any masking command against a harmless file that contains realistic-looking values and check the output before using it on a real configuration file. A positive result is that no secret survives the mask.
  • Key rotation without leak closure. After a key is rotated, check whether the old exposure path still returns the new value. A positive result is the new key appearing on the same page that leaked the old one.

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

This is a story about a small website that offers AI search. The author runs it on a server that also hosts several other websites, including one he built for a client, a boat show site, and had not opened since January.

Before we go further, a few words that come up constantly.

An API (Application Programming Interface) is a way for one piece of software to ask another piece of software to do something. Think of it as a service counter: you hand over a request, the counter hands back an answer. The AI search on this site works that way. When a visitor searches, the site sends a question to an AI company's service and gets an answer back.

An API key is the password-like string that proves to that service who is asking, and whose bill the request goes on. Think of a membership card at a club: anyone holding the card can order drinks and the tab goes to the card's owner. If someone else gets your card, they drink on your tab.

A token is a similar idea: a short string of characters that stands in for a password or an identity. The report mentions an app token and a webhook secret alongside the API keys. A webhook is an automatic message one service sends to another when something happens, and the webhook secret is the shared password that proves the message really came from the right place.

The site does not talk to the AI company directly. A small program on the server, written in PHP (a language commonly used for websites), acts as a middleman: it holds the keys and makes the calls. The report calls it a PHP proxy. A proxy is a go-between, like a receptionist who takes your message and passes it on.

The server runs Apache, a very common piece of software that serves web pages. One Apache server can host many websites at once; each one is called a virtual host. The sites sit behind a Cloudflare tunnel, which is a service that receives visitors on the internet and passes them to the server. The server therefore never sees the visitor directly, only the tunnel.

From the original on medium.com

The subtitle of the article sums up the sequence: the author rotated an API key, topped up $10 and went to bed, and the server handed the new key to strangers before breakfast. Rotating a key means replacing it with a new one and throwing the old one away, the way you change a lock after losing your keys.

The setup

Here is what was in place before anything went wrong.

  • An Anthropic account (Anthropic is the company behind the Claude AI models) with a spend limit and, at the start, bonus credit.
  • Four secrets in total: an OpenAI key, an Anthropic key, an app token and a webhook secret. All four were exposed through the same mechanism.
  • Apache, with the sites behind a Cloudflare tunnel.
  • A PHP proxy that reads the keys from the server's environment.
  • A client site with an info.php file in its web root, containing a single phpinfo() call, created in January to check a PHP setting and then forgotten.
  • Two more phpinfo pages on another small site on the same machine.

Two of those terms need unpacking.

The environment is a set of named values that the server keeps in memory and hands to programs that run on it. Think of it as a noticeboard in a shared office: anything pinned there can be read by anyone who walks past. The keys were pinned to that noticeboard with lines called SetEnv, short for set environment.

The web root is the folder on the server whose contents are publicly served as a website. Anything you put in the web root can be fetched by anyone with a browser. A file outside the web root cannot be fetched directly.

phpinfo() is a built-in PHP function that prints a long, neatly formatted page describing the server: its settings, its file paths, and its environment. It is meant as a debugging aid for developers. Because the environment held the keys, phpinfo() printed the keys.

The app's AI search costs roughly a cent an answer. It calls two Anthropic models, Sonnet and Haiku, and never Opus, which is a more expensive model. That detail matters later.

Finding it

The author's starting point was a bill, not a security test. On October 12 the Anthropic balance went from about $205 to zero in a day. He assumed the old key had got out somehow and that a new key would sort it. He created a new key, put ten dollars on the account, pasted the key into the server config, reloaded Apache and watched one request come back 200. A 200 is the standard web response code meaning "here is your page, all fine". Around ten at night on the 20th he shut the laptop.

Two days later the second email arrived: Your API key has been disabled. Anthropic had noticed the key being used somewhere it shouldn't be and turned it off. Somebody had already run $7.86 of Opus on it.

Text
Oct 12   first key, drained to zero         $205.09
Oct 22   new key, Opus 5.5 and Opus 4.8     $7.86

Line by line: the first line records that on October 12 the first key was used until the balance reached zero, costing $205.09. The second line records that on October 22 the replacement key had been used to run two Opus models, Opus 5.5 and Opus 4.8, costing $7.86. The point of putting them side by side is that the second key, made after the first disaster, was already being spent by someone else.

Text
Monthly usage at the end: $213.10 of a $220 spend limit.

This single line says that by the end of the month the account had used $213.10 out of a maximum of $220 that the author had set. A spend limit is a cap you configure with the provider: once the bill reaches it, further requests are refused. It is like a prepaid card that stops working when the balance runs out.

What bothered him was the speed: only his server had ever seen that key, and two days later someone else was spending it. Whatever he had fixed on the 20th was not the problem.

He then worked through the places a leaked key usually comes from:

  1. Every code repository and every branch, history included. A repository (repo) is a storage place for code, often online, and its history keeps every past version of every file.
  2. His laptop, for a stray .env. A file named .env is a common place to keep secrets for a program; the dot at the start makes it hidden on many systems.
  3. His shell history. The shell is the text window where you type commands, and it keeps a list of what you typed.
  4. Chat transcripts, in case he had pasted it somewhere.
  5. Whether his own tooling on the server could see it. It cannot; it signs in a different way.

None of these turned anything up. Then he went to the server logs, which should have been the easy part. A server log is the running record Apache keeps of every request it receives: who asked for what, and when. Every request in them came from ::1. That is the address a computer uses to refer to itself, the loopback address, the same idea as "localhost". Because the sites sit behind a Cloudflare tunnel, Apache saw every visitor as localhost. Nine months of access logs, and he could not tell his own phone apart from a scanner. A scanner here means an automated program that walks the internet trying common file names on every site it finds, looking for anything left exposed.

The keys turned out to be in a file under /etc/httpd/conf.d/ as SetEnv lines. /etc/httpd/ is Apache's configuration folder on this kind of system, and conf.d is a folder of configuration snippets that Apache loads for the whole server. The point he had missed is that conf.d is global: every site on the server could see those variables, including the boat show site. Going back to the noticeboard comparison, he had pinned the keys to the board in the shared corridor rather than locking them in one office.

That boat show site had an info.php in its web root, one line of phpinfo(), dropped there in January to check a PHP setting. phpinfo() prints the server's environment, and thanks to the global SetEnv the environment held the OpenAI key, the Anthropic key, the app token and a webhook secret, in a formatted table. Anyone who opened that page in a browser saw all four secrets laid out for them.

Once he searched every site instead of only the one he was worried about, the pattern was almost boring. Grepping means searching text for a pattern, using a command called grep. Scanners had been fetching that page for months. One grabbed it on October 11, the day before the first bill. On the 21st, about eight and a half hours after he had made the new key, a credential scanner went through its usual list:

Text
Oct 21 06:41  GET /.aws/credentials
Oct 21 06:41  GET /.env
Oct 21 06:41  GET /?phpinfo=1

Line by line: each line is one request recorded in the log, all three at 06:41 on October 21. GET is the ordinary browser request for a page. The first line asks for /.aws/credentials, a file that, when present, holds Amazon cloud access keys. The second asks for /.env, the common secrets file. The third asks for the site's front page with ?phpinfo=1 added; the part after the question mark is a query string, extra information sent along with the request, and scanners use it to try to trigger debug output. The first two requests were unnecessary here. The third path, and the two other phpinfo pages on the same machine, were enough.

His summary of the finding: rotating the key fixed nothing, because the key was not the leak. The page was, and every new key he made went straight onto it.

How it was exploited

Step 1: Request the exposed phpinfo() page

A scanner fetched the forgotten page on the client site, which printed the server environment. Because the keys were set globally with SetEnv in conf.d, the output included the OpenAI key, the Anthropic key, the app token and the webhook secret. The report does not show the page's response body.

Why this step matters: the scanner did not need to break anything, guess a password or exploit a clever flaw. It asked for a page that was sitting in a public folder, and the page answered with the secrets. This kind of mistake, leaving something exposed that should have been private, is often called information disclosure: the system tells you something it should have kept to itself.

Step 2: Use the key against the provider

The attacker used the Anthropic key to run Opus models, which the app itself never calls. The first key drained the balance to zero on October 12. After the author made the new key on the 20th, it was used for $7.86 of Opus 5.5 and Opus 4.8 by October 22, when Anthropic disabled it.

Why this step matters: a key is only useful to an attacker if it can be spent, and here it could. The attacker did not need the author's server at all; they took the key and used it directly against Anthropic, the way someone who copies your membership card number can order drinks without ever entering the club.

Step 3: Keep scanning the usual paths

The credential scanner's requests on October 21 show the pattern: it tried /.aws/credentials and /.env first, then /?phpinfo=1. The first two were unnecessary here; the third path was enough.

Why this step matters: scanners work through a fixed checklist of well-known file names on every site they find. They do not know your site; they just try the same list everywhere. That is why a forgotten test file is dangerous even on a site nobody visits: the scanner does not care whether the site is popular.

The root cause

The mistake is a combination of two things, both implied by the report rather than stated as a single flaw:

  • Secrets were placed in a global Apache configuration scope. SetEnv lines in conf.d apply to every virtual host on the server, so a page on any site, including one the author had forgotten, could read them from the environment.
  • A phpinfo() page was left in a web root. phpinfo() prints the environment, so it turned the global variables into a formatted table of secrets for anyone who requested the page.

Together they made a public page that listed the keys.

Existing defences did not help. The access logs were useless for triage because the Cloudflare tunnel made every request appear to come from ::1, so the author could not distinguish his own traffic from a scanner's. Searching repositories, his laptop, shell history and chat transcripts found nothing, because the key had never been in any of them. Rotating the key did not help either, because the leak was the page, and each new key was written into the same global environment and printed by the same page.

The impact

An unauthenticated visitor who found the page could read the OpenAI key, the Anthropic key, the app token and the webhook secret. Unauthenticated simply means not logged in: no account, no password, nothing. In this case the Anthropic balance was spent: about $205 on the first key and $7.86 of Opus on the second, for a monthly total of $213.10 against a $220 spend limit. The author notes that the money was bonus credit and that he would rather lose $213 this way than find out with a client's key, which points at the wider exposure: the same server hosted a client site, and the same global variables were visible to it.

What stopped the bleeding was mostly settings: auto-reload was off, so when the balance hit zero the attacker hit zero too; a monthly spend limit on the account held; and Anthropic's leak detection disabled the second key before it reached $8. Auto-reload is a setting that tops up the account automatically when the balance runs low; with it on, the attacker's spending would have kept refilling itself from the author's card.

The fix

The author lists what he changed:

  1. Took down all three phpinfo pages, moving them out of the web roots rather than deleting them, so the evidence remains. Moving rather than deleting is the same instinct as keeping a damaged part after an accident: you may need to look at it again.
  2. Moved the keys out of conf.d into a root-only file (chmod 600) that only the one virtual host that needs it includes. He checked from the boat show site afterwards and the variables are gone. chmod 600 is a command that sets file permissions so that only the file's owner can read or write it; root is the all-powerful administrator account on the server. Include is the Apache instruction that pulls one configuration file into a virtual host.
Text
<VirtualHost *:80>
    ...
    Include /etc/httpd/private/site-env.conf
</VirtualHost>

Line by line: <VirtualHost *:80> opens the configuration block for one website, the one listening on port 80, the standard port for ordinary web traffic. The ... stands for the rest of that site's settings, which the report does not show. Include /etc/httpd/private/site-env.conf pulls in the file that now holds the keys, so only this one site gets them. </VirtualHost> closes the block. The keys now live in one office instead of on the corridor noticeboard.

  1. Made new OpenAI and Anthropic keys after closing the leak. The old ones return 401. A 401 is the web response code for "you are not authorised", the server's way of saying the old key no longer works.
  2. Blocked dotfiles like .env and .git on every site. A dotfile is any file whose name starts with a dot; .git is the folder where a code repository keeps its history, and it can contain far more than you expect.
  3. Turned on mod_remoteip so Apache logs the real visitor IP from Cloudflare's header, trusted only when it comes from the tunnel on localhost. An IP address is the number that identifies a computer on a network. A header is a small labelled piece of information sent along with every web request, and CF-Connecting-IP is the header Cloudflare uses to pass along the visitor's real address. mod_remoteip is an Apache module, an add-on, that reads that header and writes the real address into the log.
Text
# conf.d/remoteip.conf
RemoteIPHeader CF-Connecting-IP
RemoteIPInternalProxy [redacted] ::1

Line by line: the first line is a comment naming the file, remoteip.conf inside conf.d; the # marks it as a note for humans, not a setting. RemoteIPHeader CF-Connecting-IP tells Apache which header carries the real visitor address. RemoteIPInternalProxy [redacted] ::1 tells Apache to believe that header only when the request comes from the tunnel on the machine itself, at [redacted] or ::1. That last part matters: if Apache believed the header from anyone, a visitor could simply claim any address they liked and the logs would be fiction again.

  1. Changed passwords and rotated the webhook secret, since they had been on the same page.

During the cleanup he made one more mistake: a sed command meant to mask secrets before printing a config file used a pattern that was too narrow and printed two of them in full. sed is a command-line tool for editing text by pattern. He rotated the webhook secret again. His advice is to try a mask on a harmless file first.

His closing points: a leaked key is a symptom, and making a new one before finding the leak just restocks whoever has it; think about who can see a secret, not just where it is stored; phpinfo() is a page that prints your secrets; keep auto-reload off and set a spend limit you could live with losing; and if every line in your access log says localhost, you do not really have access logs.

Things worth testing on your own sites

These are the checks the author's experience suggests, written so that someone who has never done security work can follow them. Only test sites you own or are allowed to test.

  • phpinfo() and similar debug pages on every virtual host. Request common names such as info.php, phpinfo.php and test.php, and query strings such as /?phpinfo=1. A positive result is a page that prints environment variables, server paths or configuration, especially one containing keys or tokens. In plain terms: try the obvious names of forgotten test files on each of your sites, not just the main one.
  • Global environment variables on shared servers. If one site's configuration sets secrets with SetEnv in a global scope, request a page on a different virtual host that prints the environment. A positive result is a secret from another site appearing in that output. In plain terms: check whether site B can see site A's secrets.
  • Log fidelity behind a proxy or tunnel. Compare what the access log records with the real client address. If every entry shows a loopback address, the logs cannot be used for triage, and mod_remoteip (or the equivalent) is missing or misconfigured. In plain terms: if every visitor looks like localhost, your log cannot tell friend from stranger.
  • Dotfile exposure. Request /.env, /.git/config and /.aws/credentials on each site. A 404 is the response code for "no such page". In plain terms: ask for the usual secret files and see whether the server hands them over.
  • Secret masking before sharing. Run any masking command against a harmless file that contains realistic-looking values and check the output before using it on a real configuration file. A positive result is that no secret survives the mask. In plain terms: practise hiding secrets on fake ones before trusting the tool with real ones.
  • Key rotation without leak closure. After a key is rotated, check whether the old exposure path still returns the new value. A positive result is the new key appearing on the same page that leaked the old one. In plain terms: after changing the lock, check the old hiding place is actually gone.

Glossary

  • API: a way for one piece of software to ask another to do something, like a service counter taking a request and returning an answer.
  • API key: a password-like string that proves to a service who is asking and whose bill the request goes on.
  • Token: a short string that stands in for a password or identity.
  • Webhook: an automatic message one service sends to another when something happens.
  • Webhook secret: the shared password proving a webhook message really came from the right place.
  • PHP: a programming language commonly used to build websites.
  • Proxy: a go-between that passes requests on to another system.
  • Apache: common web server software that serves pages and can host many sites at once.
  • Virtual host: one website hosted on a shared web server.
  • Cloudflare tunnel: a service that receives visitors on the internet and passes them to a server, so the server sees only the tunnel.
  • Rotate (a key): replace a key with a new one and discard the old one, like changing a lock.
  • Environment: a set of named values the server keeps and hands to programs, like a shared noticeboard.
  • SetEnv: an Apache instruction that puts a named value into the environment.
  • Web root: the folder whose contents are publicly served as a website.
  • phpinfo(): a PHP function that prints a page describing the server, including its environment.
  • 200: the web response code meaning the page was served successfully.
  • Spend limit: a cap set with a provider so that requests stop once the bill reaches it.
  • Repository (repo): a storage place for code, often online, keeping every past version of every file.
  • History (of a repository): the record of every past version of every file in it.
  • .env: a common file for keeping a program's secrets; the leading dot makes it hidden on many systems.
  • Shell: the text window where you type commands.
  • Shell history: the list of commands you have typed.
  • Server log / access log: the running record of every request a web server receives.
  • ::1 / [redacted] / localhost: addresses a computer uses to refer to itself.
  • Loopback address: an address that points back to the same machine.
  • Scanner: an automated program that tries common file names on many sites looking for exposed files.
  • conf.d: a folder of Apache configuration snippets loaded for the whole server.
  • Global (configuration scope): applying to every site on the server, not just one.
  • Grep: search text for a pattern using the grep command.
  • GET: the ordinary browser request for a page.
  • Query string: the extra part of a URL after the question mark, sent along with the request.
  • Information disclosure: a system revealing something it should have kept private.
  • Unauthenticated: not logged in; no account or password required.
  • Auto-reload: a setting that tops up an account automatically when the balance runs low.
  • chmod 600: a command setting file permissions so only the owner can read or write the file.
  • Root: the all-powerful administrator account on a server.
  • Include: the Apache instruction that pulls one configuration file into a virtual host.
  • 401: the web response code meaning the request is not authorised.
  • Dotfile: any file whose name starts with a dot.
  • .git: the folder where a code repository keeps its history.
  • IP address: the number identifying a computer on a network.
  • Header: a small labelled piece of information sent with every web request.
  • CF-Connecting-IP: the header Cloudflare uses to pass along a visitor's real address.
  • mod_remoteip: an Apache add-on that reads the real visitor address from a header and logs it.
  • sed: a command-line tool for editing text by pattern.
  • 404: the web response code meaning no such page exists.

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.