-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhcaptcha.mjs
More file actions
30 lines (29 loc) · 898 Bytes
/
Copy pathhcaptcha.mjs
File metadata and controls
30 lines (29 loc) · 898 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import { redact } from '../lib/redact.mjs';
export default {
id: 'hcaptcha',
scope: 'request',
severity: 'blocking',
title: 'hCaptcha detected',
match(run) {
const hits = [];
for (const req of run.requests) {
const v = req.headers['h-captcha-response'];
if (v) {
hits.push({
request_id: req.id,
endpoint: `${req.method} ${req.path}`,
header: 'h-captcha-response',
header_value_redacted: redact(v),
});
}
}
return hits;
},
explanation:
'hCaptcha generates a per-request token via interactive challenge. ' +
'The token cannot be reproduced outside a real browser session with user interaction.',
recommendation:
'Either solve interactively in-browser via cdp Runtime.evaluate, ' +
'or use a CAPTCHA-solving service as a paid escape hatch.',
execution_model: 'in_browser',
};