Giter Club home page Giter Club logo

Comments (4)

testbird avatar testbird commented on June 23, 2024

Where are domain names translated?

The general conclusion seems to depreciate "punnycode" international domain names.
https://stackoverflow.com/questions/7497468/can-punycode-encoded-email-addresses-clash-with-real-addresses
http://rant.gulbrandsen.priv.no/eai/utf8-punycode
And a search for "punnycode security" brings up many reasons to disable it by default. At least in browsers.

from deltachat-android.

t-oster avatar t-oster commented on June 23, 2024

can you provide an example? I am not sure I understand where the problem occurs.

from deltachat-android.

testbird avatar testbird commented on June 23, 2024

According to the last link messages including headers can be UTF8, but domain names can not, they need to be in punny-code. (special characters are translated into something like xn--code)

The last paragraph says to use UTF8 everywhere internally, and to only translate before sending (outgoing).

BUT (IIUC) the spoofing problem comes in when translating incoming punny domains (what r10s seems to refer to above), because there are multiple punnycode domains that look the same for the user.

Thus, also keeping the domain part as non-ambiguous punny-code for reference internally and use it to assign incoming messages to the right chat (possibly also displaying in the contact details), also seems safer (prevents others to spoof). (And, do not translate local parts to always stay unambiguous and prevent mis-addressing and spoofing.)

from deltachat-android.

r10s avatar r10s commented on June 23, 2024

moved to deltachat/deltachat-core#264

from deltachat-android.

Related Issues (20)

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.