GithubHelp home page GithubHelp logo

aykutcevik / idn-safe Goto Github PK

View Code? Open in Web Editor NEW
37.0 6.0 4.0 166 KB

"IDN Safe" is a browser extension which blocks internationalized domain names to prevent you from visiting probable fake sites

License: GNU General Public License v3.0

CSS 2.93% HTML 16.14% JavaScript 80.92%
idn-safe punycode i18n domain extension browser chrome-extension chrome

idn-safe's Introduction

IDN-Safe

"IDN Safe" is a browser extension which blocks internationalized domain names to prevent you from visiting probable fake sites

IDN Safe blocks internationalized domain names also known as punycode domains. This helps you to identify them and will prevent you from visiting probable fake sites.

The use of Unicode in domain names makes it potentially easier to spoof web sites as the visual representation of an IDN string in a web browser may make a spoof site appear indistinguishable to the legitimate site being spoofed, depending on the font used.

With IDN Safe you can temporarily allow domains or whitelist them at all. By default they are blocked.

Get it

More

Example of prevention

Take a look at "рaypal.com" (warning). It seems like a valid paypal-Domain. In fact it's not. The first character is not an ASCII p. IDN Safe prevents you from visiting this site by blocking it.

idn-safe's People

Contributors

aykutcevik avatar b0nk3rz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

idn-safe's Issues

Firefox Mobile

It doesn't seem to work on Firefox Mobile for Android.
When visiting sites from Mozilla's IDN list, it doesn't block any of them.

Not seeing blocked content indicator

Thank you for the excellent extension!

Overall, the extension works well, but in Firefox 59.0, I'm not seeing the blocked page replaced with a warning. Instead, it shows only a blank page.

The toolbar indicator is working fine, but I prefer to keep that hidden in the overflow menu.

Show the user which character isn't Punycode

It would be useful and interesting for the extension to indicate to the user (possibly simply by highlighting in red for example) which character in the domain name is the 'fake' character that doesn't fit within the punycode parameters.

No indicator on redirects

When a blocked domain is temporarily allowed and forwards to another blocked domain the icon appears green. It should be red and has a counter.
Blocking is still working.

Problem with alert

When we try to access to a punycode domain adress directly from a page by a selection on it, right click and "Access at {punycode domain}, the website is well blocked, but we can see the full name, and not simply "xn--blablabla".

More information on my screenshot :

image

Near miss on security issue - cross-site scripting in extension window

Hello,

I've just quickly reviewed this extension and identified an unsafe pattern in the popup construction. The names of blocked domains are injected in to the popup HTML without HTML-encoding them to prevent injection of Javascript or other HTML content.

I have not identified a working way to exploit this, however any of the following would have resulted in injection of arbitrary HTML in to the popup:

  • Any URL scheme which does not use the :// notation being passed to the onBeforeRequest handler, based on the custom URL decoding routine ignoring this possibility.
  • If punycode allowed ASCII characters to be redundantly encoded (I checked, it doesn't seem to).
  • If Chrome passed protocol-relative or other incomplete URLs to the extension (it doesn't)

HTML-encoding content before injecting it in to the popup would remove the hazard that such a condition is introduced in future.

Possibly slowing down Firefox

Thank you for the useful extension.

I tested it in a working Firefox installation, and I noticed some slowdown when clicking on links, especially when loading them in the background.

suggestion plan for firefox 57* webextension?

Hi, i tested your IDN-Safe in Chrome, but mostly i use Firefox. I signed your extension for my private and installed it in firefox. Generally it works and shows a red icon during punycode adress.
But, it shows not this blue "1" in the icon, and not the real adress in adressbar and browsertab and so i can not reload the page. In chrome all works perfect.

Please please, would you make a full compatible firefox webextension? it would be really great! It exist no such extension on https://addons.mozilla.org/ as a webextension and i think such a extension would be very necessary and needed and IDN-Safe is the best i found in the web ;)
idn-safe-chrome
idn-safe-firefox
Greetings (and sorry for my bad english)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.