CVE-2018-25386 in HaPe PKHinfo

Summary

by MITRE • 05/29/2026

HaPe PKH 1.1 contains multiple SQL injection vulnerabilities in admin/media.php that allow attackers to manipulate database queries by injecting SQL code through the 'id' parameter. An unauthenticated attacker can exploit the desa module (module=desa&act=hapus), while authenticated users can exploit the pengurus, fasilitas, and kelompok modules (for example act=print, act=editpengurus, act=editfasilitas, and act=editkelompok). Successful exploitation allows extraction of sensitive database information including the current user, database name, and DBMS version.

Be aware that VulDB is the high quality source for vulnerability data.

Analysis

by VulDB Data Team • 06/24/2026

The HaPe PKH 1.1 vulnerability represents a critical SQL injection flaw that compromises the integrity and confidentiality of database operations within the administrative interface. This vulnerability exists in the admin/media.php file where the 'id' parameter is not properly sanitized or validated before being incorporated into database queries. The flaw allows attackers to inject malicious SQL code directly through the parameter, enabling unauthorized manipulation of database operations without requiring authentication for certain modules.

The technical implementation of this vulnerability enables exploitation through multiple attack vectors within the application's module architecture. Unauthenticated attackers can target the desa module using the specific URL pattern module=desa&act=hapus, while authenticated users possess additional capabilities to exploit pengurus, fasilitas, and kelompok modules through various actions including act=print, act=editpengurus, act=editfasilitas, and act=editkelompok. This multi-module exploitation capability significantly expands the attack surface and potential impact of the vulnerability.

The operational impact of this vulnerability extends beyond simple data extraction to encompass full database compromise. Successful exploitation allows attackers to retrieve sensitive information including current user credentials, database names, and detailed DBMS version information. This metadata exposure provides attackers with crucial intelligence for planning further attacks and potentially escalating privileges within the database environment. The vulnerability directly maps to CWE-89 which specifically addresses SQL injection flaws in software applications.

From a threat modeling perspective, this vulnerability aligns with ATT&CK technique T1071.005 for application layer protocol manipulation and T1213.002 for data from databases. The weakness creates a persistent backdoor opportunity that can be exploited repeatedly without detection, making it particularly dangerous for long-term system compromise. The lack of proper input validation and parameter sanitization in the admin/media.php file violates fundamental security principles established by OWASP Top Ten and NIST cybersecurity frameworks.

The mitigation strategy requires immediate implementation of parameterized queries and prepared statements throughout the application's database interaction code. Input validation should be strengthened to reject malicious payloads before they reach database processing layers, while proper access controls must be enforced to limit module-specific functionality based on user authentication status. Regular security audits and penetration testing should be conducted to identify similar vulnerabilities in other application components. Additionally, implementing web application firewalls and database activity monitoring can provide additional defense-in-depth measures against exploitation attempts.

Responsible

VulnCheck

Reservation

05/29/2026

Disclosure

05/29/2026

Moderation

accepted

CPE

ready

Exploit

Download

EPSS

0.00334

KEV

no

Activities

very low

Sources

Want to stay up to date on a daily basis?

Enable the mail alert feature now!