🕵️
VeryLazyTech
📜 Medium🛒 My Shop👾 Github📩 Telegram 📺 YouTube✖ Twitter
  • 🕵️Welcome!
    • VeryLazyTech
    • Support VeryLazyTech
      • 👾 GitHub
      • 📜 Medium
      • ☕ My Shop
      • 📺 YouTube
      • ✖ Twitter
      • 📩 Telegram
  • 🛡️ Vulnerabilities and Exploits
    • CVE - POC
      • Unauthenticated RCE Flaw in Rejetto HTTP File Server - CVE-2024-23692
      • POC - CVE-2024–4956 - Nexus Repository Manager 3 Unauthenticated Path Traversal
      • POC - CVE-2024-45241: Path Traversal in CentralSquare's CryWolf
      • Telerik Auth Bypass CVE-2024-4358
      • Check Point Security Gateways Information Disclosure - CVE-2024-24919
      • CVE-2024-23897 - Jenkins File Read Vulnerability
      • CVE-2024–10914- Command Injection Vulnerability in name parameter for D-Link NAS
      • POC - CVE-2024-21534 Jsonpath-plus vulnerable to Remote Code Execution (RCE)
      • CVE-2024-9935 - PDF Generator Addon for Elementor Page Builder <= 1.7.5 - Unauthenticated Arbitrary
      • CVE-2024-50623- Cleo Unrestricted file upload and download
      • POC - WordPress File Upload plugin, in the wfu_file_downloader.php file before version <= 4.24.11
      • POC - Remote and unauthenticated attacker can send crafted HTTP requests to RCE - cve-2025-3248
      • POC - CVE-2025–2539 File Away <= 3.9.9.0.1 - Missing Authorization to Unauthenticated Arbitrary File
      • POC - CVE-2025-29306 FOXCMS /images/index.html Code Execution Vulnerability
  • 🕵️‍♂️Dorks
    • GitHub Dorks
    • Google Dork Online Tool
  • 📚 Resources
    • Top Hacking Books for 2024: FREE and Paid
    • How to Study for OSCP with the PWK Book PDF
    • Top 20 phishing tools to use in 2024
    • Top 8 Bug Bounty Books for 2025: Must-Reads for Ethical Hackers
    • Top Hacking Tools and Skills You Need to Learn in 2025
    • Offensive Cloud
    • Penetration Testing & Hacking Tools List
    • Top Cybersecurity Books by Topic
  • The Ultimate Penetration Testing Methodology (2025 Edition)
  • 🕸️Pentesting Web
    • Client Side Template Injection (CSTI)
    • Identify a Server’s Origin IP
    • 2FA/MFA/OTP Bypass
  • IDOR
  • Open Redirect
  • Subdomain Takeover
  • Penetration Testing WiFi Networks
  • Client-Side Path Traversal
  • Clickjacking
  • Command Injection
  • JWT Vulnerabilities
  • Bypass rating limit
  • CORS - Misconfigurations & Bypass
  • LDAP Injection
  • File upload vulnerabilities
  • Content Security Policy (CSP) bypass
  • 🐧Linux
    • Practical Linux Commands
    • Bypassing Bash Restrictions - Rbash
    • Privilege escalation - Linux
  • Linux Environment Variables
  • 🪟Windows
    • Active Directory Methodology
  • 🌐Network Pentesting
    • FTP - Port 21
    • SSH- Port 22
    • Telnet - Port 23
    • SMTP/s - Port 25,465,587
    • WHOIS - Port 43
    • TACACS+ - Port 49
    • DNS - Port 53
    • TFTP/Bittorrent-tracker - Port 69/UDP
    • Finger - Port 79
    • Web - Port 80,443
    • Kerberos - Port 88
    • POP - Port 110/995
    • Portmapper - Port 111/TCP/UDP
    • Ident - Port 113
    • NTP - Port 123/UDP
    • MSRPC - Port 135, 539
    • NetBios - Port 137,138,139
    • SMB - Port 139 445
    • IMAP - Port 143, 993
    • SNMP - Ports 161, 162, 10161, and 10162/UDP
    • IRC - Ports 194,6667,6660-7000
    • Check Point Firewall - Port 264
    • LDAP - Ports 389, 636, 3268, 3269
    • IPsec/IKE VPN - Port 500/UDP
    • Modbus - Port 502
    • Rexec - Port 512
    • Rlogin - Port 513
    • Rsh - Port 514
    • Line Printer Daemon (LPD) - Port 515
    • Apple Filing Protocol (AFP) - PORT 548
    • RTSP - Port 554, 8554
    • IPMI - Port 623/UDP/TCP
    • Internet Printing Protocol (IPP) - Port 631
    • EPP - Port 700
    • Rsync - Port 873
    • Rusersd Service - Port 1026
    • Socks - Port 1080
    • Java RMI - RMI-IIOP - Port 1098/1099/1050
    • MSSQL (Microsoft SQL Server) - Port 1433
    • Oracle TNS Listener - Port 1521,1522-1529
  • PPTP - Port 1723
  • MQTT (Message Queuing Telemetry Transport) - Port 1883
  • Compaq HP Insight Manager - Port 2301, 2381
  • NFS Service - Port 2049
  • Docker - Port 2375,2376
  • Squid - Port 3128
  • iScsi - Port 3260
  • SAPRouter - Port 3299
  • 😎Post-exploitation
    • File Transfer Cheatsheet: Windows and Linux
  • 🧑‍🔧Technical guides
    • Kali Linux - Installation
Powered by GitBook
On this page
  • What is an Origin IP?
  • Why is Identifying an Origin IP Important?
  • How to Find the Origin IP of a Server
  • 1. Using WHOIS and Host Lookup
  • 2. SSL Certificates Enumeration
  • 3. Subdomain Enumeration
  • 4. Analyzing DNS Records
  • Types of DNS records
  • 5. Checking CDN IP Ranges
  • 6. Host Header Fuzzing
  • 7. WordPress Pingback Exploit
  • 8. Using CloudFlair Tool
  • Conclusion

Was this helpful?

  1. Pentesting Web

Identify a Server’s Origin IP

PreviousClient Side Template Injection (CSTI)Next2FA/MFA/OTP Bypass

Last updated 2 months ago

Was this helpful?

  • Become VeryLazyTech ! 🎁

  • Follow us on:

    • ✖ Twitter .

    • 👾 Github .

    • 📜 Medium .

    • 📺 YouTube .

    • 📩 Telegram .

    • 🕵️‍♂️ My Site .

  • Visit our for e-books and courses. 📚

What is an Origin IP?

An Origin IP refers to the actual IP address of a server hosting a website or application. Many websites today use Content Delivery Networks (CDNs) like Cloudflare, Akamai, and Amazon CloudFront to mask their true IP addresses for security, performance, and reliability reasons. These CDNs act as reverse proxies, handling all incoming traffic and providing:

  • DDoS Protection: Absorbs and mitigates malicious traffic to prevent downtime.

  • Load Balancing: Distributes traffic to multiple servers to ensure availability.

  • Content Caching: Stores static content closer to users to improve performance (such as images, CSS, and JavaScript files).

When you make an HTTP request to a domain using a CDN, you are actually communicating with the CDN’s edge servers rather than the real server. This prevents attackers from easily discovering the actual server hosting the website.

Why is Identifying an Origin IP Important?

Finding the real server IP address is critical for cybersecurity researchers, penetration testers, and even malicious attackers. It allows them to:

  • Map network infrastructure and locate services operating on different IPs.

  • Bypass CDN protection to test for vulnerabilities directly.

  • Launch targeted attacks such as DDoS, direct exploitation, and reconnaissance.

Compare with this next diagram, showing how a pingback will convince the Wordpress server to reach out to our “honeypot” pingback server which relays the IP address it finds back to us.

How to Find the Origin IP of a Server

Despite the protection offered by CDNs, several techniques can help reveal a server’s real IP address. Below are some of the most effective methods.

1. Using WHOIS and Host Lookup

First, we can use whois and host to gather more information about the target domain:

$ host verylazytech.com
verylazytech.com has address 172.67.XX.XX
verylazytech.com has address 162.169.XX.XX

$ whois 172.67.XX.XX
...
NetRange: 172.64.0.0 - 172.71.255.255
NetName: CLOUDFLARENET
OrgName: Cloudflare, Inc.
...

These results confirm that the domain is behind Cloudflare, meaning requests are routed through the CDN.

2. SSL Certificates Enumeration

SSL certificates can reveal the origin server’s IP by analyzing its public certificate information. Tools like Censys and crt.sh can help.

  1. Look for associated IP addresses.

  2. Use curl to verify:

$ curl -v http://52.19.60.183/ -H 'Host: verylazytech.com'

Response:

HTTP/1.1 301 Moved Permanently
Content-Type: text/html
Location: https://verylazytech.com:443/<html>
<head><title>301 Moved Permanently</title></head>
<body>
<center><h1>301 Moved Permanently</h1></center>

This method is one of the simplest and most efficient ways to identify the real IP address of a target. Keep in mind that the different IP addresses identified during our investigation won’t necessarily be the host IPs for enji.ai, but they provide valuable clues about the present subnet and expanding our attack surface.

3. Subdomain Enumeration

Subdomains often bypass the CDN, exposing real IP addresses. Use Subfinder to find them:

$ subfinder -d verylazytech.com
[INF] Enumerating subdomains for verylazytech.com
...
medium.verylazytech.com
...

Next, verify whether the subdomain is routed through the CDN:

$ host medium.verylazytech.com
medium.verylazytech.com has address 52.19.60.183

If the IP is different from the main domain, it might be the origin server.

4. Analyzing DNS Records

By examining the DNS records of a domain, an attacker could potentially discover previously exposed IP addresses of the server from times when it was not behind a CDN. DNS records provide various types of information about a domain, and by analyzing these records, penetration testers can gather valuable insights that may lead to the discovery of the origin IP.

Types of DNS records

Different types of DNS records can reveal specific details about the domain and its infrastructure:

  • A Records: These records map a domain name to an IPv4 address. By examining historical A records, one can find previous IP addresses that may have been used by the domain before switching to a CDN.

  • AAAA Records: Similar to A records but for IPv6 addresses. Historical AAAA records can also provide information on previous IPv6 addresses.

  • MX Records: Mail Exchange records specify the mail servers responsible for receiving email on behalf of the domain. Sometimes, these mail servers are not routed through the CDN, revealing the real IP address.

  • TXT Records: Text records can contain various forms of information, including verification details for email services and other metadata. Occasionally, these records might inadvertently expose internal IP addresses or other sensitive information.

  • CNAME Records: Canonical Name records alias one domain to another. By following the chain of CNAME records, it’s possible to uncover the origin domain that might point directly to the real server IP.

Checking past DNS records can uncover previously exposed IP addresses. Use dig:

$ dig A verylazytech.com
...
verylazytech.com. 0 IN A 162.169.140.98
verylazytech.com. 0 IN A 172.67.0.96
...

For subdomains:

$ dig A dev.verylazytech.com
a33...075.eu-west-1.elb.amazonaws.com. 0 IN A 52.19.60.183
a33...075.eu-west-1.elb.amazonaws.com. 0 IN A 52.30.79.226

Here, we discovered AWS Elastic Load Balancer (ELB) IPs, likely exposing the origin server.

5. Checking CDN IP Ranges

If a website uses AWS, Google Cloud, or another provider, you can search its CDN IP ranges. Use grep to match:

$ cat amazon-ipv4-sni.txt | grep verylazytech.com
...
52.209.176.32:443 -- [verylazytech.com *.dev.verylazytech.com *.staging.verylazytech.com]
...

This method helps uncover IPs that might not be fully hidden behind the CDN.

6. Host Header Fuzzing

Fuzzing with custom Host headers can sometimes bypass CDNs:

$ curl -H "Host: realserver.verylazytech.com" http://172.67.0.96

If the response differs from a CDN-protected response, it’s likely the real server.

7. WordPress Pingback Exploit

For WordPress sites, use XML-RPC pingbacks to reveal the origin IP:

$ curl -X POST -d "<?xml version='1.0'?>..." https://verylazytech.com/xmlrpc.php

If the response contains an IP address, it’s the origin server.

8. Using CloudFlair Tool

$ python cloudflair.py verylazytech.com
[*] Retrieving Cloudflare IP ranges from https://www.cloudflare.com/ips-v4
[*] The target appears to be behind CloudFlare.
[*] Looking for certificates matching "verylazytech.com" using Censys
[*] 72 certificates matching "verylazytech.com" found.
[*] Splitting the list of certificates into chunks of 25.
[*] Looking for IPv4 hosts presenting these certificates...
[*] 3 IPv4 hosts presenting a certificate issued to "verylazytech.com" were found.
  - 34.252.154.19
  - 34.247.206.200
  - 63.32.27.129
[*] Testing candidate origin servers
[*] Retrieving target homepage at https://verylazytech.com
[*] "https://verylazytech.com" redirected to "https://verylazytech.com/"
  - 34.252.154.19
      responded with an unexpected HTTP status code 404
  - 34.247.206.200
  - 63.32.27.129
[-] Did not find any origin server.

We can send a GET request to one of the found IP's and get this:

$ curl -v https://34.247.206.200 -k
<p>
    We are performing quick maintenance at the moment and will be baonline soon.
    Try to refresh the page or come back in a few minutes.
</p>

This tool utilizes Censys API to find origin IP addresses related to a domain.

Conclusion

Identifying a server’s real IP address can be crucial for penetration testing, cybersecurity research, and ethical hacking. While CDNs like Cloudflare offer strong protection, there are multiple techniques — such as SSL analysis, DNS lookups, subdomain enumeration, and CDN range checking — that can help bypass them.

Support VeryLazyTech 🎉
  • Follow us on:

Visit and enter the target domain.

automates CDN bypassing by scanning for related IPs:

Learn & practice

Become VeryLazyTech ! 🎁

✖ Twitter .

👾 Github .

📜 Medium .

📺 YouTube .

📩 Telegram .

🕵️‍♂️ My Site .

Visit our for e-books and courses. 📚

🕸️
member
@VeryLazyTech
@VeryLazyTech
@VeryLazyTech
@VeryLazyTech
@VeryLazyTech
@VeryLazyTech
shop
https://search.censys.io/
CloudFlair
For the OSCP.
member
@VeryLazyTech
@VeryLazyTech
@VeryLazyTech
@VeryLazyTech
@VeryLazyTech
@VeryLazyTech
shop