Tencent / VasSonic

VasSonic is a lightweight and high-performance Hybrid framework developed by tencent VAS team, which is intended to speed up the first screen of websites working on Android and iOS platform.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cross-Site Scripting: Inter-Component Communication

QiAnXinCodeSafe opened this issue · comments

Intent intent = getIntent();
String url = intent.getStringExtra(PARAM_URL);

sonicSession = SonicEngine.getInstance().createSession(url, sessionConfigBuilder.build());
if (null != sonicSession) {
sonicSession.bindClient(sonicSessionClient = new SonicSessionClientImpl());


public void clientReady() {
if (session != null) {
session.onClientReady();


public void loadUrl(String url, Bundle extraData) {
webView.loadUrl(url);

Sending unvalidated data to a web browser can result in the browser executing malicious code.