TerraMaster NAS 4.2.29 and earlier allows remote attackers to discover the administrative password by sending "User-Agent: TNAS" to module/api.php?mobile/webNasIPS and then reading the PWD field in the response.
https://www.cisa.gov/news-events/cybersecurity-advisories/aa24-207a
https://www.cisa.gov/news-events/cybersecurity-advisories/aa23-040a
https://www.broadcom.com/support/security-center/attacksignatures/detail?asid=33732
https://github.com/0xf4n9x/CVE-2022-24990
https://forum.terra-master.com/en/viewforum.php?f=28
http://packetstormsecurity.com/files/172904/TerraMaster-TOS-4.2.29-Remote-Code-Execution.html