Skip to content

Holes

A hole is one entry in a memory zone of a library. You use it with overflow(address, unsafe_value). This page explains what a hole gives and when it works.

Result What overflow gives Where
Shell A shell as the hole’s user. All
Computer A computer object. On a router: a PC of its LAN, by the LAN IP you pass as the third argument. All
File A file object for one folder: /etc, /lib, /bin, /usr, /usr/bin, /home, /root, /sys or /boot. All
Password change Sets the password of the hole’s user to the third argument. PCs only
Firewall off Sets every firewall rule of the router to ALLOW. Routers only
Override settings Smart appliance override. libsmartappliance only
Traffic lights Traffic light override (police network). libtrafficnet only

Shell is the most likely result: weight 55 against 45 for each other basic result. Override settings has weight 75, traffic lights 50.

Zone guest a named user root
Visible zone 70 % 22 % 8 %
Hidden zone 60 % 25 % 15 %

Then the game changes the pick:

  • A local library never gives guest; it becomes a named user. A password change never gives guest either.
  • A named-user result needs at least 2 users on the target. Else the attack fails with Unable to find non root user in computer. It takes a random user that is not root.
  • When a network has a hired super admin, every result becomes guest: attack intercepted by administrator. This never applies to a player’s own PC.

A PC hole has 0 to 3 requirements. The chance of none is about 30 against 68 for each other count. scan_address lists them as “Unsafe check” lines. overflow checks them in order, and the first one that fails stops the attack with the text in the last column.

Scan text What the game checks Fail text
Using namespace X compiled at version >= V /lib/X exists, is a library, and its version is at least V. X is kernel_module.so, init.so or net.so, never the hole’s own library. Required lib not found / Required X installed library at version >= V
Checking registered users equal to N At least N users (N is 1 or 2). The text says “equal”; the check is “at least”. Min users registered failed.
Checking an active user A running process that is not Xorg or kernel_task. On an NPC machine, a logged-in NPC (the admin, or on a PC its users) also counts. No active user found.
Checking root active user A running root process that is not Xorg or kernel_task. On an NPC machine, a logged-in admin also counts. No active root user found.
Checking guest active user A running process of guest. No guest user found.
N port forwarding configured from router to the target computer The router has at least N forwards to the target’s LAN IP (N is 1 to 3). Remote PC libraries only. Insufficient amount of port forward towards the target.
Checking path P exists in the file system P exists. P is /Public, /usr, /bin or /lib/aptclient.so. File modes do not matter. P does not exist.
N computers using this router as gateway Routers only: N PCs use it as gateway. Insufficient amount of computers connected to this gateway.
Checking existing connection in the local network Routers only: the attacker is in the router’s subnet. The exploit must be executed on the same subnet as the router.

Notes:

  • The minimum version V of a namespace requirement is a random saved version of that library at the time the hole is made. An older namespace library on the target closes the hole. A missing one closes it too.
  • “An active user” and “root active user” never come together on one hole.
  • A local library never needs a port forward, a gateway count or the local network.

kernel_router.so has its own rules:

  • A shell, file or firewall-off hole has no requirement, and its user is guest or root (a named user becomes guest).
  • A computer hole has 0 or 1 requirement (“local network” or “gateway”, odds 65 to 45). It is never root.
  • Every router version has at least one guest shell or guest computer hole with no requirement. A router can never be made safe by its version.
  • A remote router attack (not a firewall-off one) first checks the router firewall. A DENY rule for the attacker stops it.
  1. The library must be in /lib (or a link there must point to it): Exploit failed. The library must be found on the /lib path.
  2. A network protected by CrownShield stops every attack: Attack interrupted: this network is protected by CrownShield.