Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Submit
ToolsExploitsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

FeedsContactPrivacy© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
CVE-2026-20896-Gitea-CTF — Docker-based CTF challenge reproducing Gitea 1.26.2 reverse proxy authentication trust misconfiguration, with automated flag setup and writeup for local practice. | Kitploit
Tools/GitHubGitHub/raincombat/cve-2026-20896-gitea-ctf
Container SecurityVulnerability AnalysisWeb SecurityCTFAuthenticationMisconfigurationLearning & EducationLabs & Practice
Share
GitHub
raincombat/cve-2026-20896-gitea-ctf

CVE-2026-20896-Gitea-CTF

Docker-based CTF challenge reproducing Gitea 1.26.2 reverse proxy authentication trust misconfiguration, with automated flag setup and writeup for local practice.

View Repository
1 month agoNot yet reviewed

CVE-2026-20896 — Gitea Reverse Proxy Authentication CTF

This is a Docker-based CTF challenge for practicing the reverse proxy authentication trust configuration of Gitea 1.26.2.

Participants compare HTTP responses and craft request headers directly with curl to obtain the FLAG in a private repository.

Caution: This project is a practice environment intentionally configured to be vulnerable for educational purposes. Do not expose it directly to the internet; run it only in an isolated practice environment.

1. Project Overview

ItemDetails
TargetGitea 1.26.2
TopicCVE-2026-20896 / Reverse Proxy Authentication
Challenge TypeWeb / Docker-based CTF
Internal Service Port3000
Local Access Port10017
Supported ArchitecturesAMD64, ARM64
Challenge GoalView flag.txt in a private repository
Solution MethodHTTP request analysis via curl
Local Test FLAGWINS{local_test}
GZCTF FLAG FormatWINS{[GUID]}

This practice covers the trust boundary issue in the following configuration.

ENABLE_REVERSE_PROXY_AUTHENTICATION = true
REVERSE_PROXY_TRUSTED_PROXIES = *

In this configuration, the range of trusted proxies becomes excessively broad, so user identification headers can affect authentication.

2. Project Structure

CVE-2026-20896-Gitea-CTF/
├── challenge/
│   ├── Dockerfile
│   ├── entrypoint.sh
│   └── init-ctf.sh
├── docker-compose.yml
├── .env.example
├── .gitignore
├── README.md
└── WRITEUP.md

The role of each file is as follows:

  • Dockerfile: Builds the CTF image based on Gitea 1.26.2
  • entrypoint.sh: Handles the FLAG environment variable and runs the initialization script
  • init-ctf.sh: Automatically creates accounts, private repositories, and FLAG files
  • docker-compose.yml: Configures the local practice environment
  • .env.example: Example environment variable configuration
  • WRITEUP.md: Problem-solving process and walkthrough

3. Prerequisites

The following programs must be installed in the Ubuntu environment.

  • Docker Engine
  • Docker Compose V2
  • Git
  • curl

You can check whether they are installed with the following command.

docker --version
docker compose version
git --version
curl --version

If a permission error occurs when running Docker commands, use sudo.

4. Download the GitHub Repository

Run the following command in the terminal.

git clone https://github.com/Raincombat/CVE-2026-20896-Gitea-CTF.git

cd CVE-2026-20896-Gitea-CTF

5. Environment Variable Configuration

Copy the example environment variable file.

cp .env.example .env

Edit the file.

nano .env

Set a local practice password in CTF_USER_PASSWORD.

CTF_USER_PASSWORD=YourLocalTestPassword123!

The values above are examples, so use different passwords in actual practice.

Do not upload the .env file to GitHub.

6. Running the Docker Container

Validate the configuration file.

sudo docker compose config --quiet

Build the Docker image and run the container.

sudo docker compose up -d --build

Check the running status.

sudo docker compose ps

Gitea initialization may take some time.

Webpage access address:

http://127.0.0.1:10017

The current Docker Compose configuration is as follows.

ports:
  - "127.0.0.1:10017:3000"

Therefore, it can only be accessed directly from within Ubuntu.

If you are using an Ubuntu VM on a Windows host, you need to access it from a browser inside the Ubuntu VM or set up separate secure port forwarding.

7. CTF Automatic Initialization Process

When the container starts, the following process proceeds automatically.

  1. Check the FLAG or GZCTF_FLAG environment variable.
  2. Wait until the Gitea server is ready.
  3. Create the ctfuser account.
  4. Create the private repository ctfuser/secret-project.
  5. Register the flag.txt file in the private repository.
  6. Revoke the temporary API token used for initialization.
  7. Create the initialization completion marker file.

Initialization completion marker path:

/data/gitea/.ctf-init-complete

8. Verifying Execution Status

Check the Gitea API response.

curl -i http://127.0.0.1:10017/api/v1/version

Check the initialization log.

sudo docker logs --tail 50 chal-2026-20896

Check the reverse proxy trust settings.

Download Tool

Most Popular

View all →

Discover the most used tools by our community.

  • 1

    OsintHunter

    letox4/osinthunter

    🎯 The ultimate OSINT toolkit: investigation graph, confidence scoring, alias families, map, timeline and reports. 49 modules, 400+ sites, no API keys required.

    790
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    GhostLock One-Tap Execution App (CVE-2026-43499)

    508
  • 3

    ARTEX

    baarai/artex

    LLM multi-agent autonomous penetration testing platform with planner/worker agents, asset and exploration graphs, MITM traffic recording, and vulnerability retesting.

    435
  • 4

    redforge

    cybersecurity91/redforge

    Browser-side red team toolkit with 102 offline tools for recon, payload generation, credential attacks, crypto, encoding and engagement reporting.

    346
  • 5

    CyberStrikeAI

    ed1s0nz/cyberstrikeai

    The system of action for AI-native cybersecurity—where intent becomes governed execution, evidence becomes operational memory, and every operation improves the next.

    263
  • 6

    looking-glass

    anonghosty/looking-glass

    CSIRT platform that ingests Shadowserver reports into MongoDB and replays them as interactive maps, analysis, findings, advisories and executive dashboards.

    260

Explore all tools

Browse our collection of tools

View all tools →