Site AI Auditpor Internet Solutions

Origin Server IP Exposed? How Attackers Bypass Your CDN

30 de octubre de 20268 min de lecturaSeguridad y SSL
Origin Server IP Exposed? How Attackers Bypass Your CDN

Short answer: A CDN or web application firewall sits in front of your site and filters traffic, but only for requests that pass through it. If an attacker learns the real address of your origin server, they can connect directly and skip every protection the CDN provides. Origin addresses leak through old DNS records, unproxied subdomains, mail servers, certificates and error pages. The fix is to let the origin accept web traffic only from the CDN, and to change the address if it was already exposed.

How a CDN protects you

When you place a content delivery network in front of a website, visitors no longer connect to your server. Your domain points to the CDN, and the CDN forwards requests to your real server, called the origin. This gives you several benefits: pages are cached closer to the visitor, attacks are absorbed by a large network, and a web application firewall can filter harmful requests before they reach you. The overview in do you need a CDN explains the advantages in detail.

All of these benefits rest on one assumption: that visitors, and attackers, can reach your site only through the CDN. The address of the origin is treated like a private phone number. Once it is known, anyone can call it directly.

What attackers do with the real address

An attacker who finds your origin address can do what the CDN would have stopped.

How origin addresses leak

Attackers do not guess; they collect. Several common sources reveal the address.

  1. History. Before you moved behind the CDN, your domain pointed directly to the server. Services that record DNS history keep those old records for years.
  2. Unproxied subdomains. A record such as ftp, cpanel, mail, dev or staging may point to the origin because the proxy was not enabled for it. Anyone can list common subdomain names and look them up.
  3. Mail servers. If your MX or mail hostname sits on the same server as the website, the mail records reveal it. E-mails sent from the server also include the sending address in their headers. Check the guides on Registros MX and reverse DNS for the basics.
  4. Certificates. Scanning services record which server answers on port 443 with which certificate. If your origin presents a certificate for your domain, a scan across the internet can match it. See certificate transparency logs for related information.
  5. Error pages and files. A debug page, a test script or a server status page can print the server address, as covered in debug mode and error messages.
  6. Outbound requests. Plugins that fetch remote URLs, webhooks, pingbacks and image importers contact other servers from the origin, and the receiver sees the address in its logs. Weaknesses such as server-side request forgery can also expose it.
  7. Shared hosting neighbours. On shared servers, other sites on the same address may reveal it.

How to check what is visible

You can review your own exposure in an afternoon.

Do this only for your own domains. Testing other people’s servers without permission is not appropriate.

Lock the origin

Hiding the address is helpful, but it is not enough, because addresses leak. The stronger defence is to make the origin refuse anyone but the CDN.

  1. Restrict by network. Configure the server firewall or your hosting provider’s firewall to accept web traffic on ports 80 and 443 only from the address ranges published by your CDN. Update the list when the provider changes it.
  2. Use authenticated connections. Many CDNs support mutual authentication between the CDN and the origin, so that the origin accepts only connections that present the right certificate.
  3. Use a secret header as an extra layer. The CDN adds a private header and the origin rejects requests without it. This is weaker than network rules because headers can leak, so use it as an addition.
  4. Consider an outbound tunnel. Some providers let the origin connect out to the CDN, so the server needs no open inbound web port at all.
  5. Use the right SSL mode. Choose full encryption with certificate checks between the CDN and the origin, as in CDN SSL modes explained.
  6. Close other doors. Limit administration, database and file transfer ports to trusted addresses.

If the address has already leaked

Firewall rules reduce the damage, but if the address was public for a long time, plan to change it. Ask your host for a new address, or move the site to a new server, then update the DNS records behind the CDN and apply the lockdown rules from the start. Remember that old records, mail settings and monitoring tools may still hold the old address. Changing it is only useful if you also remove the other leaks, or the new address will be exposed the same way.

Keep a small checklist for every new subdomain: should it be proxied, does it reveal the origin, and who owns it. A few minutes at creation time saves a migration later.

Good habits that keep the origin private

Test every change from outside. After you close the origin, request your site normally through the CDN and confirm that it still loads, then confirm that a direct connection to the old address is refused. Both results matter: the first proves that visitors are fine, and the second proves that the lock works.

How Site AI Audit helps

Site AI Audit does not scan the internet for your origin address or configure your CDN. It checks your site from the outside, including SSL, HTTP to HTTPS redirects, security headers, exposed software versions and e-mail authentication, and it explains each finding in plain words, ranked by impact. The first check is free, covers up to 50 pages and needs no sign-up. You can run a free check of your website or see the plans for regular monitoring.

Related reading

The bottom line

A CDN is a strong layer only while the origin is unreachable by other routes. Assume that the origin address can leak, review your DNS, mail and certificates for clues, and then make the origin accept web traffic only from the CDN. If the address is already public, change it and clean up the leaks at the same time. Protection that depends on a secret address is fragile, and protection that is enforced by the network is solid.

FAQ

Can attackers really find my server address behind a CDN?

Often, yes. Old DNS records, subdomains that bypass the proxy, mail headers and certificate scans reveal it. That is why the origin should refuse traffic that does not come from the CDN.

Is hiding the IP address enough?

No. Hiding helps, but leaks are common. Use firewall rules or authenticated connections so that a known address is still useless to an attacker.

Do I need to change my IP after moving behind a CDN?

If the old address was public for a long time, it is wise to change it, or at least to lock the origin to CDN traffic. Do both when you can.

Can my mail server reveal the origin?

Yes, if it runs on the same address as the website. Use a separate mail service or server, so that mail records and headers do not point to the web server.

Does a secret header protect the origin?

Only a little. It is a useful extra, but the main protection should be network rules or authenticated connections, because a header can be copied if it leaks.

#Web hosting#Web vulnerabilities#Website security
Analiza tu propia web — gratis.Qué corregir en tu web — y por dónde empezar.
Empieza gratis
Internet Solutions

Más de nuestro equipo

Creadas por Internet Solutions. Prueba nuestros otros productos: cada uno te ahorra tiempo de una forma distinta.

internet-solutions.net ↗