Skip to content
Misconfiguration Write-up Advanced

Flutter Windows Thick Client Ssl Pinning Bypass

The article describes how to bypass SSL pinning and proxy restrictions in Flutter Windows applications. An attacker with local access can intercept HTTPS traffic by hooking the ssl_verify_peer_cert function with Frida and using a proxy tool like Proxifier.

Sourav Kalal Follow

Published on infosecwriteups.com

I recently worked on a Flutter-based application and learned that it is different from other hybrid frameworks like React Native or Electron JS. After reading multiple blogs, I realized that there is no research or blog for Windows applications built with Flutter.

Sourav Kalal, on infosecwriteups.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the Flutter engine uses its own certificate verification (BoringSSL) that does not rely on the Windows certificate store, and the HttpClient class can be configured to ignore system proxy settings.

Impact

An attacker with local access could intercept and view HTTPS traffic from the Flutter Windows application, potentially exposing sensitive data.

What the attacker needed

Local access to the Windows machine; ability to run Frida on the target process; a proxy tool like Burp Suite; possibly Proxifier if proxy is disabled

The fix

Developers should implement certificate pinning within the Dart code or use platform-specific certificate stores to prevent interception.

How it was found

  1. Set the HTTP_PROXY and HTTPS_PROXY environment variables to point to the proxy.
  2. Run the Flutter Windows application and observe an SSL error when it tries to connect through the proxy.
  3. Load flutter_windows.dll into Ghidra and search for handshake.cc to find the ssl_verify_peer_cert function.
  4. Copy the first few bytes of the function to create a pattern for Frida.
  5. Run the Frida script on the application executable to hook and patch ssl_verify_peer_cert.
  6. Use Proxifier to force the application to use the proxy if it ignores environment variables.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

Flutter apps on Windows use their own certificate store, so even if you install a proxy's certificate, the app won't trust it. This article shows how to use a tool called Frida to patch the app in memory so it accepts any certificate, allowing you to see the encrypted traffic. It also explains how to force the app to use a proxy when it normally ignores system proxy settings.

What is Misconfiguration?

Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.

More by Sourav Kalal

View all

2 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Security misconfiguration

The lesson behind this report.

Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.