LG WebOS 'Pwnage' – getting unauthenticated code execution on LG Signage TVs
The LG WebOS Signage TV had an unauthenticated file read vulnerability and an unrestricted file upload that allowed writing to certain directories. An attacker on the same network could chain these with a default password and a startup script to execute code as root.
brzozowski.io
Published on brzozowski.io
This post is a summary of our security research work that started a year ago. Together with Franek, we’ve targeted LG enterprise TV operating system – WebOS Signage.
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 multiple flaws: a path traversal in the thumbnail API, an unrestricted file upload that allowed writing to sensitive directories, a default admin password derived from the device serial number, and a startup script that executed code from a writable file.
Impact
An attacker on the same network could execute code as root on the TV if the default configuration is used.
What the attacker needed
Attacker on the same network; default configuration
The fix
The vulnerabilities were fixed by LG in firmware updates.
How it was found
- Get device serial number from unauthenticated `/setting` endpoint
- Generate temporary password and log in to Control Manager app
- Overwrite the `wta_enabled` file, with reverse shell
- Reboot the device remotely using Websockets
- Listen for the shell
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.
This is about a smart TV used in businesses. The TV had several security holes: anyone on the same network could read files from it and upload files to certain folders. Also, the default admin password was easy to guess because it was based on the TV's serial number. By combining these, an attacker could take full control of the TV.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.