The configurable endpoint is not bound to the service associated with the API key, leaving a concrete conditional credential exposure risk. The inspected source does not establish covert theft or a broader attack, so a warning is appropriate.
Static reason
No blocking static signals were detected.; previous stored version diff introduced dangerous source
Trigger
Running the TTS script with a configured API key; an endpoint override selects the request destination.
Impact
The selected endpoint can receive the TTS API key, exposing that credential to an unintended recipient.
Mechanism
The script uses DOUBAO_TTS_ENDPOINT when set and places DOUBAO_TTS_API_KEY in the outgoing request header without restricting the endpoint to the intended service.
Evidence
src/skills-lib/wizz-huashu-design/scripts/tts-doubao.mjs
Network endpoints1
openspeech.bytedance.com/api/v1/tts