question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

anti-FP feature request: enumerating history

See original GitHub issue

From here: https://github.com/ghacksuserjs/ghacks-user.js/issues/458#issuecomment-402264058 and kkapsner’s reply

these APIs would also allow the history.length to be spoofed in a sneaky fashion. To be honest: it would be really simple to include this in CanvasBlocker… 😉

Since this extension now seems to be growing beyond canvas (audio now added), and only looking IMO to fill gaps in the market, I think this would be a good extra

– background–

FF has a pref, from our user.js

/* 0804: limit history leaks via enumeration (PER TAB: back/forward) - PRIVACY
 * This is a PER TAB session history. You still have a full history stored under all history
 * default=50, minimum=1=currentpage, 2 is the recommended minimum as some pages
 * use it as a means of referral (e.g. hotlinking), 4 or 6 or 10 may be more practical ***/
user_pref("browser.sessionhistory.max_entries", 10);

I’m not knowledgeable as to how JS can use this. Sure, it can get a count, but can it read the values? JonDoNym recommends 2, and to reset it on every domain change (doesn’t matter if it is higher on the same domain)

I use 10 in my FF profile (workflow needs it), but have for years obfuscated the real value using a user script https://github.com/ghacksuserjs/ghacks-user.js/wiki/4.2.1-User-Scripts. Note that there can be issues with @run-at document-start but not in this case with VM (GM will fail). It’s a very simple script

You can test the history value at http://browserspy.dk/document.php or take the JonDoNym test ( http://ip-check.info/?lang=en ). The result is under Tab History

eeek

If this could be built into CB, without affecting FF internally (so you still usefully go back per tab as many as the pref value), this would remove the need for the user script (which can leak it’s function name). And, if the history length can be enumerated (am I using the right word here?), then limit that to (the last) 2 as well?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:30 (21 by maintainers)

github_iconTop GitHub Comments

2reactions
kkapsnercommented, Aug 30, 2018

Looking at the user script again I kind of remember seeing this line… but obviously did not when implementing… I think I will add a user question to whitelist reCAPTCHA when activating the protection. I do not want to add a google URL somewhere in a whitelist without the user accepting.

1reaction
kkapsnercommented, Sep 5, 2018

Yes. It interferes with other extensions like uBlock and NoScript. I even opened an issue for NoScript so they will always overwrite other extension: https://github.com/hackademix/noscript/issues/6 (I think their protection is way more important than CBs).

#214 was the first time I realized that. There are some issues for Firefox open related to this problem.

Read more comments on GitHub >

github_iconTop Results From Across the Web

CyDec Security Anti-Fp
Anti-Fp allows you to create custom fingerprint profiles that can be applied on a per-browser or per-domain basis. Anti-Fp currently supports 10 browsers...
Read more >
Exploring the Authentication Pitfalls of Browser Fingerprinting
(e.g., render different images with WebGL or enumerate a dif- ferent list of fonts), which would result in different fingerprints.
Read more >
A Prediction Tool for Classification of Antimicrobial Peptides
Request PDF | ClassAMP: A Prediction Tool for Classification of Antimicrobial ... Information on sequence features that contribute to target.
Read more >
- TARP AND OTHER GOVERNMENT ASSISTANCE FOR AIG
My testimony includes details about the legislative history of OTS ... As you know, Congress is considering proposals to require regulation of such ......
Read more >
The Last Hope for Scala's Infinity War – John A. De Goes
Conversely, the anti-FP "Scala as better Java" devs are really ... u/gmartres, but you've got to admit that many historical features in ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found