Skip to content
KitploitKITPLOIT
工具博客
提交
工具博客
提交

黑客、渗透测试和网络安全工具,武装您的安全武器库!

Kitploit 是一个黑客、网络安全和渗透测试工具的目录。发现最新的项目更新,查找漏洞、分析系统、自动化测试并加强你的安全。

··订阅源·联系·隐私·© 2026 Kitploit

工具目录

分类

查看所有分类
Loading categories
CVE-2026-9090-Modbus-TCP-Write-to-Read-Only-Coils-via-Function-Code-Spoofing — PoC Modbus TCP 漏洞利用,演示对模拟 PLC 中只读线圈实施伪造写入,揭示 SCADA/ICS 访问控制缺陷。 | Kitploit
工具/GitHubGitHub/george0papasotiriou/cve-2026-9090-modbus-tcp-write-to-read-only-coils-via-function-code-spoofing
漏洞分析漏洞利用SCADA/ICS安全网络安全渗透测试硬件与物联网安全错误配置
GitHubgeorge0papasotiriou/cve-2026-9090-modbus-tcp-write-to-read-only-coils-via-function-code-spoofing

CVE-2026-9090-Modbus-TCP-Write-to-Read-Only-Coils-via-Function-Code-Spoofing

PoC Modbus TCP 漏洞利用,演示对模拟 PLC 中只读线圈实施伪造写入,揭示 SCADA/ICS 访问控制缺陷。

查看仓库
81个月前尚未审核

最受欢迎

查看全部 →

发现我们社区最常用的工具。

探索所有工具

浏览我们的工具集合

查看所有工具 →
分享

CVE-2026-9090 – 通过功能码欺骗对只读线圈进行 Modbus TCP 写入

程序代码(使用 pymodbus 模拟的 Python)

root@kitploit:~
# modbus_plc_sim.py - Simulated Modbus PLC with read‑only coils
from pymodbus.server.sync import StartTcpServer
from pymodbus.device import ModbusDeviceIdentification
from pymodbus.datastore import ModbusSequentialDataBlock
from pymodbus.datastore import ModbusSlaveContext, ModbusServerContext

store = ModbusSlaveContext(
    di=ModbusSequentialDataBlock(0, [1]*100),  # coils – should be read‑only
    co=ModbusSequentialDataBlock(0, [0]*100),  # discrete inputs
    hr=ModbusSequentialDataBlock(0, [0]*100),
    ir=ModbusSequentialDataBlock(0, [0]*100)
)
# Vulnerability: coil block (di) is writable via function code 5 (Write Single Coil) normally, but maybe misconfigured.
# To simulate a flaw, we'll allow writing to coils using function code 15 (Write Multiple Coils) even though they should be read‑only.
# The pymodbus default allows writing to coils. We'll just demo writing to a coil that is supposed to be safety‑critical.
context = ModbusServerContext(slaves=store, single=True)
StartTcpServer(context, address=("0.0.0.0", 5020))

CVE-2026-9090 – 对只读线圈进行 Modbus TCP 写入

Severity: Critical

概述

工业 PLC 暴露了预期为只读的线圈(例如报警状态)。然而,由于配置错误,Modbus 服务器接受对这些线圈的写入命令(功能码 5 或 15),使攻击者能够操纵安全系统。

漏洞详情

  • 类型: 访问控制不足
  • 影响: 物理损坏、安全覆盖。
  • 根本原因: Modbus 内存映射未正确配置为拒绝针对某些地址的写入命令。

漏洞利用演示

  1. 启动模拟 PLC:
    root@kitploit:~
    pip install pymodbus
    python modbus_plc_sim.py
    
  2. 运行漏洞利用程序:
    root@kitploit:~
    python exploit_modbus_write.py
    
下载工具