GHSA-7w54-gp8x-f33m

Suggest an improvement
Source
https://github.com/advisories/GHSA-7w54-gp8x-f33m
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/01/GHSA-7w54-gp8x-f33m/GHSA-7w54-gp8x-f33m.json
JSON Data
https://api.test.osv.dev/v1/vulns/GHSA-7w54-gp8x-f33m
Aliases
Published
2022-01-12T22:44:47Z
Modified
2023-11-01T04:57:40.656401Z
Severity
  • 6.5 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N CVSS Calculator
Summary
Potential exposure of tokens to an Unauthorized Actor
Details

Impact

When using this library as a way to programmatically communicate with Replit in a standalone fashion, if there are multiple failed attempts to contact Replit through a WebSocket, the library will attempt to communicate using a fallback poll-based proxy. The URL of the proxy has changed, so any communication done to the previous URL could potentially reach a server that is outside of Replit's control and the token used to connect to the Repl could be obtained by an attacker, leading to full compromise of that Repl (not of the account).

Patches

This was patched in 7.3.1, by updating the address of the fallback WebSocket polling proxy to the new one.

Workarounds

Specify the new address for the polling host (gp-v2.replit.com) in the ConnectArgs:

const connectOptions: ConnectArgs = {
  // ...
  pollingHost: 'gp-v2.replit.com',
};
client.connect(connectOptions);

For more information

Thanks to https://hackerone.com/orlserg for disclosing this.

If you have any questions or comments about this advisory: * Open an issue in replit/crosis * Email us at security@replit.com

Database specific
{
    "github_reviewed_at": "2022-01-10T23:18:10Z",
    "nvd_published_at": "2022-01-11T15:15:00Z",
    "cwe_ids": [
        "CWE-200"
    ],
    "severity": "MODERATE",
    "github_reviewed": true
}
References

Affected packages

npm / @replit/crosis

Package

Name
@replit/crosis
View open source insights on deps.dev
Purl
pkg:npm/%40replit/crosis

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
7.3.1