Skip to content
BENIBIX Learn

Remote Code Execution (RCE)

Development🔐 SecurityAttacks

Also known as RCE, Arbitrary Code Execution

Someone far off makes your machine run their code.

Think of it like

Think of it like a stranger far off who can move your hands.

Example

A flaw in a photo app lets a booby-trapped picture run code. Opening one bad picture lets an attacker control the phone.

Why it matters

With RCE an attacker can do anything the app can do. Holes like this are always fixed first.

Definition

Remote code execution is when an attacker can run their own code on someone else's computer from far away. It is the worst kind of security hole. Injection, unsafe file uploads and rebuilding bad data can all lead to it. Once the code runs, it has the same rights as the app it broke into. That is why apps should run with as few rights as they can.
The bottom row, lit up: the worst case, where the attacker's own code runs on the server.

Common mistake

Running the app as an admin user. Then any RCE gives the attacker full control of the whole server.

Key takeaways

  1. 1
    Their code, your machine. Run from far away.
  2. 2
    Many roads in. Injection, uploads and bad data.
  3. 3
    Limit the damage. Run apps with few rights.