-1

I want to detect using vanilla javascript if the end-user has any webextensions enabled at all. Is there a way to query for a list of browser enabled webextensions? Hopefully there is another way besides checking for injected scripts, css and image tags that the page was never intended to load.

This question was shut down for not entering enough security reasons. I can understand why that's a concern but it is not a reason to burn a technical question. Regardless, here are security reasons to want to eliminate web-extensions from a website:

web-extensions allow people to break CSP https://chrome.google.com/webstore/detail/disable-content-security/ieelmcmcagommplceebfedjlakkhpden

scrape your business data, install key loggers to harvest passwords and other information, install image tracking beacons to track private and sensitive end-user information - all unbeknownst to your average end-user.

In addition, deliberate or self-made web-extensions can automate scraping your business data, attempt to spoof captcha logins and other malicious purposes.

user1709076
  • 2,538
  • 9
  • 38
  • 59

1 Answers1

1

some way is

you can check number of script tag that document has (also css)

then if there were more than your resource

user use extension

... some extension does not add script or css

hossein sedighian
  • 1,711
  • 1
  • 13
  • 16
  • As you state, many extensions don't modify page source or page CSS, so the number of extensions that would be caught by this would fall far short. – Dave Newton Oct 06 '20 at 15:33
  • i like this idea if you add searching for tags as well since often a web beacon is installed to track the user unknowingly – user1709076 Oct 06 '20 at 15:46