GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - MattUebel/vulnerability-example: Educational FastAPI application demonstrating CWE-863 authorization bypass vulnerability in document sharing with comprehensive security fixes

BranchesTags
Open more actions menu

Latest commit

 

History

4 Commits
4 Commits

Folders and files

NameName
Last commit message
Last commit date
app
app
 
 
.gitignore
.gitignore
 
 
Dockerfile
Dockerfile
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
compose.yml
compose.yml
 
 
exploit_demo.sh
exploit_demo.sh
 
 
init.sql
init.sql
 
 
requirements.txt
requirements.txt
 
 

Repository files navigation

Share Code Authorization Vulnerability

A vulnerable FastAPI application demonstrating CWE-863: Incorrect Authorization in document sharing functionality.

🔗 Key Links

  • 📋 Issue #1: Security Vulnerability Report - Detailed vulnerability analysis and reproduction steps
  • 🔧 Pull Request #2: Security Fixes - Comprehensive security implementation and testing

🚨 Vulnerability Summary

The Problem: Any authenticated user can use any share code to access documents they don't own.

Real-World Scenario:

  • Alice creates a share code intended for Bob
  • Eve (an attacker) intercepts or guesses the share code
  • Eve can access Alice's confidential document using Bob's intended share code
  • The same share code can be reused multiple times

Security Classification:

  • CWE-863: Incorrect Authorization
  • OWASP A01:2021 – Broken Access Control
  • Severity: High

🎯 Quick Demonstration

# Start the vulnerable application
docker compose up --build

# Run the exploit demonstration
./exploit_demo.sh

# View API documentation
open http://localhost:8000/docs

The exploit_demo.sh script demonstrates the complete attack scenario where Eve successfully accesses Alice's document using Bob's intended share code.

👥 Test Users

All users have password password123:

  • alice - Document owner (creates share codes)
  • bob - Intended recipient
  • eve - Unauthorized attacker

📚 Educational Purpose

This repository demonstrates:

  • How authorization bypass vulnerabilities occur in real applications
  • The impact of insufficient access controls in document sharing systems
  • Proper security implementation and testing practices

For detailed technical analysis, vulnerability reproduction steps, and comprehensive security fixes, see the linked issue and pull request above.


This application is intentionally vulnerable for educational purposes only.

About

Educational FastAPI application demonstrating CWE-863 authorization bypass vulnerability in document sharing with comprehensive security fixes

Topics

authorizationcwe-863cybersecuritydockereducationfastapiowasppythonsecurityvulnerability

Resources

Readme
MIT license
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.