Skip to main content
COSMICBYTEZLABS
NewsSecurityHOWTOsToolsStudyTraining
ProjectsNewsletterHire MeAbout
Subscribe

Press Enter to search or Esc to close

News
Security
HOWTOs
Tools
Study
Training
Projects
Newsletter
Hire Me
About
RSS Feed
Reading List
Subscribe

Stay in the Loop

Get the latest security alerts, tutorials, and tech insights delivered to your inbox.

Subscribe NowFree forever. No spam.
COSMICBYTEZLABS

Your trusted source for IT intelligence, cybersecurity insights, and hands-on technical guides.

1310+ Articles
157+ Guides

CONTENT

  • Latest News
  • Security Alerts
  • HOWTOs
  • Checklists
  • Projects
  • Exam Prep

RESOURCES

  • Search
  • Browse Tags
  • Newsletter Archive
  • Reading List
  • RSS Feed

COMPANY

  • About Us
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 CosmicBytez Labs. All rights reserved.

System Status: Operational
  1. Home
  2. Security
  3. CVE-2018-25391: HaPe PKH 1.1 Unauthenticated Record Deletion via Missing Authorization
CVE-2018-25391: HaPe PKH 1.1 Unauthenticated Record Deletion via Missing Authorization
SECURITYHIGHCVE-2018-25391

CVE-2018-25391: HaPe PKH 1.1 Unauthenticated Record Deletion via Missing Authorization

HaPe PKH 1.1, a PHP-based web application, fails to enforce authorization on its record deletion endpoints, allowing unauthenticated attackers to...

Dylan H.

Security Team

May 30, 2026
4 min read

Affected Products

  • HaPe PKH 1.1 — all known versions

Executive Summary

CVE-2018-25391 is a high-severity missing authorization vulnerability (CVSS 7.5) in HaPe PKH 1.1, a PHP-based web application. The application's administrative record deletion endpoints — specifically within the mod_pengurus module — perform no authentication or authorization checks before deleting records from the database. An unauthenticated attacker can delete any record by crafting a simple HTTP request containing the target record's integer ID.

While this CVE was originally identified in a legacy PHP application from 2018, it has been formally published to NVD in 2026, reflecting the ongoing backlog of historical vulnerability disclosures reaching public databases. The underlying weakness — missing authorization on destructive operations — remains a frequently exploited class of vulnerability in web applications of all ages and frameworks.


Vulnerability Details

FieldDetails
CVECVE-2018-25391
CVSS Score7.5 (High)
TypeMissing Authorization (CWE-862)
ApplicationHaPe PKH 1.1 (PHP web application)
Modulemod_pengurus administrative module
AuthenticationNot required
Attack VectorNetwork
ImpactUnauthenticated deletion of arbitrary database records

Technical Analysis

Affected Endpoints

The vulnerability affects the following administrative deletion endpoints:

EndpointParameterFunction
admin/modul/mod_pengurus/aksi_pengurus.phpmodule=pengurus&act=hapus&id={id}Delete administrator/user record

Both endpoints accept a record identifier via the id parameter and delete the corresponding database record without verifying that the requesting user is authenticated or authorized to perform the operation.

Root Cause

The PHP source code for the deletion handlers lacks any session validation, authentication token verification, or role-based access control check. The flow is:

HTTP Request → aksi_pengurus.php?act=hapus&id=1
  ↓
No authentication check
  ↓
SQL DELETE FROM pengurus WHERE id = 1
  ↓
Record permanently deleted

Because record IDs are typically sequential integers, an attacker can enumerate and delete all records in the targeted table without any prior knowledge of the application's data.

Impact Assessment

The lack of authentication on deletion operations enables:

  • Administrator account deletion — Locking legitimate administrators out of the application
  • Mass record deletion — Scripted sequential deletion of all records in affected tables
  • Data integrity destruction — Permanent loss of application data without backup recovery
  • Privilege escalation setup — In some implementations, deleting all admin accounts may enable creation of a new admin account with no existing competition

Context: Legacy PHP Applications

HaPe PKH is representative of a large class of PHP web applications developed in the 2010s that were built without a security-first mindset and lack modern security controls. Many such applications remain deployed on production servers, often managing sensitive administrative or institutional data.

The publication of this CVE in 2026, eight years after the original vulnerability was present, reflects the NVD's ongoing backlog of historical disclosures. For organizations still running legacy PHP applications of this generation, this advisory is a reminder to audit deletion endpoints and administrative controllers for missing authorization checks.

Common patterns in this vulnerability class include:

  • PHP files that directly process $_GET or $_POST parameters without session validation
  • Admin modules with no middleware or authentication decorator pattern
  • Database operations triggered directly by query parameters without nonce or CSRF verification

Remediation

For HaPe PKH 1.1 Deployments

  1. Decommission if possible — HaPe PKH 1.1 is legacy software with no known active maintenance. If it can be replaced with a supported application, that is the recommended path.
  2. Apply access controls at the web server level — Restrict access to admin/modul/ paths to known trusted IPs using .htaccess or nginx/Apache configuration:
# Restrict admin module access by IP
<Location "/admin/modul/">
    Require ip 192.168.1.0/24
    Require ip 10.0.0.0/8
</Location>
  1. Add session validation to all deletion handlers if the application must remain in service:
// Add to top of aksi_pengurus.php
session_start();
if (!isset($_SESSION['admin_logged_in']) || !$_SESSION['admin_logged_in']) {
    http_response_code(403);
    exit('Access denied');
}

For General PHP Applications

This vulnerability class is preventable through:

  • Centralized authentication middleware that enforces session validation before any administrative handler executes
  • Audit of all deletion, update, and create endpoints for missing authorization checks
  • CSRF token validation for all state-changing operations
  • Web application firewall (WAF) rules that block access to admin paths from unauthenticated sessions

Detection

To identify instances of vulnerable HaPe PKH deployments:

# Check for the mod_pengurus module
find . -name "aksi_pengurus.php" -path "*/mod_pengurus/*"
 
# Test for unauthenticated deletion (safe, non-destructive: use a non-existent ID)
curl -I "http://target/admin/modul/mod_pengurus/aksi_pengurus.php?module=pengurus&act=hapus&id=999999"
# If response is 200 rather than 401/403, the endpoint lacks authentication

References

  • NVD — CVE-2018-25391
  • CWE-862 — Missing Authorization
  • OWASP — Broken Access Control
#CVE-2018-25391#HaPe PKH#PHP#Missing Authorization#Access Control#Vulnerability#CVSS 7.5

Related Articles

CVE-2026-10178: SQL Injection in Online Music Site 1.0 Admin Panel

A remotely exploitable SQL injection vulnerability has been disclosed in code-projects Online Music Site 1.0, affecting the Administrator PHP AdminEditAlbum endpoint. A public exploit is available and no patch exists.

5 min read

CVE-2026-10110: SQL Injection in Student Details Management System 1.0

A remotely exploitable SQL injection vulnerability in code-projects Student Details Management System 1.0 allows attackers to manipulate database queries...

4 min read

CVE-2026-4290: WP Travel Pro Arbitrary User Deletion via Broken REST API Access Control

A critical CVSS 9.1 access control flaw in the WP Travel Pro WordPress plugin allows unauthenticated attackers to delete any user account — including...

4 min read
Back to all Security Alerts