Is Giant Coupons Official Extension safe?
Giant Coupons Official Extension is medium risk.
Giant Coupons sends the full URL of every page you visit to api.giantcoupons.net and can open tabs on its reply.
On every page load, a content script passes the page URL and window size to the extension, which posts them with a persistent ID to api.giantcoupons.net. The server's reply can open new tabs or popup windows. Separately, when a page fails to load (HTTP error or DNS failure), the extension redirects the tab to giant.coupons/offers, passing the failed URL and your ID.
Strong link to a flagged operator: 1 of the 3 other listings from the same operator is rated high or critical for malicious behavior. Flagged: Errors.net official extension (high).
Who publishes itStatus 77 - 3 other listings from the same operator, 1 of them carrying a finding
Status 77 - 3 other listings from the same operator, 1 of them carrying a finding
Same store account
3 other listings published from this account, 30k+ users between them. 1 of them carries a finding.
Giant Coupons Official Extension findings
Giant Coupons sends the full URL of every page you load to its server
Code analysis shows a script on every page sends its full URL and window size to api.giantcoupons.net on load.
The server's reply can open tabs or popup windows.
What actually happens
You open any web page.
The content script matches all http and https sites and has no shop filter.
The extension sends the page's full URL and your install ID to api.giantcoupons.net.
The server can answer with a tab or window for the extension to open.
Fields in the POST body to api.giantcoupons.net/check/
- Page URLhttps://www.example.com/account/orders?id=1042
The full address of the page you are viewing, including path and query string.
- Install ID3f9c2b1e-7a4d-4c0e-9b52-1d8e6a7f0c34 (illustrative)
A random ID stored at install time and sent with every request, so visits link to one install.
- Window geometry
Screen position and window sizes.
The code that does this
Page script sends URL; worker relays it and opens what the server returns
Content script
utility.jsconst couponSpace = () => { const dimensions = { offset: { x: window.screenY, y: window.screenX }, details: { x: window.screenY, y: window.screenX, oh: window.outerHeight, ih: window.innerHeight, ow: window.outerWidth, iw: window.innerWidth }, }; chrome.runtime.sendMessage({ name: window.location.href, dimensions, }).catch(console.error); };Service worker listener
worker.jschrome.runtime.onMessage.addListener(async (request, sender) => { try { const { uuid } = await chrome.storage.sync.get('uuid'); const coupon = await fetchCoupons(COUPON_URL, { uuid, vendor: { name: request.name }, dimensions: request.dimensions }); if (coupon?.notice) { chrome.tabs.create(coupon.notice); } else if (coupon?.alert) { chrome.windows.create(coupon.alert); } } catch (error) { console.error('Error handling runtime message:', error); }});Destination of the page URL
- api.giantcoupons.net
Vendor endpoint that receives the URL and install ID and returns tab or window instructions.
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.
Giant Coupons redirects the tab to its offers page when a site fails to load
Code analysis shows that on a DNS failure or 4xx/5xx main-frame response, the extension moves the tab to giant.coupons/offers with the failed URL and install ID, once per host.
What actually happens
A page you open fails with a DNS error or a 4xx or 5xx status.
This applies to any website, not only shops.
The extension replaces the tab with giant.coupons/offers, passing the failed URL and your install ID.
This happens the first time a host fails, then not again until it rotates out of a five-entry list.
Query parameters added to the offers URL
- Failed page URLhttps://www.example.com/internal/report?id=77
The full address that failed to load, URL-encoded into the errorurl parameter.
- Error typenx
nx for a DNS failure, or the HTTP status code.
- Install ID3f9c2b1e-7a4d-4c0e-9b52-1d8e6a7f0c34 (illustrative)
The random ID stored at install time, sent in the uuid parameter.
The code that does this
Error handler and its listener registration
handleError
worker.jsasync function handleError(e) { try { const { shoperror, uuid } = await chrome.storage.sync.get(['shoperror', 'uuid']); const parseshoperror = JSON.parse(shoperror); const hostname = encodeURIComponent(new URL(e.url).hostname); const errorType = e.error?.includes('RESOLVE') ? 'nx' : e.statusCode?.toString().startsWith('4') || e.statusCode?.toString().startsWith('5') ? e.statusCode.toString() : null; if (errorType && !parseshoperror.hosts.includes(hostname)) { parseshoperror.hosts = [hostname, ...parseshoperror.hosts].slice(0, 5); await chrome.storage.sync.set({ shoperror: JSON.stringify({ hosts: parseshoperror.hosts }) }); chrome.tabs.update(e.tabId, { url: `${ERROR_URL}&errorurl=${encodeURIComponent(e.url)}&error=${errorType}&uuid=${uuid}` }); } } catch (error) { console.error('Error handling web request error:', error); }}Listener registration
worker.jsconst webRequestOptions = { urls: ['http://*/*', 'https://*/*'], types: ['main_frame'] };chrome.webRequest.onErrorOccurred.addListener(handleError, webRequestOptions);chrome.webRequest.onHeadersReceived.addListener(handleError, webRequestOptions);Destination of the failed URL
- giant.coupons
Vendor site that receives the failed URL, error type and install ID, and shows an offers page.
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 Giant Coupons Official Extension sends data
- api.giantcoupons.net
Found in its code · only this extension
- giant.coupons
Found in its code · only this extension
Chrome Web Store listing
- Last updated
- June 28, 2024
- Size
- 12.37 KiB
