Appium java-client Allows Network Pivot via Unvalidated directConnect Redirect in AppiumCommandExecutor
Description
Appium Java Client is the Java language binding for writing Appium tests that conform to the W3C WebDriver protocol. From 8.2.1 until 10.1.1, when directConnect(true) is enabled, AppiumCommandExecutor.setDirectConnect() reads the directConnectHost, directConnectPort, and directConnectPath fields from the server's NEW_SESSION response and rebuilds the client's server URL from them, validating only that the protocol is https, with no host allowlist or IP validation; a rogue or compromised server can therefore redirect all subsequent session traffic to an arbitrary destination, enabling full interception of session traffic and a server-side request forgery pivot to internal hosts, including cloud metadata (IMDS) credential theft. This vulnerability is fixed in 10.1.1.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
io.appium:java-clientMaven | >= 8.2.1, < 10.1.1 | 10.1.1 |
Affected products
1- Range: 8.2.1 - 10.1.1
Patches
Vulnerability mechanics
References
5- github.com/advisories/GHSA-28f5-38xr-jh2wghsaADVISORY
- github.com/appium/java-client/commit/2b9cd442b9dbf56ccc6f1e83aeeb411c0ec230c9ghsax_refsource_MISCWEB
- github.com/appium/java-client/pull/2408ghsax_refsource_MISCWEB
- github.com/appium/java-client/releases/tag/v10.1.1ghsax_refsource_MISCWEB
- github.com/appium/java-client/security/advisories/GHSA-28f5-38xr-jh2wghsax_refsource_CONFIRMWEB
News mentions
0No linked articles in our index yet.