Summary
AzuraCast has a code-injection vulnerability in which an authenticated station manager can use the station timezone field to inject directives into Supervisor configuration. If the configuration is regenerated, the injected program may execute operating-system commands with root privileges.
Affected context
The issue affects AzuraCast deployments through version 0.23.8 where the profile edit API accepts station timezone values that are incorporated into Supervisor configuration. The risk arises when an authenticated station manager can submit newline characters in that field and the application later regenerates the configuration.
Exploit preconditions
- Attack surface: Station profile edit API
- Required access: Authenticated access with station-manager permissions
- Trigger point: Supervisor configuration regeneration after a profile update
- Why exploitation is possible: Newline characters in the timezone value can break out of the expected configuration value and define a Supervisor program that runs commands as root
Why this happens
The application treats a user-controlled timezone value as safe configuration content and inserts it into a Supervisor configuration file without adequately constraining or encoding it. Newline characters can alter the structure of that configuration, creating an executable program definition. This is code injection, mapped to CWE-94: Improper Control of Generation of Code.
Potential impact
- An attacker with station-manager access could execute operating-system commands as root when the configuration is regenerated.
- The host or service environment could be compromised.
- An attacker could access or alter data available to the affected environment.
- The compromise could disrupt station services or provide a foothold for further activity.
General mitigation guidance
Defensive approaches generally focus on keeping user-controlled values from becoming configuration syntax:
- Validate timezone values against a strict allowlist of supported timezone identifiers.
- Use configuration-generation mechanisms that safely encode values rather than concatenating raw input.
- Reject control characters, including newlines, in fields intended to hold simple values.
- Run configuration-management processes and services with the least privilege practical; avoid root execution where possible.
- Limit profile-edit permissions to trusted users and review the privilege boundaries of station-manager roles.
How teams detect issues like this
Detection can include static analysis for user-controlled values flowing into configuration files, especially through string concatenation or template interpolation. Code reviews can check whether fields such as timezones are strictly validated and safely encoded, and whether generated Supervisor configuration can define new programs. Runtime monitoring and policy checks can flag unexpected configuration changes, control characters in profile values, or Supervisor programs that are not part of an approved baseline.

