# GHSA-qp7j-x725-g67f: HydrAIDE Authentication Bypass Vulnerability

- Severity: Critical 10.0 (CVSS:3.1, scored by GitHub) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2025-08-19T15:34:48.000Z
- Modified: 2025-08-29T20:37:10.000Z
- Also known as: GO-2025-3895
- Weaknesses: CWE-290

## Description

### Summary
There is no authentication of any kind.


### Details
TLS is implemented, the tunnel between the client and server is secure, however once data is on the server, it's free to be read by any adversaries.

On the client side : https://github.com/hydraide/hydraide/blob/main/sdk/go/hydraidego/client/client.go#L221
It should be using a TLS Config with RootCAs and Certificates, currently RootCAs only (under NewClientTLSFromFile)

And on the server side, there should be ClientCAs and ClientAuth filled.

### PoC
To bypass as is, the simplest way is to take the client and modify the code as such : 

Modified from https://github.com/hydraide/hydraide/blob/main/sdk/go/hydraidego/client/client.go#L209
```go
			// hostOnly := strings.Split(server.Host, ":")[0]
			// creds, certErr := credentials.NewClientTLSFromFile(server.CertFilePath, hostOnly)
			// if certErr != nil {
			// 	slog.Error("error while loading TLS credentials: ", "error", certErr, "server", server.Host, "fromIsland", server.FromIsland, "toIsland", server.ToIsland)
			// 	errorMessages = append(errorMessages, certErr)
			// }
			var opts []grpc.DialOption
			tlsConfig := &tls.Config{
				InsecureSkipVerify: true,
			}
			creds := credentials.NewTLS(tlsConfig)
			opts = append(opts, grpc.WithTransportCredentials(creds))
```

### Impact
It impacts everyone who think there is any kind of authentication.

---

## Resolution

This vulnerability has been fully fixed in server/v2.2.1 together with hydraidectl/v0.2.1.

All users are strongly advised to upgrade:

1. Update to hydraidectl v0.2.1
2. Re-initialize server instances with hydraidectl init into a new folder. This generates the required certificate files, downloads the latest binaries, and sets up the necessary environment variables.

For migration help, join the community Discord: https://discord.gg/xE2YSkzFRm or open a GitHub Discussion.
If anything does not work, please report it.

(As written by GitHub Advisory Database.)

## Affected

- github.com/hydraide/hydraide (Go): from 2.1.1 before 2.2.1; before 0.0.0-20250816184905-1256db38c33c

## References

- <https://github.com/hydraide/hydraide/security/advisories/GHSA-qp7j-x725-g67f> (advisory, web)
- <https://github.com/hydraide/hydraide/commit/b252554a811400a81951dc9f959b99077f187975#diff-63efbc8179fff403eb5cc642407b33c0fb21aea2c84baaf5e5223f76f5d75f55> (fix, web)
- <https://github.com/hydraide/hydraide> (package)
- <https://pkg.go.dev/vuln/GO-2025-3895> (web)

## Sources

- GitHub Advisory Database: [GHSA-qp7j-x725-g67f](https://github.com/advisories/GHSA-qp7j-x725-g67f), CC-BY-4.0, modified 2025-08-29
- Go Vulnerability Database: [GO-2025-3895](https://pkg.go.dev/vuln/GO-2025-3895), CC-BY-4.0, modified 2025-08-29

---

Page: https://cve.day/GHSA-qp7j-x725-g67f · Whole record: https://cve.day/GHSA-qp7j-x725-g67f.json · Rebuilt by cve.day 2026-11-25T22:56:24.121Z
