Is Panchully safe?
Panchully is medium risk.
Panchully, a VPN extension, fetches server-supplied redirect rules after 14 days and rewrites matching page navigations.
Two weeks after install, on browser startup, the extension downloads a rule list from rl.panchully.com and uses it to redirect any top-level navigation that matches a rule to a server-chosen URL template, a pattern typical of affiliate link rewriting. Separately, each VPN connect opens a new tab to search.pachully.com with a hardcoded ID, and requests to that site carry a persistent random install ID header.
Who publishes itImalimedia - 8 other listings from the same operator, 1 of them carrying a finding
Imalimedia - 8 other listings from the same operator, 1 of them carrying a finding
Same store account
8 other listings published from this account, 2k+ users between them. 1 of them carries a finding.
Panchully findings
Panchully VPN rewrites page loads to server-chosen URLs after a 14-day delay
Code analysis shows the extension downloads redirect rules from its server 14 days after install and swaps matching page loads for a server-supplied URL.
Live rule contents were not observed.
What actually happens
You open a link on a site that a server-supplied rule names.
The address must carry the parameter the rule looks for.
The extension replaces the page you asked for with a different address from its rule list.
The extension's description mentions only a VPN.
The code that does this
Delayed download of the rule list
// On install: record a timestamp 20160 minutes (14 days) ahead.chrome.runtime.onInstalled.addListener(() => { chrome.runtime.OnInstalledReason.INSTALL && setApplyTime(addMinutes(20160));});// On every browser startup: once the 14 days have passed, pull the rule list.chrome.runtime.onStartup.addListener(() => refreshTrks());async function refreshTrks() { if (await applyTimePassed()) { const rules = await fetch("https://rl.panchully.com/trk.json").then(r => r.json()); chrome.storage.local.remove("trks"); setTimeout(() => chrome.storage.local.set({ trks: rules }), 30000); }}The code that does this
Navigation listener that rewrites the tab
// No URL filter: fires for every top-level navigation in the browser.chrome.webNavigation.onBeforeNavigate.addListener(async (details) => { const trks = await getStoredTrks(); for (const rule of trks || []) { const { trk_url, trk_pathname, trk_param, trk_replace_url } = rule; const url = new URL(details.url); if (hostMatches(url, trk_url) && url.pathname === `/${trk_pathname}`) { const code = url.searchParams.get(trk_param); if (code) { chrome.tabs.update(details.tabId, { url: trk_replace_url.replace("<TRK_CODE>", encodeURIComponent(code)) }); } return; } }});Fields in each server-supplied rule
- trk_urlhttps://www.example-shop.com
The site whose page loads the rule watches for.
- trk_pathnamego
The page path that triggers the rule.
- trk_paramref
The query parameter whose value is carried into the new address.
- trk_replace_urlhttps://partner.example/click?code=<TRK_CODE>
The address your tab is sent to instead (illustrative).
When this fires
On every browser startup
Rules are fetched on a browser startup, but only once 14 days have passed since install.
Where rules come from
- rl.panchully.com
Serves trk.json, the redirect rule list. Same publisher as the extension.
Observation
Static analysis finding. This behaviour was identified by reading the shipped extension code and has not yet been reproduced in a live run. The trigger conditions and the exact data sent are read from the code, not from an observed capture.
Where Panchully sends data
- rl.panchully.com
Found in its code · only this extension
- search.pachully.com
Found in its code · only this extension
Chrome Web Store listing
- Store rating
- 3.7 from 3 ratings
- Last updated
- February 28, 2024
- Size
- 164 KiB
