Skip to content
CORS Write-up Intermediate

Broke limited scope with a chain of bugs (tips for every rider CORS)

A CORS policy on the main domain trusted any subdomain, allowing an attacker-controlled subdomain to read authenticated users' data. The author also found a WordPress site on a subdomain with weak credentials and used it to host an exploit that stole user information.

Valeriy Shevchenko Follow

Published on medium.com

{{media:0}}

Valeriy Shevchenko, 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 write-up covers two private bug bounty programs and a chain built on a single main domain that was the only asset in scope. The first program allowed testing of one main domain only; subdomains were explicitly outside the programme. The main domain sat behind a CORS policy that trusted subdomains, and the researcher found a WordPress installation on a subdomain, took it over, and from there attacked users of the main domain. The second part of the article collects other CORS misconfigurations the author met in the wild, including a pre-domain wildcard and a null origin case.

The author's stated position is that limiting scope creates additional risk: if a company leaks data through a subdomain outside the main scope, GDPR or CCPA fines still apply. The chain in this report is his demonstration of that point.

Setup

The work was done on private programmes, with no special tooling described beyond a browser, a simple dictionary and a tracking pixel. The relevant preconditions were:

  1. A main domain in scope, with subdomains out of scope.
  2. A CORS policy on the main domain that reflected subdomain origins and allowed credentials.
  3. At least one subdomain running an outdated WordPress installation.
  4. Editor rights on that WordPress, so a script could be placed on its main page.

Before this engagement the author's HackerOne profile had zero reputation, and he describes a prior negative score from a report that was not a security issue. Getting reputation back was the motivation for the work.

Finding it

After a few requests to the server of the in-scope main domain, the CORS policy looked wrong. A request with an attacker-controlled subdomain origin:

HTTP
Origin: attacker.companyname.com

came back with *.companyname.com and the extra header Access-Control-Allow-Credentials: true.

The wildcard was a subdomain wildcard, which the author found odd given that subdomains were not part of the programme. To show the company that the scope limitation was strange in this situation, he started looking for subdomains that would let him carry out an attack.

From an attacker's perspective the configuration becomes dangerous if a subdomain can be taken over, or if an XSS can be planted on one of them. Attempts at subdomain takeover failed, so he went looking for XSS on the subdomains. A list of WordPress sites caught his attention. Most were abandoned, with the last articles published years earlier, and it was obvious to him that their versions were subject to the latest critical vulnerabilities. Exploiting a few of them did not work: most of the attempts assumed at least minimal user rights on WordPress.

Exploitation

Step 1: brute-force WordPress credentials over XML-RPC

The author notes that an available XML-RPC endpoint is itself an underestimated issue. He built a small dictionary of usernames and passwords using keywords such as the company name, the city and the year the company was founded. Identifying users was not difficult. A couple of minutes later he had access to one WordPress installation, where a user had the password equal to the company name, and that user, judging by LinkedIn, had not worked for the company for a long time.

Step 2: plant a tracking pixel

On the first day of research he created a new blank publication on the captured WordPress containing a tracking pixel from IPLogger, so that he could watch for activity on the site. He says this helped him a lot later.

Step 3: cross-origin read from the main domain

With editor rights he placed the following code on the main page of the controlled WordPress site:

HTML
<script>function cors() {  var xhttp = new XMLHttpRequest();  xhttp.onreadystatechange = function() {        if (this.status == 200) {        console.log('Ololo >>>', this.responseText);             }  };  xhttp.open("GET", "https://www.example.com/v/account/welcome/show", true);  xhttp.withCredentials = true;  xhttp.send();}cors();</script>

The script issues a GET to the main domain's account welcome endpoint with withCredentials = true and logs the response body when the status is 200. The CORS policy reflected a subdomain origin and allowed credentials, which is what the attack relied on. The attack scenario is a showcase: the user only has to open mywordpress.example.com, and the active login session from the main domain is readable from the subdomain, along with all the sensitive information about the user.

Step 4: remote code execution on the subdomain

With the WordPress installation under control, the author spent more time and produced a PoC in which a user with User rights could execute commands on the server itself. He used the known vulnerability CVE-2019-8942 for this.

Step 5: two reports and a 15-day wait

He filed two separate reports, one for the CORS chain and one for the RCE. The CORS report was triaged quickly, reproduced quickly enough, and the company started fixing it. The RCE report stayed open for 15 days.

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

A couple of days later the tracking pixel showed activity on the captured WordPress, and another day later the site was unavailable. The CORS report was marked as fixed and closed, while the RCE report remained open. The author used the communication channel to lay out the facts: company employees had entered the captured site, performed actions there and eventually shut it down. The next day there was no reply from the company, but two emails from HackerOne arrived saying both reports were closed and both were paid. His main goal, reputation points, was met.

Root cause

The main domain reflected the requesting origin when it was a subdomain of the company domain, and combined that with Access-Control-Allow-Credentials: true. Any page served from any subdomain could therefore read authenticated responses from the main domain. The scope limitation did not remove the risk, because the trust boundary in the CORS policy was the whole subdomain space, not the single in-scope domain. The chain needed a foothold on a subdomain, which an abandoned WordPress installation with weak credentials and an XML-RPC endpoint provided.

Impact

Under the conditions above, an attacker who controls any subdomain can read sensitive information belonging to a logged-in user of the main domain when that user visits the attacker-controlled page. On the WordPress subdomain, a user with User rights could execute commands on the server through CVE-2019-8942. Both were accepted and paid by the programme.

Fix

The report does not describe the fix that was applied. The CORS report was marked as fixed and closed; what changed is not stated.

Variants to test

The author lists four CORS configuration patterns he has seen in the wild: subdomain wildcard, pre-domain wildcard, post-domain wildcard and null origin. Two of them are shown with concrete requests.

Pre-domain wildcard

On a second private programme, referred to as trustcasino.com, the site trusted a domain without right-side restrictions and without checking the Referer. Sending these headers:

HTTP
Origin: https://www.trustcasino.com.anydomain.comReferer: https://anydomain.com

produced this response:

HTTP
Access-Control-Allow-Credentials: trueAccess-Control-Allow-Origin: https://www.trustcasino.com.anydomain.comAccess-Control-Allow-Methods: POST, GET

The response reflected the origin containing the trusted domain followed by the attacker domain. To exploit it, host the following page at https://www.trustcasino.com.anydomain.com/pidor.html and lure the user to it:

HTML
<html>  <body>  <script>history.pushState('', '', '/')</script>    <script>      function submitRequest()      {        var xhr = new XMLHttpRequest();        xhr.open("GET", "https:\/\/www.trustcasino.com\/myaccount\/deposit.json", true);        xhr.withCredentials = true;        var body = "";        var aBody = new Uint8Array(body.length);        for (var i = 0; i < aBody.length; i++)          aBody[i] = body.charCodeAt(i);    xhr.onreadystatechange = function() {            if (xhr.readyState === 4) {            alert(xhr.response);            }    }         xhr.send(new Blob([aBody]));      }    </script>    <form action="#">      <input type="button" value="Submit request" onclick="submitRequest();" />    </form>  </body></html>

When the user reaches the attacker's page, all information about the trustcasino.com user account is transmitted to the attacker domain.

Null origin

Another configuration accepted a null origin. This request:

HTTP
GET /alltransactionsHost: docs.bigbank.comOrigin: null

returned:

HTTP
HTTP/1.1 200 OKAcess-Control-Allow-Origin: nullAccess-Control-Allow-Credentials: true

The author's understanding of the PoC for this case is a sandboxed iframe loading a data URL:

HTML
<iframe sandbox="allow-scripts allow-top-navigation allow-forms" src='data:text/html,<script>*cors stuff here*</script>’></iframe>

The author's understanding is that a sandboxed iframe with a data URL gives a null origin, which the server reflects while allowing credentials.

What to look for

The author's summary of what can be found in the wild is exactly these four: subdomain wildcard, pre-domain wildcard, post-domain wildcard and null origin.

References

The article links the following further reading:

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 joined a private bug bounty programme, a scheme where a company invites selected testers to look for security problems in its systems and pays for the ones they find. The programme had a limited scope: only one main domain could be tested, and its subdomains were explicitly off limits. A subdomain is a smaller address that sits under a main one, so if the main domain is example.com, then shop.example.com and blog.example.com are subdomains.

The researcher found that the main domain had a badly configured CORS policy. CORS stands for Cross-Origin Resource Sharing. It is a set of rules a website uses to tell browsers which other websites are allowed to read its responses. Think of it like a guest list at a club door: the browser asks the server "is this website allowed in?" and the server answers with headers, small labels attached to the response. If the guest list is too generous, the wrong website gets in.

In this case the guest list said "any subdomain of the company is welcome, and it may bring the visitor's login along". That was a problem, because the programme said subdomains were out of scope. The researcher decided to prove the point: he found a weak subdomain, gained access to its WordPress, and used it to read data from the main domain. Along the way he also got remote code execution (RCE), which means running his own commands on the company's server, on that subdomain. He filed two reports and both were eventually paid.

The second half of the article collects other CORS mistakes the author has met in the wild, with concrete requests and responses.

Valeriy Shevchenko
Valeriy Shevchenko From the original on medium.com

The starting point: reputation and a private programme

One morning the author was asked to join a private bug bounty programme. He explains that most of his security experience comes from such private projects. On one hand this is good, because there is almost no race to find the most dangerous bug before other people do. On the other hand, he calls it a slow place to grow.

The person who invited him asked for a link to his HackerOne account. HackerOne is a platform where companies run bug bounty programmes and researchers submit reports; each researcher has a public profile with a reputation score, a number that grows when reports are accepted and falls when they are rejected. The author shared the link but was a little embarrassed: at that moment his profile had zero reputation. It had even been slightly negative, because he had once used HackerOne to tell a company about broken functionality, a problem that was not a security issue, and received a negative score for it. He had not used the account since. He decided to fix the situation by all means.

He tried to rehabilitate himself on several programmes. Both were private, and that did not make things simpler, because people with famous names in information security had already found many vulnerabilities there before him.

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

Limited scope, and why the author thinks it is a mistake

In the first programme a limited scope was waiting for him. Limited scope means only certain domains and subdomains are allowed to be tested. Everything else is off limits by the rules of the programme.

This way of doing things always surprises the author a little. His argument: if a company is found to have leaked data through a subdomain that was outside the main scope, the company still cannot escape GDPR or CCPA fines. GDPR and CCPA are privacy laws in Europe and California that punish companies for losing personal data, regardless of which server the leak came through. He frames this as an economic argument, and says that in his opinion limiting scope creates additional risks rather than removing them.

The strange CORS policy on the main domain

When he started looking for vulnerabilities in just the one main domain, he found an interesting surprise. Right after several requests to the server, he noticed a CORS policy configured very strangely.

He sent a request with this header:

HTTP
Origin: attacker.companyname.com

Let us unpack that. Every time your browser loads something from another website, it attaches an Origin header saying where the request comes from. Here the researcher sent a request with an origin at attacker.companyname.com. The server's answer was *.companyname.com and the extra header Access-Control-Allow-Credentials: true.

Two things matter in that answer. The * is a wildcard, a symbol meaning "anything". So *.companyname.com means "any subdomain of companyname.com". And Access-Control-Allow-Credentials: true tells the browser that the request may carry the visitor's credentials, meaning cookies and other login data. A cookie is a small piece of data a site stores in your browser so it can recognise you on the next request; it is what keeps you logged in. Allowing credentials means the request may carry the visitor's cookies, so the server may treat it as coming from a logged-in user.

In this case the wildcard was a subdomain wildcard. The author found it odd, given that subdomains were not part of the vulnerability search programme at all. He decided to prove to the company that the programme's limitations were strange in such a case, and started searching for subdomains that would let him carry out his attack scenario.

From an attacker's perspective, this CORS configuration becomes dangerous if he can find a way to make a subdomain takeover, meaning registering or controlling a subdomain that the company no longer uses but still points to, or if he can plant an XSS on one of the subdomains. XSS, cross-site scripting, means getting your own JavaScript code to run inside a page of the target site, as if the site itself had published it. JavaScript is the programming language browsers run to make pages interactive.

Finding a foothold on a subdomain

Attempts to find a valid bug through subdomain takeover failed, so he decided to dig for XSS on any of the subdomains. A list of WordPress sites caught his attention. WordPress is a very popular program for building websites and blogs. Most of these sites were abandoned, with the last articles written a few years earlier. It was obvious to him that their versions were subject to all the latest critical vulnerabilities. He tried to exploit a few of them, but the attempts were unsuccessful, because most of them assumed at least minimal user rights on WordPress, in other words a valid account on the site.

At this point he says hello to the owners of the NordVPN programme, who accept reports from scanners without real examples of exploitation. A scanner is an automated tool that checks for known weaknesses without proving they can actually be used.

Then he simply decided to brute-force credentials through XML-RPC. Brute-forcing means trying many username and password combinations automatically, like trying every key on a big ring until one opens the door. XML-RPC is a feature of WordPress that lets other programs talk to the site over the network, and it can be used to test logins. The author notes that an available XML-RPC is also one of the underestimated vulnerabilities.

A couple of minutes later he had gathered a simple dictionary for his attack, with usernames and passwords. A dictionary here means a list of likely guesses. It was not difficult to identify users, and the dictionary contained keywords: the company name, the city, the year the company was founded and everything like that. A couple of minutes later he got access to one of the WordPress installations, where for some reason there was a user whose password was the company name. That user, judging by LinkedIn, had not worked for the company for a long time. LinkedIn is a professional social network where people list their jobs.

Watching the site with a tracking pixel

The chain of vulnerabilities for exploitation on the main domain began to develop slowly. For a few days he continued to figure out which version of the engine it was, which theme was used, which plug-ins were installed. A theme is the visual template of a WordPress site; a plug-in is an add-on that gives it extra features.

But on his first day of research he did something important. He embedded a tracking pixel from IPLogger by creating a new blank publication on the captured WordPress. A tracking pixel is a tiny, invisible image that a server logs every time it is loaded, so you can tell when someone visits the page that contains it. IPLogger is a service that provides such pixels and shows you the visits. This helped him a lot later.

The attack on users of the main domain

The following code was used to attack the main domain.

HTML
<script>function cors() {  var xhttp = new XMLHttpRequest();  xhttp.onreadystatechange = function() {        if (this.status == 200) {        console.log('Ololo >>>', this.responseText);             }  };  xhttp.open("GET", "https://www.example.com/v/account/welcome/show", true);  xhttp.withCredentials = true;  xhttp.send();}cors();</script>

Line by line, in plain words:

  1. <script> and </script> mark the start and end of a piece of JavaScript that the browser will run.
  2. function cors() { ... } defines a named block of code, here called cors, that does the work when called.
  3. var xhttp = new XMLHttpRequest(); creates an object that can send requests to a server from inside a page, without reloading it. This is the tool a page uses to fetch data in the background.
  4. xhttp.onreadystatechange = function() { ... } sets up a function that runs every time the request changes state, for example when the answer arrives.
  5. if (this.status == 200) checks whether the server answered with status 200, the standard code for "OK, here is your content".
  6. console.log('Ololo >>>', this.responseText); prints the response body to the browser's developer console. responseText is the content the server sent back. In a real attack this is where the stolen data would be sent to the attacker instead of printed.
  7. xhttp.open("GET", "https://www.example.com/v/account/welcome/show", true); prepares a GET request. GET is the ordinary method a browser uses to ask for a page or a piece of data. The address is the account welcome endpoint of the main domain, and true means the request runs asynchronously, without freezing the page.
  8. xhttp.withCredentials = true; is the crucial line. It tells the browser that the request may carry the visitor's cookies.
  9. xhttp.send(); actually sends the request.
  10. cors(); calls the function, so everything above runs as soon as the script loads.

He put this script on the main page of a controlled WordPress site, using his editor rights. Editor rights are a level of permission on WordPress that lets a user write and publish posts. In fact this was his final plan for a showcase attack scenario on users. All the user had to do was open mywordpress.example.com, and all his important data could be caught by the attacker. In the author's words, the user's active login session from the main domain could be read from the subdomain, together with sensitive information about the user.

With those results he could have gone to write a report and get HackerOne reputation points and even some money. But he could not let go of the thought that the controlled WordPress might have something else.

Remote code execution on the subdomain

After spending a little more time, he was able to produce a proof of concept, a PoC, meaning a demonstration that the attack really works, where a user with User rights could execute commands on the server itself. That is RCE, remote code execution: the ability to run your own commands on someone else's machine over the network. In his situation he used the known vulnerability CVE-2019-8942. A CVE is a public catalogue number given to a specific, documented security flaw, so people can refer to it unambiguously.

In the end he was able to build a chain of vulnerabilities to attack the user through a loosely configured CORS policy, and he was also able to get RCE on one of the subdomains.

Two reports, fifteen days, and a tracking pixel

He logged two different reports and started waiting. The report with CORS was triaged pretty quickly. Triage is the first step a programme performs on a report: someone checks that it is real, in scope and worth pursuing. They were able to reproduce it quickly enough and started working on fixing it. But the report with RCE remained open for 15 days. Here the tracking pixel from IPLogger came to his aid.

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

He found activity on his captured WordPress a couple of days later, and another day later the site was unavailable. The main report on CORS was marked as fixed and closed, but the RCE on the WordPress subdomain still remained open. This made him very angry, and he used the communication channel to sort out the situation. In his email he provided the facts of how the company's employees had entered the captured site, performed some actions there and eventually shut it down. The next day he received no responses from the company, but he received two emails from HackerOne informing him that both reports were closed and both were paid for. He was glad, since his main goal was to get some reputation scores, which everyone loves to look at.

Other CORS mistakes seen in the wild

In real life the author has also met a CORS misconfiguration where the site trusted a domain without right-side restrictions and without checking the Referer. The Referer header is sent by the browser and says which page the request came from; a server can use it as an extra check. This problem was found on another private programme. To comply with the privacy policy, he calls that site trustcasino.com.

During interaction with the site, the following was detected. If a request was sent with these headers:

HTTP
Origin: https://www.trustcasino.com.anydomain.comReferer: https://anydomain.com

The response was:

HTTP
Access-Control-Allow-Credentials: trueAccess-Control-Allow-Origin: https://www.trustcasino.com.anydomain.comAccess-Control-Allow-Methods: POST, GET

The response reflected the origin that had the trusted name followed by the attacker domain. But the attacker's domain, anydomain.com, is simply appended after the trusted name, so the whole string https://www.trustcasino.com.anydomain.com begins with the trusted text and passes the check. This is a pre-domain wildcard: the trusted name is used as a prefix. The response then reflects that origin back in Access-Control-Allow-Origin, allows credentials, and lists the methods POST and GET as permitted. POST is the method a browser uses to send data to a server, for example when submitting a form.

As a result of such an error in the CORS policy, it was possible to receive data from an authorised user on trustcasino.com. All you needed to do was create the following address, https://www.trustcasino.com.anydomain.com/pidor.html, and lure the user to it. The pidor.html file itself should contain the following code.

HTML
<html>  <body>  <script>history.pushState('', '', '/')</script>    <script>      function submitRequest()      {        var xhr = new XMLHttpRequest();        xhr.open("GET", "https:\/\/www.trustcasino.com\/myaccount\/deposit.json", true);        xhr.withCredentials = true;        var body = "";        var aBody = new Uint8Array(body.length);        for (var i = 0; i < aBody.length; i++)          aBody[i] = body.charCodeAt(i);    xhr.onreadystatechange = function() {            if (xhr.readyState === 4) {            alert(xhr.response);            }    }         xhr.send(new Blob([aBody]));      }    </script>    <form action="#">      <input type="button" value="Submit request" onclick="submitRequest();" />    </form>  </body></html>

Line by line, in plain words:

  1. <html>, <body> and their closing tags are the basic skeleton of a web page.
  2. <script>history.pushState('', '', '/')</script> changes the address shown in the browser bar without reloading the page. It makes the attacker's page look a little more like the real site.
  3. function submitRequest() { ... } defines the function that performs the theft when the user clicks the button.
  4. var xhr = new XMLHttpRequest(); creates the request object, as in the earlier script.
  5. xhr.open("GET", "https:\/\/www.trustcasino.com\/myaccount\/deposit.json", true); prepares a GET to the account deposit endpoint of trustcasino.com. The backslashes are just escaping the slashes inside the JavaScript string; the address is the same as https://www.trustcasino.com/myaccount/deposit.json.
  6. xhr.withCredentials = true; again attaches the victim's cookies, so the site answers as the logged-in user.
  7. var body = ""; creates an empty body, because a GET request does not need to send data.
  8. var aBody = new Uint8Array(body.length); makes a byte array the same length as the body, here zero bytes.
  9. The for loop copies each character of the body into that byte array. With an empty body the loop does nothing, but the pattern is there for requests that do send data.
  10. xhr.onreadystatechange = function() { ... } sets the function that runs when the request state changes.
  11. if (xhr.readyState === 4) checks whether the request is complete. readyState 4 means the response has fully arrived.
  12. alert(xhr.response); shows the response in a pop-up box. In a real attack the data would be sent to the attacker's server instead.
  13. xhr.send(new Blob([aBody])); sends the request, with the byte array wrapped in a Blob, which is a container for raw binary data.
  14. The <form> with an <input type="button"> creates a button labelled "Submit request". onclick="submitRequest();" makes the button call the function when clicked.

When a user reaches the attacker's page at trustcasino.com.anydomain.com/pidor.html, all information about the trustcasino.com user account is transmitted to the attacker domain.

The null origin case

There is also another CORS configuration error. With such a request:

HTTP
GET /alltransactionsHost: docs.bigbank.comOrigin: null

we receive this:

HTTP
HTTP/1.1 200 OKAcess-Control-Allow-Origin: nullAccess-Control-Allow-Credentials: true

Here the request asks for /alltransactions on the host docs.bigbank.com, and the Origin header is the literal word null. A null origin is what a browser sends when a page has no normal web address, for example a page loaded from a data: URL, which is a page whose whole content is written inside the address itself. The server answers 200 OK, reflects null in Acess-Control-Allow-Origin (spelled that way in the response shown), and allows credentials.

As the author understood it, the PoC for such an attack should look like this:

HTML
<iframe sandbox="allow-scripts allow-top-navigation allow-forms" src='data:text/html,<script>*cors stuff here*</script>’></iframe>

An iframe is a frame inside a page that loads another page. The sandbox attribute restricts what that inner page may do; the listed values allow-scripts, allow-top-navigation and allow-forms re-enable scripts, navigation of the top window and forms. The src is a data:text/html,... URL, so the inner page is built from the text in the address, and such a page gets a null origin. The *cors stuff here* is a placeholder where the actual request code would go.

In summary

There are such things that can be found in the wild around CORS configuration policy which can help attackers: subdomain wildcard, pre-domain wildcard, post-domain wildcard and null origin.

References

The article links the following further reading:

Glossary

  • Bug bounty programme: a scheme where a company invites testers to look for security problems and pays for valid reports.
  • Private programme: a bug bounty programme open only to invited researchers.
  • Scope: the list of systems a programme allows you to test. Limited scope means only certain domains and subdomains are allowed.
  • Domain: the main part of a web address, such as example.com.
  • Subdomain: a smaller address under a main domain, such as shop.example.com.
  • HackerOne: a platform where companies run bug bounty programmes and researchers submit reports and build a reputation.
  • Reputation: a score on a researcher's profile that grows with accepted reports and falls with rejected ones.
  • GDPR / CCPA: privacy laws in Europe and California that fine companies for mishandling personal data.
  • CORS (Cross-Origin Resource Sharing): rules a website uses to tell browsers which other websites may read its responses.
  • Origin: the combination of scheme, host and port that a request comes from, sent by the browser in the Origin header.
  • Header: a small label attached to a request or response carrying extra information.
  • Wildcard: a symbol, usually *, meaning "anything".
  • Subdomain wildcard: a CORS rule that trusts any subdomain of a domain.
  • Pre-domain wildcard: a CORS rule that trusts any origin beginning with the trusted name, so an attacker domain can be appended after it.
  • Post-domain wildcard: a CORS rule that trusts any origin ending with the trusted name, so an attacker domain can be placed before it.
  • Null origin: the origin a browser sends for pages that have no normal web address, such as data: URLs.
  • Credentials: cookies and other login data that identify a user to a site.
  • Cookie: a small piece of data stored in the browser that lets a site recognise a returning user.
  • Session: the period during which a site treats you as logged in, usually carried by a cookie.
  • Access-Control-Allow-Credentials: a response header that says whether the request may carry credentials.
  • Access-Control-Allow-Origin: a response header that says which origin is allowed to read the response.
  • Access-Control-Allow-Methods: a response header that lists which request methods are allowed.
  • Referer: a request header saying which page the request came from.
  • GET / POST: the two most common request methods; GET asks for data, POST sends data.
  • Status 200: the standard response code meaning "OK".
  • Endpoint: a specific address on a server that returns a particular piece of data or performs a particular action.
  • API: a way for one program to talk to another over the network, usually through such endpoints.
  • XML-RPC: a WordPress feature that lets other programs talk to the site over the network, including testing logins.
  • Brute-force: trying many username and password combinations automatically until one works.
  • Dictionary attack: a brute-force attempt using a list of likely guesses, such as company names, cities and years.
  • WordPress: a very popular program for building websites and blogs.
  • Theme / plug-in: a visual template for a WordPress site, and an add-on that gives it extra features.
  • Editor rights / User rights: levels of permission on WordPress; an editor can write and publish posts, a user has fewer rights.
  • XSS (cross-site scripting): getting your own JavaScript to run inside a page of the target site.
  • JavaScript: the programming language browsers run to make pages interactive.
  • Subdomain takeover: gaining control of a subdomain the company no longer uses but still points to.
  • RCE (remote code execution): running your own commands on someone else's server over the network.
  • CVE: a public catalogue number for a specific documented security flaw, such as CVE-2019-8942.
  • PoC (proof of concept): a demonstration that an attack really works.
  • Triage: the first check a programme performs on a report to confirm it is real and in scope.
  • Tracking pixel: a tiny invisible image that a server logs every time it is loaded, used to detect visits.
  • IPLogger: a service that provides tracking pixels and shows the visits.
  • XMLHttpRequest: the browser object a page uses to send requests in the background.
  • withCredentials: a setting on such a request that makes the browser attach cookies.
  • readyState: a number showing how far a request has progressed; 4 means complete.
  • responseText / response: the content the server sent back.
  • Blob: a container for raw binary data in JavaScript.
  • iframe: a frame inside a page that loads another page.
  • sandbox: an attribute on an iframe that restricts what the inner page may do.
  • data: URL: an address whose content is written inside the address itself.
  • history.pushState: a browser function that changes the address bar without reloading the page.
  • Scanner: an automated tool that checks for known weaknesses without proving they can be used.

More by Valeriy Shevchenko

View all

11 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

CORS misconfiguration

The lesson behind this report.

A permissive cross-origin policy lets another site read responses with the user's credentials.