Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

navigator.plugins is not an instance of PluginArray, causing false positive BotD detection #586

Closed
AJGranowski opened this issue Jul 16, 2024 · 1 comment

Comments

@AJGranowski
Copy link

AJGranowski commented Jul 16, 2024

Expected Behavior

navigator.plugins instanceof PluginArray === true

Expected BotD result:

JSON.stringify(await BotD.load().then((bd) => bd.detect())) 
'{"bot":false}' 

Current Behavior

navigator.plugins instanceof PluginArray === false

This discrepancy causes false positive BotD detection as a headless chrome bot. Disabling Chameleon or changing this line in BotD to return true causes BotD to correctly return a not-bot result.

You can probe the BotD detector using https://xcancel.com/search [1]

JSON.stringify(await BotD.load().then((bd) => bd.detect())) 
'{"bot":true,"botKind":"headless_chrome"}'

Context (Environment)

Chameleon v0.22.60
Firefox 128.0 (64-bit) on Windows 10

Related to BotD#171.

@sereneblue
Copy link
Owner

@AJGranowski Thanks! This will be fixed in the next update.

sereneblue added a commit that referenced this issue Jul 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants