Coder Social home page Coder Social logo

Incorrect UserAgent? about tor-browser HOT 4 OPEN

guardianproject avatar guardianproject commented on September 17, 2024
Incorrect UserAgent?

from tor-browser.

Comments (4)

 avatar commented on September 17, 2024

Mozilla/5.0 (Android 6.0.1; Mobile; rv:52.0) Gecko/52.0 Firefox/52.0
Mozilla/5.0 (Android 5.1.1; Mobile; rv:52.0) Gecko/52.0 Firefox/52.0
Mozilla/5.0 (Android 7.1.1; Mobile; rv:52.0) Gecko/52.0 Firefox/52.0

Old(current code):
Mozilla/5.0 (Android; Mobile; rv:52.0) Gecko/20100101 Firefox/52.0

Expecting:
Mozilla/5.0 (Android 7.1.1; Mobile; rv:52.0) Gecko/52.0 Firefox/52.0

Reason:

  1. Omitting Android version make your browser isolate and suspicious with other "Firefox Android" users.
  2. Android version - use "7.1.1"? or random? (6.0.1 ~ 7.1.1)

from tor-browser.

amoghbl1 avatar amoghbl1 commented on September 17, 2024

This seems to be legitimate, they have a new way of constructing useragents.
https://dxr.mozilla.org/mozilla-esr52/source/mobile/android/base/AppConstants.java.in#138

Should we move to setting Build.VERSION.RELEASE and AppConstants.MOZ_APP_VERSION to the right values and let AppConstants handle it instead of overriding the UA is something we should think about.

from tor-browser.

 avatar commented on September 17, 2024
public static final String USER_AGENT_FENNEC_MOBILE = "Mozilla/5.0 (Android " +
    Build.VERSION.RELEASE + "; Mobile; rv:" +
    AppConstants.MOZ_APP_VERSION + ") Gecko/" +
    AppConstants.MOZ_APP_VERSION + " Firefox/" +
    AppConstants.MOZ_APP_VERSION;

Firefox Android have:
Mozilla/5.0 (Android 8.0.0; Mobile; rv:59.0) Gecko/59.0 Firefox/59.0

Desktop have:
Mozilla/5.0 (.whatever.) Gecko/20100101 Firefox/52.0

Would you please update the Orfox soon?

from tor-browser.

4ut0-M-4t avatar 4ut0-M-4t commented on September 17, 2024

Product: FennecAndroid
Version: 61.0a1
Current UA with resistFingerprinting turned on: Mozilla/5.0 (Android 6.0; Mobile; rv:59.0) Gecko/20100101 Firefox/59.0

So it's not Gecko/" + AppConstants.MOZ_APP_VERSION

from tor-browser.

Related Issues (16)

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.