Skip to content

From XSS to Root on Your Home NAS

Tony Martin

Tony Martin demonstrates exploiting stored cross-site scripting in Network Attached Storage (NAS) web interfaces to gain unauthenticated root shell access.

Summary

The Growing Threat Surface of Consumer NAS Devices

Home Network Attached Storage (NAS) units frequently run feature-rich Linux distributions exposing vulnerable web administration portals to local networks and the internet.

Discovering Stored Cross-Site Scripting Vulnerabilities

Tony Martin analyzes web management portals across multiple consumer NAS vendors, identifying input sanitization failures in file management views.

Chaining XSS with Local Privilege Escalation

Martin demonstrates weaponizing client-side XSS to issue authenticated API commands, bypass sudo restrictions, and execute arbitrary root binaries on the host.

Hardening Embedded Web Portals

The author outlines essential remediation strategies—including strict Content Security Policies (CSP), tokenized API validation, and process privilege separation.

Related talks