Skip to content
MediumVulnerability

GHSA-q4w7-56hr-83rm: Nginx-UI Settings API Exposes Protected Secrets

Published
Record updated
View JSON
Affected
  • github.com/0xJacky/nginx-ui <= 2.3.7
Fixed in
2.3.8
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.3%

Summary

The GetSettings handler in api/settings/settings.go serializes every settings struct to JSON for any authenticated user. The protected:"true" tag is enforced only on writes through ProtectedFill in SaveSettings, so more than 40 protected fields, including JwtSecret, NodeSecret, OIDC ClientSecret and the IPWhiteList configuration, are returned on read. Exposed secrets allow forging auth tokens, impersonating cluster nodes and performing OAuth flows as the application.

Mitigation

The source does not state a fix yet. Check the original advisory for updates.