Skip to content
KitploitKITPLOIT
OutilsExploitsBlog
Log in
Soumettre
OutilsExploitsBlog
Soumettre

Outils de Hacking, PenTest et Cybersécurité pour votre Arsenal de Sécurité !

Kitploit est un répertoire d'outils de hacking, de cybersécurité et de pentesting. Découvrez les dernières mises à jour des projets pour trouver des vulnérabilités, analyser des systèmes, automatiser les tests et renforcer votre sécurité.

FluxContactConfidentialité© 2026 Kitploit

Répertoire d'outils

Catégories

Voir toutes les catégories
Loading categories
bola-CVE-2023-27524 — Démontre la vulnérabilité CVE-2023-27524 Broken Object Level Authorization (BOLA) avec des implémentations Flask API vulnérable et corrigée pour l'éducation à la sécurité. | Kitploit
Outils/GitHubGitHub/rachidafaf/bola-cve-2023-27524
Authentification et AutorisationAnalyse des VulnérabilitésExploitation d'Applications WebTests de Sécurité des APITests d'IntrusionApprentissage et Éducation
GitHubrachidafaf/bola-cve-2023-27524

bola-CVE-2023-27524

Partager

Démontre la vulnérabilité CVE-2023-27524 Broken Object Level Authorization (BOLA) avec des implémentations Flask API vulnérable et corrigée pour l'éducation à la sécurité.

Voir le dépôt
32il y a 7 moisPas encore vérifié

bola-CVE-2023-27524

📄 README.md — BOLA CVE-2023-27524 Projet de démonstration

# 🔐 Broken Object Level Authorization (BOLA) Demonstration  
## CVE-2023-27524 Security Analysis & Fix

---

## 📌 Project Overview

This project demonstrates a real-world **Broken Object Level Authorization (BOLA)** vulnerability and its secure remediation using a Flask-based API.

The vulnerability is modeled after **CVE-2023-27524**, which involves improper authorization controls that allow attackers to access or manipulate unauthorized objects by modifying object identifiers (IDs) in API requests.

This repository includes:
- ❌ vulnerable_api.py: A vulnerable version of the API 
- ✅ fixed_vulnerable_api.py: A secure fixed version implementing proper object-level authorization

---

## ⚠️ What is BOLA?

**Broken Object Level Authorization (BOLA)** occurs when an application:
- Exposes object IDs (e.g., `/profile?id=2`)
- Fails to verify whether the authenticated user is authorized to access that object

### 🔴 Impact:
Attackers can:
- Access other users' private data
- Modify or delete unauthorized resources
- Perform horizontal privilege escalation

---

## 💥 Vulnerable Implementation

### Example (Vulnerable Code)

```python
@app.route('/profile')
def profile():
    user_id = request.args.get("id")
    return users.get(int(user_id))

❌ Problem:

  • No authentication check
  • No ownership validation
  • User-controlled ID directly accesses database objects

🔓 Exploit Scenario:

/profile?id=1   → Alice data
/profile?id=2   → Bob data (unauthorized access)

🔒 Fixed Secure Implementation

Example (Secure Code)

@app.route('/profile')
def profile():
    requested_id = int(request.args.get("id", session["user_id"]))

    # Object-level authorization check
    if requested_id != session["user_id"]:
        return "403 Forbidden - Access Denied", 403

    return users.get(requested_id)

✅ Security Fix Applied

This implementation prevents BOLA by enforcing:

✔ Session-based authentication ✔ Object ownership validation ✔ Server-side authorization checks ✔ Prevention of ID tampering attacks


🧠 Key Security Lesson

Never trust user-supplied object identifiers without verifying authorization on the server side.

Authentication is NOT enough — authorization must be enforced at the object level.


📊 Attack Flow vs Secure Flow

❌ Vulnerable Flow:

User → API Request (/profile?id=2) → Direct DB Access → Data Leak

✅ Secure Flow:

User → API Request → Session Check → Ownership Validation → Allowed/Denied

🧪 How to Run

1. Install dependencies

pip install flask

2. Run application

python fixed_vulnerable_api.py or vulnerable_api.py

3. Access app

http://127.0.0.1:5000

📁 Project Structure

api-bola-demo/
│
├── vulnerable_api.py     # insecure version
├── fixed_vulnerable_api.py   # Fixed BOLA version
└── README.md
Télécharger l’outil

Populaires

Voir tout →

Découvrez les outils les plus utilisés par notre communauté.

  • 1

    OsintHunter

    letox4/osinthunter

    🎯 La boîte à outils OSINT ultime : graphe d'enquête, notation de confiance, familles d'alias, carte, chronologie et rapports. 49 modules, plus de 400 sites, aucune clé API requise.

    576
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    # Application d'exécution en un clic GhostLock (CVE-2026-43499)

    477
  • 3

    ARTEX

    baarai/artex

    Plateforme autonome de tests d'intrusion multi-agents basée sur des LLM, avec agents planificateur/ouvrier, graphes d'actifs et d'exploration, enregistrement du trafic MITM et retest des vulnérabilités.

    388
  • 4

    redforge

    cybersecurity91/redforge

    Boîte à outils red team côté navigateur avec 102 outils hors ligne pour la reconnaissance, la génération de payloads, les attaques par identifiants, la cryptographie, l'encodage et le reporting d'engagement.

    330
  • 5

    CyberStrikeAI

    ed1s0nz/cyberstrikeai

    Le système d'action pour la cybersécurité native IA—où l'intention devient une exécution gouvernée, les preuves deviennent une mémoire opérationnelle, et chaque opération améliore la suivante.

    255
  • 6

    antifox

    antifox-ai/antifox

    Plateforme de test d'intrusion autonome multi-agents par IA qui exécute la reconnaissance, la découverte de la surface d'attaque, la validation de l'exploitation et la livraison de rapports étayés par des preuves.

    247

Explorer tous les outils

Parcourez notre collection d'outils

Voir tous les outils →