Step 1: Target Identification: The attacker identifies systems running the statd service, typically by port scanning (e.g., port 111 or 2049).
Step 2: Payload Crafting: The attacker crafts a malicious network packet containing a payload designed to trigger the buffer overflow. This payload includes shellcode to execute commands and gain root access.
Step 3: Packet Delivery: The attacker sends the crafted packet to the vulnerable statd service.
Step 4: Buffer Overflow Trigger: The statd service receives the packet and attempts to process the oversized payload, overflowing the allocated buffer.
Step 5: Code Execution: The buffer overflow overwrites the return address on the stack, redirecting execution to the attacker's injected shellcode.
Step 6: Privilege Escalation: The shellcode executes with root privileges, granting the attacker complete control over the system.