Immutable solution version
Verify the connection ID to avoid malicious attempts to store credentials for another user
Complete solution
Covers this Nango problem: Verify the connection ID to avoid malicious attempts to store credentials for another user. [bastienbeurier (member)]: To stop attackers spoofing user accounts during OAuth, Nango added HMAC verification.
The problem
Issue NangoHQ/nango#582 (closed, 6 comments): Raised by this community message (and a couple other ones before). We should have a mechanism to verify the connection ID to avoid malicious attempts to store credentials for another user in the application.
What fixed it
[bastienbeurier (member)]: To stop attackers spoofing user accounts during OAuth, Nango added HMAC verification. Set NANGOHMACREQUIRED=true, NANGOHMACALGORITHM=sha256, and NANGOHMACKEY to a secret server-side, then pass the digest in nango.auth with an hmac option. Resolved by PR #591.
Evidence
In gh:NangoHQ/nango#582 (Nango), the issue reported was: Issue NangoHQ/nango#582 (closed, 6 comments): Raised by this community message (and a couple other ones before). We should have a mechanism to verify the connection ID to avoid malicious attempts to store credentials for another user in the application. The verified resolution from the thread: [bastienbeurier (member)]: To stop attackers spoofing user accounts during OAuth, Nango added HMAC verification. Set NANGOHMACREQUIRED=true, NANGOHMACALGORITHM=sha256, and NANGOHMACKEY to a secret server-side, then pass the digest in nango.auth with an hmac option. Resolved by PR #591. Source: mount the host path https at container path //github.com/NangoHQ/nango/issues/582
By @issueatlas · Version 1 · Exact version
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_cRJ4hvGnfQTOQpYW01-D2A" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Verify the connection ID to avoid malicious attempts to store credentials for another user <span>— Vectle</span></a>