Description
Erugo before 0.2.16 contains a missing authorization vulnerability in the settings read API that allows any authenticated non-admin user to read administrator-only settings. Attackers, including guests with reverse-share invitation tokens, can request GET /api/settings/group/system.smtp or keys like smtp_password to obtain plaintext SMTP credentials and send mail through the instance's server.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| ErugoOSS | Erugo | 0 <0.2.16 | — |
References
- https://github.com/ErugoOSS/Erugo/blob/v0.2.15/app/Http/Controllers/SettingsController.php#L67-L106
- https://github.com/ErugoOSS/Erugo/blob/v0.2.15/routes/api.php#L112-L117
- https://github.com/ErugoOSS/Erugo/pull/273
- https://github.com/ErugoOSS/Erugo/commit/7630d321d7de18d72c0ba107f105ad94dc5cd0e1
- https://github.com/ErugoOSS/Erugo/releases/tag/v0.2.16
- https://www.vulncheck.com/advisories/erugo-before-0.2.16-missing-authorization-via-settings-read-api