DEV Community

johnettagaweraks
johnettagaweraks

Posted on

Koel API keys cross the music library and client application boundary

Koel API keys cross the music library and client application boundary

Koel is a self-hosted music-streaming server built as a Laravel API with a Vue client. Its documentation describes multiple users, roles and permissions. The profile documentation also shows that a user can view a personal API key for connecting Subsonic-compatible clients. The server does not store only music metadata: a library can reveal private listening history, playlists and a user's relationship to an organization.

That makes a Koel exposure review a combination of media access, account roles and API credentials. A public login page is expected. A public API key or an overprivileged guest account is not.

Fixed query scope

This article used these candidate signatures:

app="Koel"
title="Koel"
http.body="Koel"
Enter fullscreen mode Exit fullscreen mode

Each query was submitted with sub_type="all", page 1 and page size 1. On November 23, 2026 the fixed 30-query batch failed before returning a count. The SDK connection to api.zoomeye.ai failed with Windows error 10013. The three Koel observations are unknown. They do not indicate that the product is absent or that any exposed instance is vulnerable.

What the API reveals

The API reference is generated from the application code and includes an authentication area. The data endpoint returns information for the current authenticated user and adds administrative settings when the user is an admin. This design is normal for a multi-user application. It means the identity attached to the API request is the control that determines the visible library and settings.

A personal API key for a Subsonic client can be useful for legitimate media players. It can also live longer than the browser session that created it. After staff changes, an old key may continue to stream music or reveal playlists unless it is revoked. The profile page shows the key to the user, so an exposed browser, screenshot or backup can become a credential leak.

Account and library review

Enumerate users, roles and library access. Confirm who can add media, edit metadata and manage other users. Check for guest accounts that were created for an event and never disabled. Review SSO and proxy-auth settings if the deployment uses them. When PROXY_AUTH_ENABLED is present, the trusted headers and network path need the same care as any authentication bypass surface.

Review API keys for all users and automation. Record the client, creation time, last use and owner. Revoke keys that cannot be tied to an active person. Rotate keys after suspected browser or endpoint compromise. Do not assume that changing a password invalidates every client token. Verify through the product's account controls or by testing a revoked key against a read-only endpoint that the owner approves.

Public and private media

Operators should know whether the library can be browsed without an account, whether share links exist and how they expire. The documentation does not make every media file public. A title match may be only a login page, while a body match may be a public playlist or documentation. Compare the candidate with the actual page and respect access controls.

Monitor login failures, API-key creation and deletion, changes to user roles, bulk downloads and unusual playlist access. If an incident is suspected, block the compromised key, preserve server and proxy logs, and review which media and user metadata were requested. Rotate upstream storage credentials if the Koel process could read them.

Measurement after failure

A later run can repeat the same application, title and body queries with page 1, page size 1 and the same subtype. Keep the failed record. A successful count should be treated as discovery evidence, not as proof that every matching service has an exposed API key or public music library. The decisive checks are account roles, token state and the response visible to an unauthenticated user.

ZoomEye can reduce the search space for self-hosted media services. Koel owners still need to answer a narrower question: which identity can reach which library, and how quickly can that access be removed?

References

Top comments (0)