[security] Token can leak unmasked into git failure logs (URL-encoded credential) #6
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Autonomous security audit finding (HIGH).
The token is embedded in the push URL (
src/main.js:146-154).core.setSecretmasks the raw token, but git's stderr echoes the URL-encoded credential, which doesn't match the registered mask — so on a push failure (setFailed~:356) the encoded token can appear in logs.Fix: use
http.extraheader(Authorization) orGIT_ASKPASSand never embed the credential in the remote URL.