Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
the-callback-that-outlived-the-page-cve-2026-78997-uc-browser-android-universal-xss — PoC for CVE-2026-78997, a Universal XSS in UC Browser for Android. Includes a crafted URL builder, a callback-dispatch oracle, and Frida hooks to observe the vulnerable bridge. | Kitploit
Tools/GitHubGitHub/hunt-benito/the-callback-that-outlived-the-page-cve-2026-78997-uc-browser-android-universal-xss
Android SecurityDynamic Analysis (Sandboxing)Vulnerability AnalysisExploitationMobile App PentestingReverse EngineeringWeb Application ExploitationWeb SecurityMobile Security

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share
GitHubhunt-benito/the-callback-that-outlived-the-page-cve-2026-78997-uc-browser-android-universal-xss

the-callback-that-outlived-the-page-cve-2026-78997-uc-browser-android-universal-xss

PoC for CVE-2026-78997, a Universal XSS in UC Browser for Android. Includes a crafted URL builder, a callback-dispatch oracle, and Frida hooks to observe the vulnerable bridge.

View Repository
4h 36m agoNot yet reviewed

CVE-2026-78997 — UC Browser for Android Universal XSS (UXSS)

PoC material for CVE-2026-78997 — Universal Cross-Site Scripting in UC Browser for Android (com.UCMobile.intl, version 13.7.8.1314), disclosed by Omri Inbar (Novee).

A reflected XSS on the bridge-whitelisted domain mtmsg.uc.cn grants access to the privileged ucapi JavaScript bridge. The account.openLoginWindow bridge API stores attacker-controlled JavaScript strings as login/dismiss callbacks in native memory, where they survive page navigation. When the user dismisses the native login dialog over the destination site, the callback is dispatched with an empty URL guard, and the browser executes it with WebView.evaluateJavascript() in the origin of whatever page is loaded — bypassing the Same-Origin Policy.

Full analysis: https://www.hunt-benito.com/blog/the-callback-that-outlived-the-page-cve-2026-78997-uc-browser-android-universal-xss/

Files

Usage

root@kitploit:~
# 1. Build the crafted URL (string assembly only)
$ python3 poc_url_builder.py alert --victim https://www.google.com

# 2. Watch the mechanism (vulnerable vs. fixed dispatch)
$ python3 callback_oracle.py
$ python3 callback_oracle.py --fixed

# 3. Observe in the real app (device/emulator you own, vulnerable build)
$ frida -U -f com.UCMobile.intl -l frida_hooks.js --no-pause

On a vulnerable build: open the crafted URL, let it navigate to the victim site, then dismiss the native login dialog (tap a sign-in option and press X, or close it any other way). The stored callback fires in the victim site's origin.

Legal / ethics

The URL builder performs no network I/O. The mtmsg.uc.cn reflection and the bridge behavior are documented in the researcher's public disclosure (referenced below). Only test against devices and network positions you own or are explicitly authorized to test. Unauthorized access to computer systems is illegal in most jurisdictions.

References

  • Researcher write-up: https://gist.github.com/OmriInbar-Novee/9fd65fe08c1b1cff6a19350e44425de2
  • CVE text: https://gist.github.com/OmriInbar-Novee/ef7a92db148b2eb1ab0aa7b99a565c4c
  • NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-78997
  • CVE record: https://www.cve.org/CVERecord?id=CVE-2026-78997
Download Tool
FilePurpose
poc_url_builder.pyAssembles the crafted mtmsg.uc.cn URL exactly as documented (reflected email parameter, base64 stage-2, account.openLoginWindow registration, navigation). Presets: alert (researcher's demo), demo (harmless), exfil (collector template). Assembles a string only — contacts no host.
callback_oracle.pySelf-contained miniature of the vulnerable callback-dispatch mechanism (store → navigate → dispatch with empty URL guard). Run with --fixed to see the origin-bound remediation block the same chain.
frida_hooks.jsFrida hook on WebView.evaluateJavascript for observing the dispatch in the real app on hardware you own.