Skip to content
All writing

CTF writeup · · 2 min

picoCTF where are the robots: robots.txt as a Roadmap

robots.txt is meant to hide pages from crawlers. It hides nothing from you, and it points straight at the disallowed page holding the flag.

By George Wanyoike

picoCTF where are the robots: robots.txt as a Roadmap — figure 1

picoCTF where are the robots: robots.txt as a Roadmap — figure 2

picoCTF where are the robots: robots.txt as a Roadmap — figure 3

are the robots

Challenge Information

text
Challenge Name: where are the robots
Author: zaratec/Danny
Category: Web Exploitation
Flag: picoCTF{ca1cu1at1ng_Mach1n3s_477ce}

Challenge Description

Can you find the robots? URL: https://jupiter.challenges.picoctf.org/problem/36474/

Hints:

What part of the website could tell you where the creator doesn't want you to look?

Solution

Step 1: Understanding the Hint

The challenge is titled "where are the robots" and asks about a part of the website that tells you where creators don't want you to look. This is a direct reference to the robots.txt file.

Step 2: What is robots.txt?

robots.txt is a standard file used by websites to communicate with web crawlers and search engine bots. It specifies which parts of the site should NOT be crawled or indexed.

The file is always located at: https://example.com/robots.txt

Step 3: Check robots.txt

Navigate to: https://jupiter.challenges.picoctf.org/problem/36474/robots.txt

The file contains:

text
User-agent: *
Disallow: /477ce.html

This tells us:

text
User-agent: * - applies to all bots
Disallow: /477ce.html - don't crawl this specific page

Step 4: Visit the Hidden Page

Go to the disallowed URL: https://jupiter.challenges.picoctf.org/problem/36474/477ce.html

text
The flag is displayed on this page: picoCTF{ca1cu1at1ng_Mach1n3s_477ce}

Key Concepts

The Irony of robots.txt

While robots.txt is meant to hide pages from search engines, it actually:

Is publicly accessible to anyone

Creates a roadmap of "interesting" pages

Often points directly to sensitive content

Should NEVER be used for security

Real-World Implications

In real websites, robots.txt files often reveal:

Admin panels

Staging environments

API endpoints

Backup files

Development directories

Attackers routinely check robots.txt as part of reconnaissance.

Proper Security Practices

Never rely on robots.txt for security - it's publicly readable

Use proper authentication and authorization instead

Implement access controls at the server level

If content shouldn't be public, don't put it on a public server

Tools Used

Web Browser

Difficulty Rating

Beginner - This challenge teaches about standard web files and the concept that obscurity is not security.

Related Resources

robots.txt specification

OWASP: Information Disclosure

  • CTF
  • Web Security
  • picoCTF
  • Recon