Unicode should not have invisible characters.
Be careful what you copy: Invisibly inserting usernames into text
141–150 of 200 posts
Re: Be careful what you copy: Invisibly inserting usernames into text
#142The so-called-better-way of doing this using Unicode substitution can be found at http://smartdata.cs.unibo.it/watermark/
An MD5 hash for any decent-length password is long, and this method only allows you to replace the subset of "confusable" latin chars in a text.
For instance: C = 0x0043 = 0x216d
When you reach one of these replaceable characters, you either replace it or you don't, which you mark as either 1 or 0.
So for the string "password", our binary MD5 hash is "01011111010011011100110000111011010110101010011101100101110101100001110110000011001001111101111010111000100000101100111110011001".
That 128 possible replacements needed in the original text.
I imagine the original text would have to be at least 10-20 times that length before we found enough "confusable" latin chars to replace.
I'm eager to hear what I'm missing, because I do like this method a lot.
Re: Be careful what you copy: Invisibly inserting usernames into text
#143How difficult would it be to write a browser extension to either remove all zero-width characters or somehow make it super obvious that they are being used on the page? I just searched for "zero-width" and "zero width" in Chrome and Firefox's extensions stores, but didn't come up with anything.
Re: Be careful what you copy: Invisibly inserting usernames into text
#144I'm surprised I can't detect them on notepad++
Re: Be careful what you copy: Invisibly inserting usernames into text
#145Earlier quoted context omitted.
The safest thing is to retype it. But that doesn’t cover the risk of synonym/frequency fingerprinting discussed elsewhere in this thread.
What if you also did a random synonym replacement throughout the piece to destroy the watermarking? If the source is anonymous and hidden, then authenticity cannot be checked by the reader anyway, and so replacement without changing meaning is an acceptable change to protect sources.
Re: Be careful what you copy: Invisibly inserting usernames into text
#146Earlier quoted context omitted.
The easiest is again to do synonym/word/punctuation replacement but with the intent of altering the letter frequency instead of embedding information directly. It's effectively a compression scheme built on-top of synonym replacement using "extra" available information to pack more bits in less words. This means even sentence long quotes in summary form are enough to compromise someone.
It sounds to me that it would be blatantly obvious that a human didn't write whatever result that may produce. And I don't quite get how you can encode that much information in a sentence without it being completely garbled.
Here's 5 bits in that simple sentence. I'm sure others can do better.
Re: Be careful what you copy: Invisibly inserting usernames into text
#147How difficult would it be to write a browser extension to either remove all zero-width characters or somehow make it super obvious that they are being used on the page? I just searched for "zero-width" and "zero width" in Chrome and Firefox's extensions stores, but didn't come up with anything.
Code here: https://github.com/roymckenzie/detect-zero-width-characters-...
Submit a PR! I know it could be better!
Needed features:
* right-click selected text and "Sanitize and Copy" * toggle off and on ...
Re: Be careful what you copy: Invisibly inserting usernames into text
#148How difficult would it be to write a browser extension to either remove all zero-width characters or somehow make it super obvious that they are being used on the page? I just searched for "zero-width" and "zero width" in Chrome and Firefox's extensions stores, but didn't come up with anything.
Whenever I paste, I use ctrl-shift-v. It solves this problem and a multitude of other pasting problems.
I don't think ctrl-shift-v will do what you think here because we're not talking about formatting at all. We're talking about regular unicode UTF-8 encoded text.
Re: Be careful what you copy: Invisibly inserting usernames into text
#149Earlier quoted context omitted.
That's just because the browser doesn't handle unicode well. The 'text-only', 'VGA' and 'textmode' are actually irrelevant. The behaviour you are seeing is down to programmer choice/laziness/missing support.
If you're only expecting ASCII text, then not being able to show anything else could even be considered a feature to reduce attack area, since any sort of Unicode trickery then becomes impossible.
Re: Be careful what you copy: Invisibly inserting usernames into text
#150How difficult would it be to write a browser extension to either remove all zero-width characters or somehow make it super obvious that they are being used on the page? I just searched for "zero-width" and "zero width" in Chrome and Firefox's extensions stores, but didn't come up with anything.
Probably not too hard. I've made a jsfiddle to identify and remove such stuff. Feel free to copy any of it to an extension. https://jsfiddle.net/tim333/np874wae/13/
I put it in a gist:
https://gist.github.com/FranciscoG/01732b606a35615891103ae8e...