Skip to content

Add bypass for Realeyes VerifEye (@realeyes/verifeye-sdk)#30

Open
1012020 wants to merge 3 commits into
helloyanis:mainfrom
1012020:add-verifeye-realeyes-bypass
Open

Add bypass for Realeyes VerifEye (@realeyes/verifeye-sdk)#30
1012020 wants to merge 3 commits into
helloyanis:mainfrom
1012020:add-verifeye-realeyes-bypass

Conversation

@1012020

@1012020 1012020 commented Jul 15, 2026

Copy link
Copy Markdown
realeyes ai works by replacing the mediapipe face detection module with a stub that skips the camera check, then patching window.fetch in the page to intercept all verification api calls and return fake 200s before they reach the server.

https://realeyes.ai/try-demo/#demo
https://realeyes.ai/verifeye-demo-eu/

@helloyanis helloyanis left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, maybe add a few comments explaining what each of the listeners do? It's hard to understand from a distance.

Comment thread websites/verifeye.realeyes.ai.js Outdated
Comment on lines +41 to +42
browser.webRequest.onBeforeRequest.addListener(_injectPatcher, { urls: ["*://*/*faceDetectionService-CohHJWWF*"] }, []);
browser.webRequest.onBeforeRequest.addListener(_injectPatcher, { urls: ["*://verifeye-service-eu.realeyes.ai/api/v1/verification/init-session*", "*://verifeye-service-us.realeyes.ai/api/v1/verification/init-session*"] }, []);

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These could be merged into a single listener. But with onHeadersReceived I don't think there should be a need to initialize these since it gets called directly when the URL is called.

Comment thread websites/verifeye.realeyes.ai.js Outdated
target: { tabId: details.tabId, allFrames: true },
func: () => {
if (document.__verifeyePatcherInjected) return;
document.__verifeyePatcherInjected = true;

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can be very easily patched and checked by the site so that they can detect that the extension is installed. I'll have to see if it's possible to change that

Comment thread websites/verifeye.realeyes.ai.js Outdated
func: () => {
if (document.__verifeyePatcherInjected) return;
document.__verifeyePatcherInjected = true;
const s = document.createElement("script");

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can also be detected by the page. I recommend using the API executeScript like on the reddit bypass, so that it's not injected on the page and so they can't check for an added script tag

Comment thread websites/verifeye.realeyes.ai.js Outdated
Comment on lines +21 to +35
if(window.__verifeyeBypassInstalled)return;
window.__verifeyeBypassInstalled=true;
const orig=window.fetch;
window.fetch=async function(resource,options){
const url=resource instanceof Request?resource.url:String(resource);
if(url.includes("verifeye-service-")&&url.includes("/api/v1/verification/")){
if(url.includes("/init-session")){
let sid;try{sid=JSON.parse(options?.body||"{}").verificationSessionId;}catch{}
return new Response(JSON.stringify({verificationSessionId:sid||crypto.randomUUID(),livenessCheckType:"disabled",kinesisConfig:null,accountHash:""}),{status:200,headers:{"Content-Type":"application/json"}});
}
return new Response("{}",{status:200,headers:{"Content-Type":"application/json"}});
}
return orig.apply(this,arguments);
};
})();`;

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's best if we don't patch the fetch function. A better practice is to use onHeadersReceived to modify the response headers like the status code

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

Successfully merging this pull request may close these issues.

2 participants