Lucene search

K
huntrHaxatronC903D563-BA97-44E9-B421-22BFAB1E0CBD
HistoryMay 13, 2022 - 5:50 p.m.

SSRF in editor's proxy via IPv6 link-local address

2022-05-1317:50:33
haxatron
www.huntr.dev
28
ssrf
vulnerability
editor's proxy
link-local
ipv6
address
filtering
wireshark
bug bounty

EPSS

0

Percentile

12.8%

Description

The proxy server does not check for link-local IPv6 addresses

In https://github.com/jgraph/drawio/blob/dev/src/main/java/com/mxgraph/online/ProxyServlet.java#L255L257, it checks for local IP addresses. It is missing the link-local IPv6 address check -

https://docs.oracle.com/javase/7/docs/api/java/net/InetAddress.html#isLinkLocalAddress()

Proof of Concept

1: Setup Wireshark
2: In your local copy of the DrawIO webapp open:

http://localhost:8080/draw/proxy?url=http%3A%2F%2F[fe80%3A%3A1]

3: The server, takes a while as it attempts to connect to [fe80::1], the default gateway (seen from Wireshark logs) - denoting that fe80:: link-local IPv6 addresses are not being filtered.

EPSS

0

Percentile

12.8%

Related for C903D563-BA97-44E9-B421-22BFAB1E0CBD