Skip to content
Access control Write-up Intermediate

Unauthenticated Configuration Export in Multiple WAGO Products

The configuration API of the WAGO web management interface had its authentication and authorisation checks commented out, so anyone could download files from a specific folder. An attacker could retrieve firmware backups or VPN configuration files containing credentials or cryptographic material, provided a legitimate user had generated them since the last reboot.

ONEKEY Follow

Published on onekey.com

Example H2

ONEKEY (@onekey_sec), on onekey.com

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 session and role checks in the download handler were commented out during development and never restored, leaving the download branch reachable without authentication.

Impact

A successful exploit could allow the attacker to download a copy of the running firmware or the VPN configuration, but only if a legitimate user generated those files since the last reboot.

What the attacker needed

Network access to the web interface; backup files created since last reboot

The fix

The issue was fixed in FW22 Patch 1 or higher, which affected users are advised to install.

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 web page on these industrial controllers is meant to let only logged-in administrators download backup files. The programmer disabled the login check by commenting it out, which in PHP means wrapping it in /* and */ so it is ignored. As a result, anyone who can reach the page can download whatever backup files happen to be sitting in the folder.

What is Access control?

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.

More by ONEKEY

View all

1 more disclosed report, best first.

More from WAGO

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.