Skip to content
RCE Write-up Intermediate

Unsafe firewall includes allowing for remote code execution on Inteno's IOPSYS devices

An authenticated attacker could abuse the firewall include feature on Inteno IOPSYS devices to execute arbitrary binaries or scripts with root privileges. The report states this may also affect other devices running firewall3, which is included by default on most OpenWRT-based firmwares.

blog.nns.ee

Published on blog.nns.ee

In Inteno's IOPSYS devices, and very possibly other devices running firewall3 (which is included by default on most OpenWRT-based firmwares), it is possible for an authenticated attacker to abuse firewall includes to remotely execute any binary or script as root. A proof-of-concept exploit can be found at the end of…

The author, on blog.nns.ee

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the firewall include mechanism accepts and executes administrator-supplied scripts without sufficient restriction, so an authenticated user can run arbitrary code as root.

Impact

An authenticated attacker could execute any binary or script as root on affected devices, and other devices running firewall3 may also be vulnerable.

What the attacker needed

Authenticated access to the device; device runs Inteno IOPSYS or firewall3

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

A firewall is software that controls which network traffic is allowed in and out of a device. On these routers, the firewall configuration lets an administrator add extra scripts that run with full system rights. The report says someone who can log in to the device can misuse that feature to run their own code as the most powerful user, root.

What is RCE?

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.