cuonztech-privacy-chaos-gate 0.4.8 → 0.4.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/action.yml +1 -1
- package/dist/{chunk-ZSSGFLHF.js → chunk-SFLHJN5I.js} +348 -66
- package/dist/cli.js +2 -2
- package/dist/index.d.ts +55 -7
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/action.yml
CHANGED
|
@@ -196,7 +196,7 @@ runs:
|
|
|
196
196
|
shell: bash
|
|
197
197
|
env:
|
|
198
198
|
ACTION_PATH: ${{ github.action_path }}
|
|
199
|
-
CPCG_PINNED_VERSION: "0.4.
|
|
199
|
+
CPCG_PINNED_VERSION: "0.4.9" # = package.json version; bei jedem Release mit anheben (tests/action-pin.test.ts prüft das)
|
|
200
200
|
run: |
|
|
201
201
|
set -euo pipefail
|
|
202
202
|
|
|
@@ -48,7 +48,9 @@ var RequestEventSchema = z.object({
|
|
|
48
48
|
/** Art der Anfrage laut Browser (script, xhr, fetch, image, ping ...): unterscheidet «nur Programm geladen» von «Daten gesendet». */
|
|
49
49
|
resourceType: z.string().optional(),
|
|
50
50
|
/** IAB-TCF-String im Request (nur nach einer Ablehnung): «denied» weder Zustimmung noch berechtigtes Interesse, «li» nur berechtigtes Interesse, «granted» Zustimmung */
|
|
51
|
-
tcf: z.enum(["denied", "li", "granted"]).optional()
|
|
51
|
+
tcf: z.enum(["denied", "li", "granted"]).optional(),
|
|
52
|
+
/** Google-Mess-Request nach einer Ablehnung, dessen Consent-Mode-Signal (gcs/gcd) «verweigert» meldet (cookieloser Ping) */
|
|
53
|
+
consentMode: z.literal("denied").optional()
|
|
52
54
|
});
|
|
53
55
|
var EvidenceRecordSchema = z.object({
|
|
54
56
|
scenario: ChaosScenarioSchema,
|
|
@@ -107,6 +109,14 @@ var TrackerViolationSchema = z.object({
|
|
|
107
109
|
resourceType: z.string().optional(),
|
|
108
110
|
/** IAB-TCF-String des Requests nach einer Ablehnung: «denied» → Hinweis, «li» → bleibt `tracking-after-deny` (mit Angabe), «granted» → Regel `tcf-consent-mismatch` */
|
|
109
111
|
tcf: z.enum(["denied", "li", "granted"]).optional(),
|
|
112
|
+
/** Consent-Mode-Ping nach einer Ablehnung (gcs/gcd «verweigert», cookielos): Hinweis statt Befund, ob das als Tracking gilt, ist umstritten */
|
|
113
|
+
consentMode: z.literal("denied").optional(),
|
|
114
|
+
/**
|
|
115
|
+
* Anfrage nach «Ablehnen», nach der kein Cookie und keine Kennung desselben Anbieters beim Besucher blieb (Cookies wurden nach der
|
|
116
|
+
* Ablehnung geprüft): Hinweis statt Befund. Cookielose Pings werden mit «Consent Mode» oder «anonymisiert» verteidigt; belastbar ist
|
|
117
|
+
* erst ein Tracking-Cookie, das nach «Ablehnen» und Neuladen bleibt.
|
|
118
|
+
*/
|
|
119
|
+
cookielessAfterDeny: z.literal(true).optional(),
|
|
110
120
|
method: z.string().default("GET"),
|
|
111
121
|
/**
|
|
112
122
|
* Optional (Scanner): die Anfrage kam nicht zustande (Browser brach sie vor dem Senden ab oder die Verbindung scheiterte, z. B. `net::ERR_…`).
|
|
@@ -255,7 +265,7 @@ var LeakReportSchema = z.object({
|
|
|
255
265
|
assessment: z.enum(["indicated", "weak", "none"]),
|
|
256
266
|
indicators: z.array(
|
|
257
267
|
z.object({
|
|
258
|
-
kind: z.enum(["currency", "shipping", "country-selector", "hreflang", "domain", "phone", "audience"]),
|
|
268
|
+
kind: z.enum(["currency", "shipping", "country-selector", "hreflang", "domain", "phone", "audience", "notice", "representative", "vat", "establishment", "address"]),
|
|
259
269
|
strength: z.enum(["strong", "weak"]),
|
|
260
270
|
label: z.string(),
|
|
261
271
|
evidence: z.string()
|
|
@@ -536,7 +546,7 @@ var JURISDICTIONS = {
|
|
|
536
546
|
priorOptInRequired: false,
|
|
537
547
|
consentModeV2: "recommended",
|
|
538
548
|
summary: "Der Besuch aus der EU wird beobachtet und dokumentiert, aber nicht blockierend bewertet: Auf der Startseite fand CPCG keine ausreichenden Merkmale f\xFCr eine Ausrichtung an Kundinnen und Kunden in der EU. Nach dem EU-Modell (opt-in) w\xE4ren Tracker vor der Einwilligung Befunde; ob dieses Modell f\xFCr die Seite gilt, h\xE4ngt davon ab, ob sie sich an Kundschaft in der EU richtet.",
|
|
539
|
-
note: "Regelwerk von CPCG, technische Beobachtung, keine Rechtsberatung. Ausgewertet
|
|
549
|
+
note: "Regelwerk von CPCG, technische Beobachtung, keine Rechtsberatung. Ausgewertet sind die Startseite, die Datenschutzerkl\xE4rung, Impressum und Kontakt sowie einige gelesene Unterseiten; \xABnicht belegt\xBB heisst nicht \xABkein EU-Bezug\xBB. Wer EU-Kundschaft hat, setzt --jurisdiction EU (der EU-Besuch gilt dann immer streng).",
|
|
540
550
|
display: "EU (EU-Bezug nicht belegt: Hinweis)"
|
|
541
551
|
},
|
|
542
552
|
UK: {
|
|
@@ -602,6 +612,7 @@ function verdictFor(profile, ruleId, trackerCategory, embed = false) {
|
|
|
602
612
|
return profile.consentModel === "opt-in" ? "block" : "hint";
|
|
603
613
|
}
|
|
604
614
|
if (rule === "tracking-after-deny") return "block";
|
|
615
|
+
if (rule === "tracking-after-tamper") return profile.consentModel === "objection" ? "hint" : "block";
|
|
605
616
|
if (rule === "pre-consent-embed" && profile.consentModel === "objection") return "hint";
|
|
606
617
|
if (rule === "no-reject-option" || rule === "no-consent-choice") return profile.consentModel === "objection" ? "hint" : "block";
|
|
607
618
|
if (rule === "pre-consent-tracking") {
|
|
@@ -631,8 +642,8 @@ function hintReasonFor(profiles, ruleId, trackerCategory, embed = false) {
|
|
|
631
642
|
if (rule === "refusal-notice-missing") {
|
|
632
643
|
return `Nach ${label} Hinweis, nicht blockierend: der Hinweis auf die Ablehnm\xF6glichkeit (Art. 45c lit. b FMG) gilt als Befund nur in den Schweizer Profilen.`;
|
|
633
644
|
}
|
|
634
|
-
if (ch && (rule === "pre-consent-tracking" || rule === "tracking-without-consent" || rule === "no-reject-option" || rule === "no-consent-choice")) {
|
|
635
|
-
const what = rule === "no-reject-option" ? "Im Banner gibt es kein \xABAblehnen\xBB." : rule === "no-consent-choice" ? "Der Banner bietet keine Auswahl." : trackerCategory === "functional" ? "Ein funktionaler Anbieter l\xE4dt vor der Entscheidung." : "Tracker laden vor der Entscheidung.";
|
|
645
|
+
if (ch && (rule === "pre-consent-tracking" || rule === "tracking-without-consent" || rule === "tracking-after-tamper" || rule === "no-reject-option" || rule === "no-consent-choice")) {
|
|
646
|
+
const what = rule === "no-reject-option" ? "Im Banner gibt es kein \xABAblehnen\xBB." : rule === "no-consent-choice" ? "Der Banner bietet keine Auswahl." : rule === "tracking-after-tamper" ? "Nach einem absichtlich besch\xE4digten gespeicherten Consent-Wert laufen Tracker (die Seite kann nicht wissen, dass abgelehnt wurde)." : trackerCategory === "functional" ? "Ein funktionaler Anbieter l\xE4dt vor der Entscheidung." : "Tracker laden vor der Entscheidung.";
|
|
636
647
|
return `Nach ${label} Hinweis, nicht blockierend: ${what} Art. 45c lit. b FMG verlangt Information und einen Hinweis auf die Ablehnm\xF6glichkeit, keine Einwilligung vorab und keinen Knopf im Banner; blockierend ist, wenn nirgends auf die Ablehnm\xF6glichkeit hingewiesen wird (Banner oder Datenschutzerkl\xE4rung). Der ED\xD6B erwartet den Widerspruch m\xF6glichst vor der Aktivierung (Leitfaden Cookies V1.1, Ziff. 3.9; Merkblatt 31.03.2026): Aufsichtsposition, keine Rechtsnorm.`;
|
|
637
648
|
}
|
|
638
649
|
if (rule === "gpc-ignored") {
|
|
@@ -883,12 +894,14 @@ function vendorForHost(hostname) {
|
|
|
883
894
|
// src/core/scanner/trackerDatabase.ts
|
|
884
895
|
var PIWIK_PRO_CONTAINER = "Piwik PRO (Container)";
|
|
885
896
|
var MATOMO_CLOUD_CONTAINER = "Matomo Cloud (Container)";
|
|
886
|
-
var
|
|
897
|
+
var GOOGLE_ADS_SCRIPT = "Google Ads (Skript conversion_async.js)";
|
|
898
|
+
var CONTAINER_LOADERS = /* @__PURE__ */ new Set([PIWIK_PRO_CONTAINER, MATOMO_CLOUD_CONTAINER, GOOGLE_ADS_SCRIPT]);
|
|
887
899
|
var esc = (domain) => domain.replace(/\./g, "\\.");
|
|
888
900
|
var sub = (domain) => `(?:[^/]+\\.)?${esc(domain)}`;
|
|
889
901
|
var www = (domain) => `(?:www\\.)?${esc(domain)}`;
|
|
890
902
|
var GOOGLE_TLD = "google\\.(?:com?\\.[a-z]{2}|[a-z]{2,3})";
|
|
891
903
|
var at = (host, rest = "(?:/|$)") => new RegExp(`^[a-z]+:\\/\\/${host}${rest}`, "i");
|
|
904
|
+
var SGTM_ENDPOINT_NAME = "Google Analytics (First-Party-Endpoint/sGTM)";
|
|
892
905
|
var KNOWN_TRACKERS = [
|
|
893
906
|
{
|
|
894
907
|
name: "Google Analytics 4",
|
|
@@ -969,6 +982,12 @@ var KNOWN_TRACKERS = [
|
|
|
969
982
|
patterns: [at("[^/]+", "/(?:.*/)?(?:matomo\\.(?:php|js)|piwik\\.php)$")]
|
|
970
983
|
},
|
|
971
984
|
// --- Weitere verbreitete Anbieter ---
|
|
985
|
+
{
|
|
986
|
+
// Nur die Skript-Bibliothek (R1: Laden allein misst nichts). Messanfragen (`/pagead/conversion/…`, `ccm/collect`) bleiben «Google Ads / DoubleClick».
|
|
987
|
+
name: GOOGLE_ADS_SCRIPT,
|
|
988
|
+
category: "marketing",
|
|
989
|
+
patterns: [at(sub("googleadservices.com"), "/pagead/conversion(?:_async)?\\.js$")]
|
|
990
|
+
},
|
|
972
991
|
{
|
|
973
992
|
name: "Google Ads / DoubleClick",
|
|
974
993
|
category: "marketing",
|
|
@@ -1078,6 +1097,7 @@ var KNOWN_TRACKERS = [
|
|
|
1078
1097
|
patterns: [at("platform\\.twitter\\.com", "/"), at("syndication\\.twitter\\.com", "/")]
|
|
1079
1098
|
}
|
|
1080
1099
|
];
|
|
1100
|
+
var TAG_LOADERS = /* @__PURE__ */ new Set([...CONTAINER_LOADERS, ...KNOWN_TRACKERS.filter((t) => t.consentModeLoader).map((t) => t.name)]);
|
|
1081
1101
|
function normalizeForMatching(url) {
|
|
1082
1102
|
try {
|
|
1083
1103
|
const u = new URL(url);
|
|
@@ -1094,7 +1114,7 @@ function identifyFirstPartyGoogleAnalytics(u) {
|
|
|
1094
1114
|
const ua = /^UA-\d+-\d+$/.test(tid) && (v === "1" || v === "2");
|
|
1095
1115
|
if (!ga4 && !ua) return null;
|
|
1096
1116
|
return {
|
|
1097
|
-
name:
|
|
1117
|
+
name: SGTM_ENDPOINT_NAME,
|
|
1098
1118
|
category: "analytics",
|
|
1099
1119
|
embed: false,
|
|
1100
1120
|
consentModeLoader: false
|
|
@@ -1654,12 +1674,18 @@ function hintViolations(violations, strict = false, jurisdictions = resolveJuris
|
|
|
1654
1674
|
}
|
|
1655
1675
|
var UNLISTED_EMBED_PREFIX = "Fremd-Inhalt (";
|
|
1656
1676
|
function hintReasonOf(v, jurisdictions) {
|
|
1657
|
-
if (isAdvisory(v) &&
|
|
1658
|
-
return "Anbieter-Container (
|
|
1677
|
+
if (isAdvisory(v) && TAG_LOADERS.has(v.trackerName)) {
|
|
1678
|
+
return "Anbieter-Container oder Google-Tag (Skript), das nach dem Ablehnen geladen wird: das Laden allein misst nichts; eine Messanfrage mit Signal \xABerteilt\xBB oder ein Cookie danach w\xE4re ein eigener Befund. Das Laden allein misst nichts; folgt eine Messung, w\xE4re sie ein eigener Befund. Dokumentiert, mit --strict blockierend.";
|
|
1659
1679
|
}
|
|
1660
1680
|
if (isAdvisory(v) && v.trackerCategory === "cookieless-analytics") {
|
|
1661
1681
|
return "Cookielose Reichweitenmessung (keine Cookies, kein Zugriff auf das Ger\xE4t): CPCG wertet sie in jedem Modell als Hinweis, nicht blockierend; dokumentiert, mit --strict blockierend.";
|
|
1662
1682
|
}
|
|
1683
|
+
if (isAdvisory(v) && v.consentMode === "denied") {
|
|
1684
|
+
return "Google-Request im Zustand \xABverweigert\xBB des Consent Mode (gcs/gcd, ohne Cookies, nur kurzlebige Kennung): der dokumentierte Ablauf des Consent Mode, aber Google erh\xE4lt Seitenaufruf, IP-Adresse und Browserdaten; ob das als Tracking gilt, ist umstritten. Dokumentiert, mit --strict blockierend.";
|
|
1685
|
+
}
|
|
1686
|
+
if (isAdvisory(v) && v.cookielessAfterDeny === true) {
|
|
1687
|
+
return "Anfrage nach dem Ablehnen, nach der kein Cookie und keine Kennung dieses Anbieters beim Besucher blieb: der Anbieter erh\xE4lt trotzdem Seitenaufruf, IP-Adresse und Browserdaten, ob das als Tracking gilt, ist umstritten (Einwand: Consent Mode, anonymisiert). Befund w\xE4re ein Cookie nach dem Ablehnen. Dokumentiert, mit --strict blockierend.";
|
|
1688
|
+
}
|
|
1663
1689
|
if (isAdvisory(v) && v.tcf === "denied") {
|
|
1664
1690
|
return "Request nach dem Ablehnen mit IAB-TCF-String, der die Ablehnung tr\xE4gt (kein Zweck erteilt): der Anbieter muss selbst verzichten; der Request selbst \xFCbermittelt trotzdem Daten (IP, Seite). Dokumentiert, mit --strict blockierend.";
|
|
1665
1691
|
}
|
|
@@ -3483,7 +3509,7 @@ function isGoogleMeasurementRequest(url) {
|
|
|
3483
3509
|
host
|
|
3484
3510
|
) || /^(www\.)?google\.(com?\.[a-z]{2}|[a-z]{2,3})$/.test(host);
|
|
3485
3511
|
if (!google) return false;
|
|
3486
|
-
return /\/(?:(?:g|j|r|mp)\/)?collect\b|\/pagead\/|\/ccm\/|\/activity[;/]|\/ads\/ga-audiences|\/td\/|\/rmkt\//.test(u.pathname);
|
|
3512
|
+
return /\/(?:(?:g|j|r|mp)\/)?collect\b|\/pagead\/|\/ccm\/|\/measurement\/|\/activity[;/]|\/ads\/ga-audiences|\/td\/|\/rmkt\//.test(u.pathname);
|
|
3487
3513
|
}
|
|
3488
3514
|
function parseConsentSignals(url) {
|
|
3489
3515
|
let u;
|
|
@@ -3492,12 +3518,12 @@ function parseConsentSignals(url) {
|
|
|
3492
3518
|
} catch {
|
|
3493
3519
|
return void 0;
|
|
3494
3520
|
}
|
|
3495
|
-
const gcd = u.searchParams.get("gcd");
|
|
3521
|
+
const gcd = u.searchParams.get("gcd") ?? /[;?&]gcd=([^;&?#]+)/.exec(url)?.[1] ?? null;
|
|
3496
3522
|
if (gcd && /^1\d([a-z]\d){4}/i.test(gcd)) {
|
|
3497
3523
|
const letter = (i) => GCD_LETTER[gcd[i].toLowerCase()] ?? "unset";
|
|
3498
3524
|
return { ad_storage: letter(2), analytics_storage: letter(4), ad_user_data: letter(6), ad_personalization: letter(8), source: "gcd" };
|
|
3499
3525
|
}
|
|
3500
|
-
const gcs = u.searchParams.get("gcs");
|
|
3526
|
+
const gcs = u.searchParams.get("gcs") ?? /[;?&]gcs=([^;&?#]+)/.exec(url)?.[1] ?? null;
|
|
3501
3527
|
if (gcs && /^G1[01]{2}$/.test(gcs)) {
|
|
3502
3528
|
const bit = (c) => c === "1" ? "granted" : "denied";
|
|
3503
3529
|
return { ad_storage: bit(gcs[2]), analytics_storage: bit(gcs[3]), ad_user_data: "unset", ad_personalization: "unset", source: "gcs" };
|
|
@@ -3826,7 +3852,12 @@ var EU_KIND_LABEL = {
|
|
|
3826
3852
|
hreflang: "L\xE4nderversion f\xFCr ein EU-Land",
|
|
3827
3853
|
domain: "Domain eines EU-Landes",
|
|
3828
3854
|
phone: "Telefonnummer mit EU-Vorwahl",
|
|
3829
|
-
audience: "Ausdr\xFCckliche Zielgruppe in der EU"
|
|
3855
|
+
audience: "Ausdr\xFCckliche Zielgruppe in der EU",
|
|
3856
|
+
notice: "Datenschutzerkl\xE4rung richtet sich an Nutzer aus der EU",
|
|
3857
|
+
representative: "Vertreter in der EU (Art. 27 DSGVO)",
|
|
3858
|
+
vat: "Umsatzsteuer-Nummer eines EU-Landes",
|
|
3859
|
+
establishment: "Niederlassung oder Tochtergesellschaft in der EU",
|
|
3860
|
+
address: "Adresse in einem EU-Land"
|
|
3830
3861
|
};
|
|
3831
3862
|
var MAX_INDICATORS = 12;
|
|
3832
3863
|
var EVIDENCE_MAX = 140;
|
|
@@ -4029,13 +4060,26 @@ function fromMarkup(html) {
|
|
|
4029
4060
|
}
|
|
4030
4061
|
}
|
|
4031
4062
|
const codes = /* @__PURE__ */ new Set();
|
|
4032
|
-
|
|
4063
|
+
const swissLangs = /* @__PURE__ */ new Set();
|
|
4064
|
+
for (const m of html.matchAll(/<link[^>]*>/gi)) {
|
|
4033
4065
|
const tag = m[0];
|
|
4034
4066
|
if (!/rel=["']alternate["']/i.test(tag)) continue;
|
|
4035
4067
|
const h = /hreflang=["']([a-z]{2,3})[-_]([A-Za-z]{2})["']/i.exec(tag);
|
|
4036
|
-
if (h
|
|
4068
|
+
if (!h) continue;
|
|
4069
|
+
const lang = h[1].toLowerCase();
|
|
4070
|
+
const cc = h[2].toUpperCase();
|
|
4071
|
+
if (cc === "CH") swissLangs.add(lang);
|
|
4072
|
+
else if (EU_COUNTRY_CODES.has(cc)) codes.add(`${lang}-${cc}`);
|
|
4073
|
+
}
|
|
4074
|
+
if (codes.size > 0) {
|
|
4075
|
+
const NATURAL = /* @__PURE__ */ new Set(["de-DE", "fr-FR", "it-IT", "pt-PT", "es-ES", "nl-NL", "sv-SE", "da-DK", "fi-FI", "pl-PL", "cs-CZ", "el-GR", "hu-HU", "ro-RO"]);
|
|
4076
|
+
const strong = [...codes].some((c) => !NATURAL.has(c) || swissLangs.has(c.slice(0, c.indexOf("-"))));
|
|
4077
|
+
out.push({
|
|
4078
|
+
kind: "hreflang",
|
|
4079
|
+
strength: strong ? "strong" : "weak",
|
|
4080
|
+
evidence: `L\xE4nderversionen (hreflang): ${[...codes].slice(0, 8).join(", ")}${strong ? "" : " (nur Sprach-Etikett, kein eigener L\xE4nderbezug)"}`
|
|
4081
|
+
});
|
|
4037
4082
|
}
|
|
4038
|
-
if (codes.size > 0) out.push({ kind: "hreflang", strength: "strong", evidence: `L\xE4nderversionen (hreflang): ${[...codes].slice(0, 8).join(", ")}` });
|
|
4039
4083
|
for (const m of html.matchAll(/<select\b([^>]*)>([\s\S]*?)<\/select>/gi)) {
|
|
4040
4084
|
const attrs = m[1];
|
|
4041
4085
|
const options = [...m[2].matchAll(/<option\b([^>]*)>([\s\S]*?)<\/option>/gi)].map((o) => ({
|
|
@@ -4098,13 +4142,16 @@ function detectEuReference(sources, pageUrl) {
|
|
|
4098
4142
|
if (!html) continue;
|
|
4099
4143
|
found.push(...fromJsonLd(html), ...fromMarkup(html), ...fromText(visibleText(html)));
|
|
4100
4144
|
}
|
|
4145
|
+
return summarize(found);
|
|
4146
|
+
}
|
|
4147
|
+
function summarize(found) {
|
|
4101
4148
|
const seen = /* @__PURE__ */ new Set();
|
|
4102
4149
|
const unique = [];
|
|
4103
4150
|
for (const f of found) {
|
|
4104
4151
|
const key = `${f.kind}|${f.evidence}`;
|
|
4105
4152
|
if (seen.has(key)) continue;
|
|
4106
4153
|
seen.add(key);
|
|
4107
|
-
unique.push({
|
|
4154
|
+
unique.push({ kind: f.kind, strength: f.strength, evidence: f.evidence, label: EU_KIND_LABEL[f.kind] });
|
|
4108
4155
|
}
|
|
4109
4156
|
const strongKinds = new Set(unique.filter((i) => i.strength === "strong").map((i) => i.kind));
|
|
4110
4157
|
const kept = unique.filter((i) => i.strength === "strong" || !strongKinds.has(i.kind));
|
|
@@ -4115,6 +4162,76 @@ function detectEuReference(sources, pageUrl) {
|
|
|
4115
4162
|
const truncated = kept.length > MAX_INDICATORS;
|
|
4116
4163
|
return { assessment, indicators: kept.slice(0, MAX_INDICATORS), ...truncated ? { truncated: true } : {} };
|
|
4117
4164
|
}
|
|
4165
|
+
var NOTICE_EU_USERS = /(?:Nutzer\w*|Benutzer\w*|Besucher\w*|Kund(?:en|innen)|Personen|Betroffene\w*|Anwender\w*|users|visitors|customers|data\s+subjects|individuals|residents|utilisateurs|visiteurs|utenti|visitatori)\s+(?:aus|in|from|within|de|dans|dall[’']|dall[ao]|nell[’']|nell[ao])\s+(?:dem\s+|der\s+|the\s+|l[’']|la\s+|l[ae]\s+)?(?:EU(?:-Raum|-Ländern|-Staaten)?|Europäische[nr]?\s+Union|EWR|EEA|European\s+(?:Economic\s+Area|Union)|Union\s+européenne|Unione\s+europea)\b|\bEU-(?:Bürger\w*|Nutzer\w*|Kund(?:en|innen)\w*|Besucher\w*)\b|\bEU\s+(?:residents|citizens|users)\b/gi;
|
|
4166
|
+
var NOTICE_BOILERPLATE_BEFORE = /(?:Weitere\s+Informationen|Further\s+information|Informations?\s+compl[ée]mentaires?|Ulteriori\s+informazioni)\s+(?:für|for|pour|per)\s+$/i;
|
|
4167
|
+
function addNoticeIndicators(base, noticeTexts) {
|
|
4168
|
+
for (const raw of noticeTexts) {
|
|
4169
|
+
const text = raw.replace(/\s+/g, " ");
|
|
4170
|
+
for (const m of text.matchAll(NOTICE_EU_USERS)) {
|
|
4171
|
+
const at2 = m.index ?? 0;
|
|
4172
|
+
if (NOTICE_BOILERPLATE_BEFORE.test(text.slice(Math.max(0, at2 - 60), at2))) continue;
|
|
4173
|
+
const extra = { kind: "notice", strength: "strong", evidence: snippet(text, at2, m[0].length) };
|
|
4174
|
+
return summarize([...base?.indicators ?? [], extra]);
|
|
4175
|
+
}
|
|
4176
|
+
}
|
|
4177
|
+
return base;
|
|
4178
|
+
}
|
|
4179
|
+
var ADDRESS_THIRD_PARTY = /hosting|webdesign|realisation|umsetzung|programmierung|fotos?\b|bildnachweis|provider|agentur|design|konzept|webseite\s+von|technische\s+(?:umsetzung|betreuung)|powered\s+by|credits?/i;
|
|
4180
|
+
var ADDRESS_LEGAL_FORM = /\b(?:GmbH(?:\s*&\s*Co\.?\s*KG)?|UG|SARL|S\.?r\.?l\.?|B\.?V\.?|SAS|Sp\.\s?z\s?o\.?\s?o\.?|OHG|KG)\b[^.]{0,60}$/;
|
|
4181
|
+
function mergeFound(base, found) {
|
|
4182
|
+
if (found.length === 0) return base;
|
|
4183
|
+
const haveStrong = new Set((base?.indicators ?? []).filter((i) => i.strength === "strong").map((i) => i.kind));
|
|
4184
|
+
const firstPerKind = /* @__PURE__ */ new Map();
|
|
4185
|
+
for (const f of found) if (!firstPerKind.has(f.kind) && !haveStrong.has(f.kind)) firstPerKind.set(f.kind, f);
|
|
4186
|
+
if (firstPerKind.size === 0) return base;
|
|
4187
|
+
return summarize([...base?.indicators ?? [], ...firstPerKind.values()]);
|
|
4188
|
+
}
|
|
4189
|
+
function addPageIndicators(base, pages) {
|
|
4190
|
+
if (!base) return base;
|
|
4191
|
+
const found = [];
|
|
4192
|
+
for (const { url, html } of pages) {
|
|
4193
|
+
if (!html) continue;
|
|
4194
|
+
let path13 = "/";
|
|
4195
|
+
try {
|
|
4196
|
+
path13 = new URL(url).pathname.slice(0, 60) || "/";
|
|
4197
|
+
} catch {
|
|
4198
|
+
}
|
|
4199
|
+
for (const f of [...fromJsonLd(html), ...fromMarkup(html), ...fromText(visibleText(html))]) {
|
|
4200
|
+
if (f.kind === "phone" || f.kind === "domain") continue;
|
|
4201
|
+
found.push({ kind: f.kind, strength: f.kind === "currency" && f.evidence.includes(" in Euro:") ? "weak" : f.strength, evidence: `Unterseite ${path13}: ${f.evidence}`.slice(0, EVIDENCE_MAX + 40) });
|
|
4202
|
+
}
|
|
4203
|
+
}
|
|
4204
|
+
return mergeFound(base, found);
|
|
4205
|
+
}
|
|
4206
|
+
var IMPRINT_REPRESENTATIVE = /(?:Vertreter(?:in)?|Vertretung|representative|repr[ée]sentant)\b[^.]{0,80}?(?:Art(?:ikel|icle|\.)?\s*27|in\s+der\s+(?:EU|Europäischen\s+Union)|in\s+the\s+(?:EU|European\s+Union)|dans\s+l[’']UE)|Art(?:ikel|icle|\.)?\s*27\s*(?:DSGVO|GDPR|RGPD)/i;
|
|
4207
|
+
var IMPRINT_VAT = /(?:USt\.?-?\s?Id(?:\.?-?Nr)?\.?|UStID|VAT(?:\s*(?:ID|No\.?|number|reg(?:istration)?\.?\s*(?:no\.?|number)?))?|MwSt\.?-?(?:Nr|Nummer)\.?|Umsatzsteuer-?Identifikationsnummer|TVA|P\.?\s?IVA)\s*[:.-]?\s*(?:ATU|DE|FR|IT|NL|BE|ES|PL|CZ|SE|DK|FI|IE|PT|LU|HU|SK|SI|RO|BG|HR|EL|EE|LT|LV|MT|CY)\s?[A-Z0-9]{0,2}\d{7,11}[A-Z0-9]{0,3}\b/i;
|
|
4208
|
+
var IMPRINT_ESTABLISHMENT = new RegExp(
|
|
4209
|
+
String.raw`(?:(?:Zweig)?[Nn]iederlassung(?:en)?|Tochter(?:gesellschaft(?:en)?|firma)|Schwestergesellschaft|Vertriebsgesellschaft|subsidiar(?:y|ies)|branch(?:\s+office)?|succursale|filiale)\b[^.]{0,60}?\b(?:in|im|en|à|a)\s+(?:the\s+)?(?:${COUNTRY_ALTERNATION})\b`,
|
|
4210
|
+
"i"
|
|
4211
|
+
);
|
|
4212
|
+
var IMPRINT_ADDRESS = new RegExp(
|
|
4213
|
+
String.raw`\b(?:D|A|F|I|NL|B|E|PL|DE|AT|FR|IT|ES)-\d{4,5}\s+\p{Lu}[\p{L}.-]+|\b\d{4,5}\s+\p{Lu}[\p{L}.\- ]{2,30},?\s+(?:${COUNTRY_ALTERNATION})\b`,
|
|
4214
|
+
"u"
|
|
4215
|
+
);
|
|
4216
|
+
function addImprintIndicators(base, texts) {
|
|
4217
|
+
const found = [];
|
|
4218
|
+
for (const raw of texts) {
|
|
4219
|
+
const text = raw.replace(/\s+/g, " ");
|
|
4220
|
+
const hit = (re, kind, strength) => {
|
|
4221
|
+
const m = re.exec(text);
|
|
4222
|
+
if (m) found.push({ kind, strength, evidence: snippet(text, m.index, m[0].length) });
|
|
4223
|
+
};
|
|
4224
|
+
hit(IMPRINT_REPRESENTATIVE, "representative", "strong");
|
|
4225
|
+
hit(IMPRINT_VAT, "vat", "strong");
|
|
4226
|
+
hit(IMPRINT_ESTABLISHMENT, "establishment", "strong");
|
|
4227
|
+
const a = IMPRINT_ADDRESS.exec(text);
|
|
4228
|
+
if (a && !ADDRESS_THIRD_PARTY.test(text.slice(Math.max(0, a.index - 200), a.index + a[0].length + 40))) {
|
|
4229
|
+
const withForm = ADDRESS_LEGAL_FORM.test(text.slice(Math.max(0, a.index - 80), a.index));
|
|
4230
|
+
found.push({ kind: "address", strength: withForm ? "strong" : "weak", evidence: snippet(text, a.index, a[0].length) });
|
|
4231
|
+
}
|
|
4232
|
+
}
|
|
4233
|
+
return mergeFound(base, found);
|
|
4234
|
+
}
|
|
4118
4235
|
|
|
4119
4236
|
// src/core/scanner/privacyNotice.ts
|
|
4120
4237
|
var PAGE_LINKS_FUNCTION = `() => {
|
|
@@ -4209,6 +4326,48 @@ function pickPrivacyLinks(links, pageUrl) {
|
|
|
4209
4326
|
}
|
|
4210
4327
|
return { urls, pdfOnly, fallback: false };
|
|
4211
4328
|
}
|
|
4329
|
+
var IMPRINT = /impressum|imprint|legal\s+notice|mentions\s+l[ée]gales|note\s+legali/i;
|
|
4330
|
+
var CONTACT = /kontakt|contact|contatt/i;
|
|
4331
|
+
function pickImprintLinks(links, pageUrl) {
|
|
4332
|
+
let base;
|
|
4333
|
+
try {
|
|
4334
|
+
base = new URL(pageUrl);
|
|
4335
|
+
} catch {
|
|
4336
|
+
return [];
|
|
4337
|
+
}
|
|
4338
|
+
const scored = [];
|
|
4339
|
+
for (const l of links) {
|
|
4340
|
+
let u;
|
|
4341
|
+
try {
|
|
4342
|
+
u = new URL(l.href);
|
|
4343
|
+
} catch {
|
|
4344
|
+
continue;
|
|
4345
|
+
}
|
|
4346
|
+
if (registrable(u.hostname) !== registrable(base.hostname) || /\.pdf$/i.test(u.pathname) || u.search) continue;
|
|
4347
|
+
if (u.pathname === base.pathname && u.hostname === base.hostname) continue;
|
|
4348
|
+
let path13 = u.pathname;
|
|
4349
|
+
try {
|
|
4350
|
+
path13 = decodeURIComponent(path13);
|
|
4351
|
+
} catch {
|
|
4352
|
+
}
|
|
4353
|
+
const imprint = IMPRINT.test(l.text) || IMPRINT.test(path13);
|
|
4354
|
+
const contact = !imprint && (CONTACT.test(l.text) || CONTACT.test(path13));
|
|
4355
|
+
if (!imprint && !contact) continue;
|
|
4356
|
+
if (l.text.length > 40 && !imprint) continue;
|
|
4357
|
+
let score = 0;
|
|
4358
|
+
if (l.footer) score += 2;
|
|
4359
|
+
if (IMPRINT.test(l.text) || CONTACT.test(l.text)) score += 3;
|
|
4360
|
+
if (path13.split("/").filter(Boolean).length <= 3) score += 1;
|
|
4361
|
+
scored.push({ url: u.toString().replace(/#.*$/, ""), score, kind: imprint ? "imprint" : "contact" });
|
|
4362
|
+
}
|
|
4363
|
+
scored.sort((a, b) => b.score - a.score);
|
|
4364
|
+
const out = [];
|
|
4365
|
+
for (const kind of ["imprint", "contact"]) {
|
|
4366
|
+
const best = scored.find((x) => x.kind === kind && !out.includes(x.url));
|
|
4367
|
+
if (best) out.push(best.url);
|
|
4368
|
+
}
|
|
4369
|
+
return out;
|
|
4370
|
+
}
|
|
4212
4371
|
function pickCookiePolicyLink(links, pageUrl, alreadyRead) {
|
|
4213
4372
|
let base;
|
|
4214
4373
|
try {
|
|
@@ -6207,7 +6366,7 @@ import { chromium } from "playwright";
|
|
|
6207
6366
|
import { createHash } from "crypto";
|
|
6208
6367
|
import fs5 from "fs/promises";
|
|
6209
6368
|
import path5 from "path";
|
|
6210
|
-
var CPCG_VERSION = true ? "0.4.
|
|
6369
|
+
var CPCG_VERSION = true ? "0.4.9" : "dev";
|
|
6211
6370
|
function scanConfigOf(config) {
|
|
6212
6371
|
return {
|
|
6213
6372
|
targetUrl: config.targetUrl,
|
|
@@ -6660,7 +6819,7 @@ function isMainNavigation(route, page) {
|
|
|
6660
6819
|
}
|
|
6661
6820
|
function ruleIdFor(phase) {
|
|
6662
6821
|
if (phase === "gpc") return "gpc-ignored";
|
|
6663
|
-
return phase === "post-wipe" ? "tracking-without-consent" : phase === "post-
|
|
6822
|
+
return phase === "post-wipe" ? "tracking-without-consent" : phase === "post-tamper" ? "tracking-after-tamper" : phase === "post-reject" || phase === "post-reject-restart" ? "tracking-after-deny" : phase === "post-revoke" ? "tracking-after-revoke" : "pre-consent-tracking";
|
|
6664
6823
|
}
|
|
6665
6824
|
function isGoogleAdHost(url) {
|
|
6666
6825
|
try {
|
|
@@ -6862,10 +7021,16 @@ function deepSamplingText(deep, reached, visited, saved, budgetExhausted) {
|
|
|
6862
7021
|
return parts.join(" ");
|
|
6863
7022
|
}
|
|
6864
7023
|
var TCF_DENIAL_PHASES = /* @__PURE__ */ new Set(["post-reject", "post-reject-restart", "post-revoke", "post-tamper"]);
|
|
6865
|
-
function
|
|
6866
|
-
|
|
7024
|
+
function consentModePingOf(url, hit) {
|
|
7025
|
+
return (isGoogleMeasurementRequest(url) || hit?.name === SGTM_ENDPOINT_NAME) && summarizeSignals(parseConsentSignals(url)) === "denied" ? { consentMode: "denied", advisory: true } : void 0;
|
|
7026
|
+
}
|
|
7027
|
+
function tcfAdjust(url, phase, hit) {
|
|
7028
|
+
const ping = consentModePingOf(url, hit);
|
|
7029
|
+
if (!TCF_DENIAL_PHASES.has(phase)) return ping ?? {};
|
|
6867
7030
|
const v = tcVerdictOf(url);
|
|
6868
|
-
if (!v)
|
|
7031
|
+
if (!v) {
|
|
7032
|
+
return ping ?? {};
|
|
7033
|
+
}
|
|
6869
7034
|
if (v.verdict === "denied") return { tcf: "denied", advisory: true };
|
|
6870
7035
|
if (v.verdict === "granted") return { tcf: "granted", ruleId: "tcf-consent-mismatch" };
|
|
6871
7036
|
return { tcf: "li" };
|
|
@@ -6875,6 +7040,7 @@ var TCF_DESCRIPTION = {
|
|
|
6875
7040
|
li: (name) => `${name}: Request nach dem Ablehnen; der IAB-TCF-String erteilt keine Zustimmung, beansprucht aber berechtigtes Interesse f\xFCr Zwecke \u2014 der Anbieter darf danach ohne Einwilligung verarbeiten. Die Ablehnung reicht nicht bis zum Anbieter.`,
|
|
6876
7041
|
granted: (name) => `${name}: Nach dem Ablehnen meldet der IAB-TCF-String Zustimmung zu Zwecken.`
|
|
6877
7042
|
};
|
|
7043
|
+
var CONSENT_MODE_PING_DESCRIPTION = (name) => `${name}: Request, dessen Consent-Mode-Signal (gcs/gcd) \xABverweigert\xBB meldet (Ping ohne Cookies, mit nur kurzlebiger Kennung). Das ist der dokumentierte Ablauf des Google Consent Mode; Google erh\xE4lt trotzdem Seitenaufruf, IP-Adresse und Browserdaten, und ob das als Tracking gilt, ist umstritten. Hinweis, mit --strict blockierend.`;
|
|
6878
7044
|
var PERSISTENCE_SUBPAGES = 3;
|
|
6879
7045
|
async function tamperConsentStore(page, keys) {
|
|
6880
7046
|
const done = [];
|
|
@@ -7155,7 +7321,7 @@ var ChaosScanner = class {
|
|
|
7155
7321
|
*/
|
|
7156
7322
|
verdictFlags(hit, ruleId) {
|
|
7157
7323
|
const embedBeforeChoice = hit.embed === true && (ruleId === "pre-consent-tracking" || ruleId === "pre-consent-embed");
|
|
7158
|
-
const containerAfterDeny = !!hit.name &&
|
|
7324
|
+
const containerAfterDeny = !!hit.name && TAG_LOADERS.has(hit.name) && (ruleId === "tracking-after-deny" || ruleId === "tracking-after-tamper");
|
|
7159
7325
|
return {
|
|
7160
7326
|
...isAdvisory2(hit.category) && !embedBeforeChoice || containerAfterDeny ? { advisory: true } : {},
|
|
7161
7327
|
...hit.embed === true ? { embed: true } : {}
|
|
@@ -7167,8 +7333,9 @@ var ChaosScanner = class {
|
|
|
7167
7333
|
return !!e.trackerName && this.trackerVerdict({ name: e.trackerName, category: e.trackerCategory ?? "unknown" }) !== "skip";
|
|
7168
7334
|
}
|
|
7169
7335
|
isBlocking(e) {
|
|
7170
|
-
if (e.trackerName &&
|
|
7171
|
-
|
|
7336
|
+
if (e.trackerName && TAG_LOADERS.has(e.trackerName) && (e.phase === "post-reject" || e.phase === "post-reject-restart")) return false;
|
|
7337
|
+
if (e.url && e.trackerName && consentModePingOf(e.url, { name: e.trackerName })) return false;
|
|
7338
|
+
return !!e.trackerName && e.tcf !== "denied" && e.consentMode !== "denied" && this.trackerVerdict({ name: e.trackerName, category: e.trackerCategory ?? "unknown" }) === "violation";
|
|
7172
7339
|
}
|
|
7173
7340
|
/** Summe der festen Wartezeiten des letzten Scans je Kategorie (Zeitprotokoll von `settle`, Prüfung 11.11.2026 H1). */
|
|
7174
7341
|
settleTimings() {
|
|
@@ -7319,6 +7486,11 @@ var ChaosScanner = class {
|
|
|
7319
7486
|
preStepDeadlineMs(config),
|
|
7320
7487
|
(signal) => this.readPrivacyNotice(scanBrowser, config, signal)
|
|
7321
7488
|
);
|
|
7489
|
+
await this.boundedStep(
|
|
7490
|
+
"Lesen von Impressum und Kontakt",
|
|
7491
|
+
preStepDeadlineMs(config),
|
|
7492
|
+
(signal) => this.readImprint(scanBrowser, config, signal)
|
|
7493
|
+
);
|
|
7322
7494
|
await step("happy-path-denied", (sink) => this.runScenario(
|
|
7323
7495
|
"happy-path-denied",
|
|
7324
7496
|
scanBrowser,
|
|
@@ -8481,7 +8653,8 @@ var ChaosScanner = class {
|
|
|
8481
8653
|
const hit = identifyTracker(url);
|
|
8482
8654
|
if (hit && hit.category === "analytics" && COOKIELESS_CAPABLE.has(hit.name)) capableMeasuring.add(hit.name);
|
|
8483
8655
|
if (hit?.consentModeLoader) loader = true;
|
|
8484
|
-
else if (hit && !isAdvisory2(hit.category) || /\/(g\/)?collect(\?|\/|$)|\/pixel(\?|\/|$)/i.test(url))
|
|
8656
|
+
else if ((hit && !isAdvisory2(hit.category) || /\/(g\/)?collect(\?|\/|$)|\/pixel(\?|\/|$)/i.test(url)) && !((isGoogleMeasurementRequest(url) || hit?.name === SGTM_ENDPOINT_NAME) && summarizeSignals(parseConsentSignals(url)) === "denied"))
|
|
8657
|
+
measurement = true;
|
|
8485
8658
|
});
|
|
8486
8659
|
let mainDoc;
|
|
8487
8660
|
page.on("response", (res) => {
|
|
@@ -8595,6 +8768,7 @@ var ChaosScanner = class {
|
|
|
8595
8768
|
}
|
|
8596
8769
|
if (signal?.aborted) return;
|
|
8597
8770
|
const reading = assessPrivacyTexts(texts);
|
|
8771
|
+
this.euReference = addNoticeIndicators(this.euReference, texts);
|
|
8598
8772
|
const conclusive = reading.readable && (!fallback || reading.refusalHint);
|
|
8599
8773
|
this.privacyNotice = {
|
|
8600
8774
|
url: urls[0],
|
|
@@ -8610,6 +8784,36 @@ var ChaosScanner = class {
|
|
|
8610
8784
|
await context?.close().catch(() => void 0);
|
|
8611
8785
|
}
|
|
8612
8786
|
}
|
|
8787
|
+
/**
|
|
8788
|
+
* Liest Impressum und Kontaktseite (eigene Domain) für den EU-Bezug: Vertreter in der EU, Umsatzsteuer-Nummer, Niederlassung. Nur wenn der
|
|
8789
|
+
* EU-Bezug noch nicht belegt ist (sonst keine weitere Anfrage). Eigener Kontext wie bei der Datenschutzerklärung; jeder Fehler lässt den Stand
|
|
8790
|
+
* unverändert.
|
|
8791
|
+
*/
|
|
8792
|
+
async readImprint(browser, config, signal) {
|
|
8793
|
+
const home = this.homeLinks;
|
|
8794
|
+
if (!home || this.botProtection || !this.euReference || this.euReference.assessment === "indicated") return;
|
|
8795
|
+
const urls = pickImprintLinks(home.links, home.url).filter((u) => this.robotsAllow(u));
|
|
8796
|
+
if (urls.length === 0) return;
|
|
8797
|
+
let context;
|
|
8798
|
+
try {
|
|
8799
|
+
context = await this.newContext(browser, {}, { har: false });
|
|
8800
|
+
const page = await context.newPage();
|
|
8801
|
+
const texts = [];
|
|
8802
|
+
for (const url of urls) {
|
|
8803
|
+
if (signal?.aborted) return;
|
|
8804
|
+
try {
|
|
8805
|
+
await page.goto(url, { waitUntil: "domcontentloaded", timeout: config.timeoutMs });
|
|
8806
|
+
await settle(page, 800, "Layout");
|
|
8807
|
+
texts.push(String(await page.evaluate(`(${PAGE_TEXT_FUNCTION})()`)));
|
|
8808
|
+
} catch {
|
|
8809
|
+
}
|
|
8810
|
+
}
|
|
8811
|
+
if (!signal?.aborted) this.euReference = addImprintIndicators(this.euReference, texts);
|
|
8812
|
+
} catch {
|
|
8813
|
+
} finally {
|
|
8814
|
+
await context?.close().catch(() => void 0);
|
|
8815
|
+
}
|
|
8816
|
+
}
|
|
8613
8817
|
/** Seitenaufbau für den Report, nur wenn die Erkennung etwas gefunden hat. */
|
|
8614
8818
|
stackReport() {
|
|
8615
8819
|
const stack = this.stack ? reconcileConsentTool(this.stack, this.bannerCmp) : void 0;
|
|
@@ -8717,6 +8921,7 @@ var ChaosScanner = class {
|
|
|
8717
8921
|
let phase = setup.phase ?? "pre-consent";
|
|
8718
8922
|
const customIds = /* @__PURE__ */ new Set();
|
|
8719
8923
|
const reportedCookies = /* @__PURE__ */ new Set();
|
|
8924
|
+
let cookiesCheckedAfterReject = false;
|
|
8720
8925
|
let notCheckableReason;
|
|
8721
8926
|
const extraNotes = [];
|
|
8722
8927
|
const infos = [];
|
|
@@ -8725,7 +8930,7 @@ var ChaosScanner = class {
|
|
|
8725
8930
|
const url = req.url();
|
|
8726
8931
|
clock.note(url, (u) => scope.has(u));
|
|
8727
8932
|
const tracker = this.identify(url, phase);
|
|
8728
|
-
const tcf = tracker ? tcfAdjust(url, phase) : {};
|
|
8933
|
+
const tcf = tracker ? tcfAdjust(url, phase, tracker) : {};
|
|
8729
8934
|
timeline.push({
|
|
8730
8935
|
at: (/* @__PURE__ */ new Date()).toISOString(),
|
|
8731
8936
|
url,
|
|
@@ -8733,7 +8938,8 @@ var ChaosScanner = class {
|
|
|
8733
8938
|
trackerCategory: tracker?.category,
|
|
8734
8939
|
phase,
|
|
8735
8940
|
resourceType: req.resourceType(),
|
|
8736
|
-
...tcf.tcf ? { tcf: tcf.tcf } : {}
|
|
8941
|
+
...tcf.tcf ? { tcf: tcf.tcf } : {},
|
|
8942
|
+
...tcf.consentMode ? { consentMode: tcf.consentMode } : {}
|
|
8737
8943
|
});
|
|
8738
8944
|
const verdict = tracker ? this.trackerVerdict(tracker) : "skip";
|
|
8739
8945
|
if (tracker && verdict !== "skip") {
|
|
@@ -8747,12 +8953,13 @@ var ChaosScanner = class {
|
|
|
8747
8953
|
resourceType: req.resourceType(),
|
|
8748
8954
|
method: req.method(),
|
|
8749
8955
|
timestamp: (/* @__PURE__ */ new Date()).toISOString(),
|
|
8750
|
-
description: tcf.tcf ? TCF_DESCRIPTION[tcf.tcf](tracker.name) : `Unauthorized ${tracker.name} (${tracker.category}) request triggered during scenario '${scenario}'.`,
|
|
8751
|
-
...tcf.tcf ? { tcf: tcf.tcf } : {}
|
|
8956
|
+
description: tcf.tcf ? TCF_DESCRIPTION[tcf.tcf](tracker.name) : tcf.consentMode ? CONSENT_MODE_PING_DESCRIPTION(tracker.name) : `Unauthorized ${tracker.name} (${tracker.category}) request triggered during scenario '${scenario}'.`,
|
|
8957
|
+
...tcf.tcf ? { tcf: tcf.tcf } : {},
|
|
8958
|
+
...tcf.consentMode ? { consentMode: tcf.consentMode } : {}
|
|
8752
8959
|
};
|
|
8753
8960
|
const flags = this.verdictFlags(tracker, violation.ruleId ?? "pre-consent-tracking");
|
|
8754
8961
|
if (flags.embed) violation.embed = true;
|
|
8755
|
-
if (verdict === "advisory" && flags.advisory || tcf.advisory ||
|
|
8962
|
+
if (verdict === "advisory" && flags.advisory || tcf.advisory || TAG_LOADERS.has(tracker.name) && flags.advisory) violation.advisory = true;
|
|
8756
8963
|
scenarioViolations.push(violation);
|
|
8757
8964
|
phaseById.set(violation.id, phase);
|
|
8758
8965
|
}
|
|
@@ -8780,6 +8987,7 @@ var ChaosScanner = class {
|
|
|
8780
8987
|
return w;
|
|
8781
8988
|
},
|
|
8782
8989
|
checkTrackingCookies: async (cookiePhase) => {
|
|
8990
|
+
if (cookiePhase === "post-reject" || cookiePhase === "post-reject-restart") cookiesCheckedAfterReject = true;
|
|
8783
8991
|
const cookies = await context.cookies().catch(() => []);
|
|
8784
8992
|
let found = 0;
|
|
8785
8993
|
for (const c of cookies) {
|
|
@@ -8937,6 +9145,23 @@ var ChaosScanner = class {
|
|
|
8937
9145
|
notCheckableReason = void 0;
|
|
8938
9146
|
infos.push("Erst die CNAME-Pr\xFCfung fand Tracker hinter eigener Subdomain; der Vergleich ohne GPC z\xE4hlt diese nicht.");
|
|
8939
9147
|
}
|
|
9148
|
+
if (cookiesCheckedAfterReject) {
|
|
9149
|
+
const cookieTrackers = new Set(
|
|
9150
|
+
scenarioViolations.filter((v) => v.method === "COOKIE" && v.ruleId === "tracking-after-deny").map((v) => v.trackerName)
|
|
9151
|
+
);
|
|
9152
|
+
let demoted = 0;
|
|
9153
|
+
for (const v of scenarioViolations) {
|
|
9154
|
+
if (v.ruleId !== "tracking-after-deny" || v.advisory || v.method === "COOKIE" || customIds.has(v.id) || cookieTrackers.has(v.trackerName)) continue;
|
|
9155
|
+
if (summarizeSignals(parseConsentSignals(v.requestUrl)) === "granted") continue;
|
|
9156
|
+
v.advisory = true;
|
|
9157
|
+
v.cookielessAfterDeny = true;
|
|
9158
|
+
v.description = `${v.description} Nach dem Ablehnen blieb kein Cookie dieses Anbieters beim Besucher: Hinweis, kein Befund.`;
|
|
9159
|
+
demoted++;
|
|
9160
|
+
}
|
|
9161
|
+
if (demoted > 0 && outcome === false && extraNotes.length === 0 && !scenarioViolations.some((v) => !v.advisory) && !actionSequence.some((a) => /-missing$/.test(a) || a.startsWith("error:"))) {
|
|
9162
|
+
outcome = true;
|
|
9163
|
+
}
|
|
9164
|
+
}
|
|
8940
9165
|
const illegal = scenarioViolations.filter((v) => {
|
|
8941
9166
|
const p = phaseById.get(v.id) ?? "pre-consent";
|
|
8942
9167
|
return p === "pre-consent" || p === "post-wipe" || p === "post-tamper" || p === "gpc" || p === "post-revoke" || p === "post-reject" || p === "post-reject-restart";
|
|
@@ -9517,7 +9742,8 @@ var ChaosScanner = class {
|
|
|
9517
9742
|
let phase = "pre-consent";
|
|
9518
9743
|
onTargetRequest(page, scope, (req) => {
|
|
9519
9744
|
const hit = this.identify(req.url());
|
|
9520
|
-
|
|
9745
|
+
const ping = hit ? consentModePingOf(req.url(), hit) : void 0;
|
|
9746
|
+
timeline.push({ at: (/* @__PURE__ */ new Date()).toISOString(), url: req.url(), trackerName: hit?.name, trackerCategory: hit?.category, phase, ...ping ? { consentMode: ping.consentMode } : {} });
|
|
9521
9747
|
if (hit && phase === "post-selection" && hit.category === "marketing") {
|
|
9522
9748
|
violations.push({
|
|
9523
9749
|
id: `category-selective-${Date.now()}-${Math.random().toString(36).slice(2, 6)}`,
|
|
@@ -9528,7 +9754,8 @@ var ChaosScanner = class {
|
|
|
9528
9754
|
requestUrl: req.url(),
|
|
9529
9755
|
method: req.method(),
|
|
9530
9756
|
timestamp: (/* @__PURE__ */ new Date()).toISOString(),
|
|
9531
|
-
description: `${hit.name} feuert, obwohl Marketing-Kategorie abgelehnt wurde
|
|
9757
|
+
description: ping ? CONSENT_MODE_PING_DESCRIPTION(hit.name) : `${hit.name} feuert, obwohl Marketing-Kategorie abgelehnt wurde.`,
|
|
9758
|
+
...ping ?? {}
|
|
9532
9759
|
});
|
|
9533
9760
|
}
|
|
9534
9761
|
});
|
|
@@ -9632,7 +9859,7 @@ var ChaosScanner = class {
|
|
|
9632
9859
|
const storageAfter = await this.snapshotStorage(page);
|
|
9633
9860
|
const decisionPhase = "post-selection";
|
|
9634
9861
|
const marketingLeaks = timeline.filter(
|
|
9635
|
-
(e) => e.phase === decisionPhase && e.trackerName && e.trackerCategory === "marketing"
|
|
9862
|
+
(e) => e.phase === decisionPhase && e.trackerName && e.trackerCategory === "marketing" && e.consentMode !== "denied"
|
|
9636
9863
|
);
|
|
9637
9864
|
const preConsentLeaks = timeline.filter(
|
|
9638
9865
|
(e) => e.phase === "pre-consent" && e.trackerName
|
|
@@ -9702,20 +9929,22 @@ var ChaosScanner = class {
|
|
|
9702
9929
|
onTargetRequest(page, scope, (req) => {
|
|
9703
9930
|
clock.note(req.url(), (u) => scope.has(u));
|
|
9704
9931
|
const hit = this.identify(req.url(), phase);
|
|
9705
|
-
const tcf = hit && denied ? tcfAdjust(req.url(), phase) : {};
|
|
9932
|
+
const tcf = hit && denied ? tcfAdjust(req.url(), phase, hit) : {};
|
|
9706
9933
|
timeline.push({
|
|
9707
9934
|
at: (/* @__PURE__ */ new Date()).toISOString(),
|
|
9708
9935
|
url: req.url(),
|
|
9709
9936
|
trackerName: hit?.name,
|
|
9710
9937
|
trackerCategory: hit?.category,
|
|
9711
9938
|
phase,
|
|
9712
|
-
...tcf.tcf ? { tcf: tcf.tcf } : {}
|
|
9939
|
+
...tcf.tcf ? { tcf: tcf.tcf } : {},
|
|
9940
|
+
...tcf.consentMode ? { consentMode: tcf.consentMode } : {}
|
|
9713
9941
|
});
|
|
9714
9942
|
if (hit && denied && (phase === "post-reject" || phase === "post-reject-restart") && this.trackerVerdict(hit) !== "skip") {
|
|
9715
9943
|
violations.push({
|
|
9716
9944
|
...this.verdictFlags(hit, tcf.ruleId ?? "tracking-after-deny"),
|
|
9717
9945
|
...tcf.advisory ? { advisory: true } : {},
|
|
9718
9946
|
...tcf.tcf ? { tcf: tcf.tcf } : {},
|
|
9947
|
+
...tcf.consentMode ? { consentMode: tcf.consentMode } : {},
|
|
9719
9948
|
id: `consent-persistence-${Date.now()}-${Math.random().toString(36).slice(2, 6)}`,
|
|
9720
9949
|
ruleId: tcf.ruleId ?? "tracking-after-deny",
|
|
9721
9950
|
scenario: "consent-persistence",
|
|
@@ -9724,7 +9953,7 @@ var ChaosScanner = class {
|
|
|
9724
9953
|
requestUrl: req.url(),
|
|
9725
9954
|
method: req.method(),
|
|
9726
9955
|
timestamp: (/* @__PURE__ */ new Date()).toISOString(),
|
|
9727
|
-
description: tcf.tcf ? TCF_DESCRIPTION[tcf.tcf](hit.name) : `${hit.name} feuert, obwohl Ablehnung gespeichert sein sollte.`
|
|
9956
|
+
description: tcf.tcf ? TCF_DESCRIPTION[tcf.tcf](hit.name) : tcf.consentMode ? CONSENT_MODE_PING_DESCRIPTION(hit.name) : `${hit.name} feuert, obwohl Ablehnung gespeichert sein sollte.`
|
|
9728
9957
|
});
|
|
9729
9958
|
}
|
|
9730
9959
|
});
|
|
@@ -9849,25 +10078,31 @@ var ChaosScanner = class {
|
|
|
9849
10078
|
onTargetRequest(page2, scope, (req) => {
|
|
9850
10079
|
clock.note(req.url(), (u) => scope.has(u));
|
|
9851
10080
|
const hit = this.identify(req.url(), "post-reject-restart");
|
|
10081
|
+
const tcf = hit ? tcfAdjust(req.url(), "post-reject-restart", hit) : {};
|
|
9852
10082
|
timeline.push({
|
|
9853
10083
|
at: (/* @__PURE__ */ new Date()).toISOString(),
|
|
9854
10084
|
url: req.url(),
|
|
9855
10085
|
trackerName: hit?.name,
|
|
9856
10086
|
trackerCategory: hit?.category,
|
|
9857
|
-
phase: "post-reject-restart"
|
|
10087
|
+
phase: "post-reject-restart",
|
|
10088
|
+
...tcf.tcf ? { tcf: tcf.tcf } : {},
|
|
10089
|
+
...tcf.consentMode ? { consentMode: tcf.consentMode } : {}
|
|
9858
10090
|
});
|
|
9859
10091
|
if (hit && denied && this.trackerVerdict(hit) !== "skip") {
|
|
9860
10092
|
violations.push({
|
|
9861
|
-
...this.verdictFlags(hit, "tracking-after-deny"),
|
|
10093
|
+
...this.verdictFlags(hit, tcf.ruleId ?? "tracking-after-deny"),
|
|
10094
|
+
...tcf.advisory ? { advisory: true } : {},
|
|
10095
|
+
...tcf.tcf ? { tcf: tcf.tcf } : {},
|
|
10096
|
+
...tcf.consentMode ? { consentMode: tcf.consentMode } : {},
|
|
9862
10097
|
id: `consent-persistence-restart-${Date.now()}-${Math.random().toString(36).slice(2, 6)}`,
|
|
9863
|
-
ruleId: "tracking-after-deny",
|
|
10098
|
+
ruleId: tcf.ruleId ?? "tracking-after-deny",
|
|
9864
10099
|
scenario: "consent-persistence",
|
|
9865
10100
|
trackerName: hit.name,
|
|
9866
10101
|
trackerCategory: hit.category,
|
|
9867
10102
|
requestUrl: req.url(),
|
|
9868
10103
|
method: req.method(),
|
|
9869
10104
|
timestamp: (/* @__PURE__ */ new Date()).toISOString(),
|
|
9870
|
-
description: `${hit.name} feuert nach Ablehnung und Browser-Neustart.`
|
|
10105
|
+
description: tcf.tcf ? TCF_DESCRIPTION[tcf.tcf](hit.name) : tcf.consentMode ? CONSENT_MODE_PING_DESCRIPTION(hit.name) : `${hit.name} feuert nach Ablehnung und Browser-Neustart.`
|
|
9871
10106
|
});
|
|
9872
10107
|
}
|
|
9873
10108
|
});
|
|
@@ -9877,9 +10112,24 @@ var ChaosScanner = class {
|
|
|
9877
10112
|
const storageAfter = await this.snapshotStorage(page2).catch(() => storageAtRestart);
|
|
9878
10113
|
const storeRestart = await readConsentStore(page2);
|
|
9879
10114
|
const derivedPersisting = derivedStore.filter((k) => storeRestart.has(k));
|
|
10115
|
+
const cookieTrackers = /* @__PURE__ */ new Set();
|
|
10116
|
+
for (const c of [...state.cookies, ...await ctx2.cookies().catch(() => [])]) {
|
|
10117
|
+
const hit = identifyTrackingCookie(c.name, c.domain);
|
|
10118
|
+
if (hit) cookieTrackers.add(hit.tracker);
|
|
10119
|
+
}
|
|
10120
|
+
const cookielessLeak = (trackerName, url, tcf) => !!trackerName && !cookieTrackers.has(trackerName) && tcf !== "granted" && summarizeSignals(parseConsentSignals(url ?? "")) !== "granted";
|
|
9880
10121
|
await ctx2.close();
|
|
9881
10122
|
await this.applyCnameCloaking("consent-persistence", config, timeline, violations, /* @__PURE__ */ new Map(), { phases: ["post-reject", "post-reject-restart"] });
|
|
9882
|
-
const
|
|
10123
|
+
for (const v of violations) {
|
|
10124
|
+
if (v.scenario !== "consent-persistence" || v.ruleId !== "tracking-after-deny" || v.advisory || v.method === "COOKIE") continue;
|
|
10125
|
+
if (!cookielessLeak(v.trackerName, v.requestUrl)) continue;
|
|
10126
|
+
v.advisory = true;
|
|
10127
|
+
v.cookielessAfterDeny = true;
|
|
10128
|
+
v.description = `${v.description} Nach dem Ablehnen blieb kein Cookie dieses Anbieters beim Besucher: Hinweis, kein Befund.`;
|
|
10129
|
+
}
|
|
10130
|
+
const leaks = timeline.filter(
|
|
10131
|
+
(e) => this.isBlocking(e) && (e.phase === "post-reject" || e.phase === "post-reject-restart") && !cookielessLeak(e.trackerName, e.url, e.tcf)
|
|
10132
|
+
);
|
|
9883
10133
|
const deniedPersists = consentStillSet > 0 || derivedPersisting.length > 0;
|
|
9884
10134
|
if (links.length === 0 && deniedPersists) actionSequence.push(STRUCTURE_LIMIT.subpagesUnlinked);
|
|
9885
10135
|
const status = leaks.length > 0 ? "suspicious" : !deniedPersists || !subpageReached ? "not-checkable" : "passed";
|
|
@@ -10526,10 +10776,12 @@ var ChaosScanner = class {
|
|
|
10526
10776
|
let abortedCmp = 0;
|
|
10527
10777
|
onTargetRequest(page, scope, (req) => {
|
|
10528
10778
|
const hit = this.identify(req.url());
|
|
10529
|
-
|
|
10779
|
+
const ping = hit ? consentModePingOf(req.url(), hit) : void 0;
|
|
10780
|
+
timeline.push({ at: (/* @__PURE__ */ new Date()).toISOString(), url: req.url(), trackerName: hit?.name, trackerCategory: hit?.category, phase: "pre-consent", ...ping ? { consentMode: ping.consentMode } : {} });
|
|
10530
10781
|
if (hit && this.trackerVerdict(hit) !== "skip") {
|
|
10531
10782
|
violations.push({
|
|
10532
10783
|
...this.verdictFlags(hit, "pre-consent-tracking"),
|
|
10784
|
+
...ping ?? {},
|
|
10533
10785
|
id: `cmp-failure-${Date.now()}-${Math.random().toString(36).slice(2, 6)}`,
|
|
10534
10786
|
ruleId: "pre-consent-tracking",
|
|
10535
10787
|
scenario: "cmp-failure",
|
|
@@ -10538,7 +10790,7 @@ var ChaosScanner = class {
|
|
|
10538
10790
|
requestUrl: req.url(),
|
|
10539
10791
|
method: req.method(),
|
|
10540
10792
|
timestamp: (/* @__PURE__ */ new Date()).toISOString(),
|
|
10541
|
-
description: `${hit.name} startet, obwohl das CMP nicht verf\xFCgbar/verz\xF6gert ist.`
|
|
10793
|
+
description: ping ? CONSENT_MODE_PING_DESCRIPTION(hit.name) : `${hit.name} startet, obwohl das CMP nicht verf\xFCgbar/verz\xF6gert ist.`
|
|
10542
10794
|
});
|
|
10543
10795
|
}
|
|
10544
10796
|
});
|
|
@@ -10653,10 +10905,12 @@ var ChaosScanner = class {
|
|
|
10653
10905
|
} catch {
|
|
10654
10906
|
}
|
|
10655
10907
|
const hit = this.identify(req.url());
|
|
10656
|
-
|
|
10908
|
+
const ping = hit ? consentModePingOf(req.url(), hit) : void 0;
|
|
10909
|
+
timeline.push({ at: (/* @__PURE__ */ new Date()).toISOString(), url: req.url(), trackerName: hit?.name, trackerCategory: hit?.category, phase: "pre-consent", ...ping ? { consentMode: ping.consentMode } : {} });
|
|
10657
10910
|
if (hit && this.trackerVerdict(hit) !== "skip") {
|
|
10658
10911
|
violations.push({
|
|
10659
10912
|
...this.verdictFlags(hit, "pre-consent-tracking"),
|
|
10913
|
+
...ping ?? {},
|
|
10660
10914
|
id: `subpage-spa-${Date.now()}-${Math.random().toString(36).slice(2, 6)}`,
|
|
10661
10915
|
ruleId: "pre-consent-tracking",
|
|
10662
10916
|
scenario: "subpage-spa",
|
|
@@ -10665,7 +10919,7 @@ var ChaosScanner = class {
|
|
|
10665
10919
|
requestUrl: req.url(),
|
|
10666
10920
|
method: req.method(),
|
|
10667
10921
|
timestamp: (/* @__PURE__ */ new Date()).toISOString(),
|
|
10668
|
-
description: `${hit.name} feuert auf Unterseite/SPA-Navigation ohne Consent${this.pageHint(req)}.`
|
|
10922
|
+
description: ping ? CONSENT_MODE_PING_DESCRIPTION(hit.name) : `${hit.name} feuert auf Unterseite/SPA-Navigation ohne Consent${this.pageHint(req)}.`
|
|
10669
10923
|
});
|
|
10670
10924
|
}
|
|
10671
10925
|
});
|
|
@@ -10690,6 +10944,7 @@ var ChaosScanner = class {
|
|
|
10690
10944
|
const reached = [];
|
|
10691
10945
|
const visited = [];
|
|
10692
10946
|
const visits = [];
|
|
10947
|
+
const euPages = [];
|
|
10693
10948
|
let budgetExhausted = false;
|
|
10694
10949
|
const subpageDeadline = Date.now() + (deep ? config.deepBudgetSeconds * 1e3 : subpageBudgetMs(this.maxSubpages));
|
|
10695
10950
|
for (const link of links) {
|
|
@@ -10712,10 +10967,15 @@ var ChaosScanner = class {
|
|
|
10712
10967
|
visited.push(link);
|
|
10713
10968
|
if (resp && httpStatus < 400) reached.push(link);
|
|
10714
10969
|
await settle(page, 600, "Layout");
|
|
10970
|
+
if (resp && httpStatus < 400 && euPages.length < 8) {
|
|
10971
|
+
const html = "text" in resp ? await resp.text().catch(() => "") : "";
|
|
10972
|
+
if (html.length > 0 && html.length <= 15e5) euPages.push({ url: link, html });
|
|
10973
|
+
}
|
|
10715
10974
|
const pageLeak = timeline.filter((e) => this.producesFinding(e)).length > leaksBefore;
|
|
10716
10975
|
visits.push({ url: link, reached: Boolean(resp && httpStatus < 400), leak: pageLeak });
|
|
10717
10976
|
if (pageLeak) this.logAct(actionTimeline, actionSequence, `leak:subpage ${new URL(link).pathname}`);
|
|
10718
10977
|
}
|
|
10978
|
+
this.euReference = addPageIndicators(this.euReference, euPages);
|
|
10719
10979
|
const deepSaved = deep ? await this.finishDeepRun(config, deep, visits) : void 0;
|
|
10720
10980
|
await this.snap(page, "subpage-spa", "01-subpages", screenshots, actionTimeline, actionSequence);
|
|
10721
10981
|
let spaNavigations = 0;
|
|
@@ -10828,10 +11088,12 @@ var ChaosScanner = class {
|
|
|
10828
11088
|
const screenshots = [];
|
|
10829
11089
|
onTargetRequest(page, scope, (req) => {
|
|
10830
11090
|
const hit = this.identify(req.url());
|
|
10831
|
-
|
|
11091
|
+
const ping = hit ? consentModePingOf(req.url(), hit) : void 0;
|
|
11092
|
+
timeline.push({ at: (/* @__PURE__ */ new Date()).toISOString(), url: req.url(), trackerName: hit?.name, trackerCategory: hit?.category, phase: "pre-consent", ...ping ? { consentMode: ping.consentMode } : {} });
|
|
10832
11093
|
if (hit && this.trackerVerdict(hit) !== "skip") {
|
|
10833
11094
|
violations.push({
|
|
10834
11095
|
...this.verdictFlags(hit, "pre-consent-tracking"),
|
|
11096
|
+
...ping ?? {},
|
|
10835
11097
|
id: `banner-ignored-${Date.now()}-${Math.random().toString(36).slice(2, 6)}`,
|
|
10836
11098
|
ruleId: "pre-consent-tracking",
|
|
10837
11099
|
scenario: "banner-ignored",
|
|
@@ -10840,7 +11102,7 @@ var ChaosScanner = class {
|
|
|
10840
11102
|
requestUrl: req.url(),
|
|
10841
11103
|
method: req.method(),
|
|
10842
11104
|
timestamp: (/* @__PURE__ */ new Date()).toISOString(),
|
|
10843
|
-
description: `${hit.name} startet ohne Consent-Klick (Timer/Scroll/Interaktion).`
|
|
11105
|
+
description: ping ? CONSENT_MODE_PING_DESCRIPTION(hit.name) : `${hit.name} startet ohne Consent-Klick (Timer/Scroll/Interaktion).`
|
|
10844
11106
|
});
|
|
10845
11107
|
}
|
|
10846
11108
|
});
|
|
@@ -10927,16 +11189,19 @@ var ChaosScanner = class {
|
|
|
10927
11189
|
let phase = "pre-consent";
|
|
10928
11190
|
onTargetRequest(page, scope, (req) => {
|
|
10929
11191
|
const hit = this.identify(req.url(), phase);
|
|
11192
|
+
const ping = hit ? consentModePingOf(req.url(), hit) : void 0;
|
|
10930
11193
|
timeline.push({
|
|
10931
11194
|
at: (/* @__PURE__ */ new Date()).toISOString(),
|
|
10932
11195
|
url: req.url(),
|
|
10933
11196
|
trackerName: hit?.name,
|
|
10934
11197
|
trackerCategory: hit?.category,
|
|
10935
|
-
phase
|
|
11198
|
+
phase,
|
|
11199
|
+
...ping ? { consentMode: ping.consentMode } : {}
|
|
10936
11200
|
});
|
|
10937
11201
|
if (hit && this.trackerVerdict(hit) !== "skip") {
|
|
10938
11202
|
const violation = {
|
|
10939
11203
|
...this.verdictFlags(hit, phase === "post-revoke" ? "tracking-after-revoke" : "pre-consent-tracking"),
|
|
11204
|
+
...ping ?? {},
|
|
10940
11205
|
id: `consent-revoked-${Date.now()}-${Math.random().toString(36).slice(2, 6)}`,
|
|
10941
11206
|
ruleId: phase === "post-revoke" ? "tracking-after-revoke" : "pre-consent-tracking",
|
|
10942
11207
|
scenario: "consent-revoked",
|
|
@@ -10945,7 +11210,7 @@ var ChaosScanner = class {
|
|
|
10945
11210
|
requestUrl: req.url(),
|
|
10946
11211
|
method: req.method(),
|
|
10947
11212
|
timestamp: (/* @__PURE__ */ new Date()).toISOString(),
|
|
10948
|
-
description: phase === "post-revoke" ? `${hit.name} feuert nach Widerruf der Einwilligung.` : `Unauthorized ${hit.name} during consent-revoked scenario (${phase}).`
|
|
11213
|
+
description: ping ? CONSENT_MODE_PING_DESCRIPTION(hit.name) : phase === "post-revoke" ? `${hit.name} feuert nach Widerruf der Einwilligung.` : `Unauthorized ${hit.name} during consent-revoked scenario (${phase}).`
|
|
10949
11214
|
};
|
|
10950
11215
|
if (phase === "post-revoke") {
|
|
10951
11216
|
violations.push(violation);
|
|
@@ -13244,7 +13509,7 @@ import fs9 from "fs";
|
|
|
13244
13509
|
import path9 from "path";
|
|
13245
13510
|
|
|
13246
13511
|
// src/core/report/euReferenceText.ts
|
|
13247
|
-
var EU_REFERENCE_SCOPE_NOTE = "Ausgewertet
|
|
13512
|
+
var EU_REFERENCE_SCOPE_NOTE = "Ausgewertet sind die Startseite, die Datenschutzerkl\xE4rung, Impressum und Kontakt sowie einige gelesene Unterseiten; die Kundschaft und die Werbung der Seite sind nicht erfasst. Das ist eine technische Beobachtung und keine Aussage, ob die DSGVO f\xFCr dich gilt.";
|
|
13248
13513
|
var EU_NEXUS_NOTE = "Die Befunde nach dem EU-Modell in diesem Bericht betreffen Besucher aus der EU; ob dieses Modell f\xFCr deine Seite gilt, h\xE4ngt davon ab, ob sie sich an Kundinnen und Kunden in der EU richtet.";
|
|
13249
13514
|
function euReferenceBlock(ref) {
|
|
13250
13515
|
const rows = ref.indicators.map((i) => ({ label: i.label, evidence: i.evidence, strong: i.strength === "strong" }));
|
|
@@ -13252,7 +13517,7 @@ function euReferenceBlock(ref) {
|
|
|
13252
13517
|
return {
|
|
13253
13518
|
tone: "indicated",
|
|
13254
13519
|
head: "Merkmale deuten auf eine Ausrichtung an Kundinnen und Kunden in der EU",
|
|
13255
|
-
text: "Auf deiner
|
|
13520
|
+
text: "Auf deiner Seite stehen Merkmale, wie sie die europ\xE4ischen Datenschutzbeh\xF6rden heranziehen, um zu beurteilen, ob sich ein Angebot an Personen in der EU richtet. F\xFCr Besucher aus der EU kommt dann das strengere EU-Modell (Einwilligung vor dem Tracking) in Betracht; in der Schweiz gilt das Schweizer Modell. " + EU_REFERENCE_SCOPE_NOTE,
|
|
13256
13521
|
rows,
|
|
13257
13522
|
more: ref.truncated === true
|
|
13258
13523
|
};
|
|
@@ -13261,7 +13526,7 @@ function euReferenceBlock(ref) {
|
|
|
13261
13526
|
return {
|
|
13262
13527
|
tone: "weak",
|
|
13263
13528
|
head: "Einzelne Merkmale mit EU-Bezug, noch kein klares Bild",
|
|
13264
|
-
text: `Auf deiner
|
|
13529
|
+
text: `Auf deiner Seite steht ein einzelnes schwaches Merkmal. F\xFCr sich allein sagt es wenig; ein zweites Merkmal anderer Art w\xFCrde es zu einem Hinweis machen. ${EU_NEXUS_NOTE} ${EU_REFERENCE_SCOPE_NOTE}`,
|
|
13265
13530
|
rows,
|
|
13266
13531
|
more: false
|
|
13267
13532
|
};
|
|
@@ -13269,7 +13534,7 @@ function euReferenceBlock(ref) {
|
|
|
13269
13534
|
return {
|
|
13270
13535
|
tone: "none",
|
|
13271
13536
|
head: "Keine Merkmale mit EU-Bezug gefunden",
|
|
13272
|
-
text: `Auf der
|
|
13537
|
+
text: `Auf der Seite haben wir weder Euro-Preise noch Lieferung in EU-L\xE4nder, L\xE4nderversionen oder \xE4hnliche Merkmale gefunden. \xABNicht gefunden\xBB heisst nicht \xABkein EU-Bezug\xBB: ${EU_REFERENCE_SCOPE_NOTE} ${EU_NEXUS_NOTE}`,
|
|
13273
13538
|
rows: [],
|
|
13274
13539
|
more: false
|
|
13275
13540
|
};
|
|
@@ -13280,7 +13545,7 @@ function scanContextLines(report) {
|
|
|
13280
13545
|
if (ref) {
|
|
13281
13546
|
const kinds = [...new Set(ref.indicators.map((i) => i.label))].join(", ");
|
|
13282
13547
|
lines.push(
|
|
13283
|
-
ref.assessment === "indicated" ? `\u2139 EU-Bezug der
|
|
13548
|
+
ref.assessment === "indicated" ? `\u2139 EU-Bezug der Seite: Merkmale einer Ausrichtung an die EU gefunden (${kinds}).` : ref.assessment === "weak" ? `\u2139 EU-Bezug der Seite: nur ein einzelnes schwaches Merkmal (${kinds}), nicht ausreichend.` : "\u2139 EU-Bezug der Seite: keine Merkmale einer Ausrichtung an die EU gefunden (ausgewertet: Startseite, Datenschutzerkl\xE4rung, Impressum/Kontakt, gelesene Unterseiten)."
|
|
13284
13549
|
);
|
|
13285
13550
|
}
|
|
13286
13551
|
const n = report.privacyNotice;
|
|
@@ -13919,6 +14184,7 @@ function buildEvidenceHtml(report, title = "Nachweis-Bericht", options = {}) {
|
|
|
13919
14184
|
"tracking-without-consent": "Kein Tracking ohne g\xFCltige Einwilligung",
|
|
13920
14185
|
"tracking-after-revoke": "Kein Tracking nach Widerruf",
|
|
13921
14186
|
"tracking-after-deny": "Kein Tracking nach gespeicherter Ablehnung",
|
|
14187
|
+
"tracking-after-tamper": "Besch\xE4digter Consent-Wert gilt nicht als Zustimmung",
|
|
13922
14188
|
"tracking-declined-category": "Kein Tracking abgelehnter Kategorien",
|
|
13923
14189
|
"duplicate-events": "Keine doppelten Analytics-Events",
|
|
13924
14190
|
"consent-mode-mismatch": "Consent-Mode-Zustand deckt sich mit Verhalten",
|
|
@@ -14076,6 +14342,11 @@ function buildEvidenceHtml(report, title = "Nachweis-Bericht", options = {}) {
|
|
|
14076
14342
|
"Tracking nach Widerruf/Ablehnung stoppen: Consent-Status server- und clientseitig respektieren \u2014 belegt durch die Befunde im Register."
|
|
14077
14343
|
);
|
|
14078
14344
|
}
|
|
14345
|
+
if (ruleSet.has("tracking-after-tamper")) {
|
|
14346
|
+
recs.push(
|
|
14347
|
+
"Einen unlesbaren oder besch\xE4digten gespeicherten Consent-Wert wie \xABkeine Einwilligung\xBB behandeln (nur ein bekannter Wert f\xFCr \xABzugestimmt\xBB schaltet Tracker ein) \u2014 belegt durch die Befunde im Register."
|
|
14348
|
+
);
|
|
14349
|
+
}
|
|
14079
14350
|
if (ruleSet.has("gpc-ignored")) {
|
|
14080
14351
|
recs.push(
|
|
14081
14352
|
"Global Privacy Control beachten: sendet der Browser GPC (Sec-GPC: 1), keine Werbe-Tracker laden (Opt-out von Verkauf/Weitergabe nach CCPA/CPRA) \u2014 belegt durch die Befunde im Register."
|
|
@@ -16836,11 +17107,11 @@ var WHAT_IS_IN_THE_REPORT_NEUTRAL = `<h2>Was im vollst\xE4ndigen Bericht steht</
|
|
|
16836
17107
|
<li>Eine Nachpr\xFCfung nach der Umsetzung, schriftlich und mit Datum.</li>
|
|
16837
17108
|
</ul>`;
|
|
16838
17109
|
var REJECT_TEXT = { yes: "ja", no: "nein", unknown: "nicht pr\xFCfbar" };
|
|
16839
|
-
function neutralOf(f, when) {
|
|
17110
|
+
function neutralOf(f, when, visit = "ch") {
|
|
16840
17111
|
const pre = f.preSelection;
|
|
16841
17112
|
const uncheckableLine = `Bei ${f.uncheckable} von ${f.scenariosTotal} Abl\xE4ufen konnte die Seite nicht gepr\xFCft werden (zum Beispiel wegen Bot-Schutz).`;
|
|
16842
17113
|
let head;
|
|
16843
|
-
let lead = `Diese Zahlen beschreiben, was der Pr\xFCfroboter von CuonzTech am ${when.date} um ${when.time} bei einem Pr\xFCflauf aus der Schweiz beobachtet hat. Sie sind keine Aussage dar\xFCber, ob die Seite Gesetze einh\xE4lt.`;
|
|
17114
|
+
let lead = `Diese Zahlen beschreiben, was der Pr\xFCfroboter von CuonzTech am ${when.date} um ${when.time} bei einem Pr\xFCflauf ${visit === "eu" ? "aus der EU" : "aus der Schweiz"} beobachtet hat. Sie sind keine Aussage dar\xFCber, ob die Seite Gesetze einh\xE4lt.`;
|
|
16844
17115
|
const unassigned = f.unassignedBeforeChoice ?? 0;
|
|
16845
17116
|
const unassignedLine = `${unassigned} ${unassigned === 1 ? "Anbieter wurde" : "Anbieter wurden"} vor der Auswahl kontaktiert, ${unassigned === 1 ? "den" : "die"} CPCG keinem bekannten Tracker zuordnet (nicht eingeordnet, keine Bewertung).`;
|
|
16846
17117
|
if (f.nothingToCheck) {
|
|
@@ -16851,7 +17122,7 @@ function neutralOf(f, when) {
|
|
|
16851
17122
|
head = uncheckableLine;
|
|
16852
17123
|
} else {
|
|
16853
17124
|
head = unassigned > 0 ? `In diesem Pr\xFCflauf wurden keine Anfragen an bekannte Tracker beobachtet, bevor im Cookie-Banner etwas ausgew\xE4hlt wurde; ${unassignedLine}` : "In diesem Pr\xFCflauf wurden keine Anfragen an Drittanbieter beobachtet, bevor im Cookie-Banner etwas ausgew\xE4hlt wurde.";
|
|
16854
|
-
lead =
|
|
17125
|
+
lead = `Das sagt nichts \xFCber andere Zeitpunkte, andere Besucher (zum Beispiel ${visit === "eu" ? "aus der Schweiz" : "aus der EU"}) oder andere Seiten und ist kein Zeugnis.`;
|
|
16855
17126
|
}
|
|
16856
17127
|
const extra = (f.uncheckable > 0 && head !== uncheckableLine && !f.nothingToCheck ? `<p class="small">${esc3(uncheckableLine)}</p>` : "") + (unassigned > 0 && !head.includes(unassignedLine) ? `<p class="small">Zus\xE4tzlich: ${esc3(unassignedLine)}</p>` : "");
|
|
16857
17128
|
const tiles = [
|
|
@@ -16864,8 +17135,15 @@ function neutralOf(f, when) {
|
|
|
16864
17135
|
];
|
|
16865
17136
|
return { head, lead, extra, tiles };
|
|
16866
17137
|
}
|
|
16867
|
-
|
|
16868
|
-
const
|
|
17138
|
+
function neutralEuReference(ref) {
|
|
17139
|
+
const scope = "Ausgewertet sind die Startseite, die Datenschutzerkl\xE4rung, Impressum und Kontakt sowie einige gelesene Unterseiten. Technische Beobachtung, keine Aussage dar\xFCber, ob die Datenschutzgesetze der EU f\xFCr die Seite gelten.";
|
|
17140
|
+
if (!ref) return `<h2>EU-Bezug der Seite</h2><div class="miss"><b>Nicht gemessen.</b> ${esc3(scope)}</div>`;
|
|
17141
|
+
const head = ref.assessment === "indicated" ? "Auf der Startseite stehen Merkmale, die auf eine Ausrichtung an Kundschaft in der EU deuten." : ref.assessment === "weak" ? "Auf der Startseite steht ein einzelnes schwaches Merkmal mit EU-Bezug." : "Auf der Startseite wurden keine Merkmale mit EU-Bezug gefunden. \xABNicht gefunden\xBB heisst nicht \xABkein EU-Bezug\xBB.";
|
|
17142
|
+
const rows = ref.indicators.map((i) => `<li>${esc3(i.label)}: ${esc3(i.evidence)}</li>`).join("");
|
|
17143
|
+
return `<h2>EU-Bezug der Seite</h2><div class="neutral"><div class="label">Beobachtung der Startseite</div><div class="head">${esc3(head)}</div>${rows ? `<ul class="plain">${rows}${ref.truncated ? "<li>weitere Merkmale nicht aufgef\xFChrt</li>" : ""}</ul>` : ""}<p>${esc3(scope)}</p></div>`;
|
|
17144
|
+
}
|
|
17145
|
+
var neutralBlock = (f, when, visit = "ch") => {
|
|
17146
|
+
const n = neutralOf(f, when, visit);
|
|
16869
17147
|
return `<div class="neutral"><div class="label">Messwerte aus einem Pr\xFCflauf</div><div class="head">${esc3(n.head)}</div><p>${esc3(n.lead)}</p></div>${n.extra}
|
|
16870
17148
|
<div class="tiles">${n.tiles.map(([x, l, txt]) => `<div class="tile"><b${txt ? ' class="txt"' : ""}>${esc3(x)}</b><span>${esc3(l)}</span></div>`).join("")}</div>`;
|
|
16871
17149
|
};
|
|
@@ -16925,7 +17203,7 @@ function buildLimitedVisitsPdfHtml(ch, eu, base, exits = {}, missing = []) {
|
|
|
16925
17203
|
return `<h2>${esc3(VISIT_LABEL[visit])}</h2><div class="miss"><b>Nicht gepr\xFCft.</b> ${esc3(m?.detail ?? "Dieser Besuch lief nicht")}. \xDCber ihn macht dieses Ergebnis keine Aussage.</div>`;
|
|
16926
17204
|
}
|
|
16927
17205
|
const country = visit === "eu" && exits.eu?.country ? ` (IP-Land ${esc3(exits.eu.country)})` : "";
|
|
16928
|
-
return `<h2>${esc3(VISIT_LABEL[visit])}${country}</h2>${neutralBlock(f, when)}`;
|
|
17206
|
+
return `<h2>${esc3(VISIT_LABEL[visit])}${country}</h2>${neutralBlock(f, when, visit)}`;
|
|
16929
17207
|
};
|
|
16930
17208
|
const first2 = ch ?? eu;
|
|
16931
17209
|
const note = !first2 || first2.reason === "none" ? "" : `<p class="small">${esc3(limitedReason(first2))}</p>`;
|
|
@@ -16934,6 +17212,7 @@ function buildLimitedVisitsPdfHtml(ch, eu, base, exits = {}, missing = []) {
|
|
|
16934
17212
|
when,
|
|
16935
17213
|
`${neutralVisit("ch", ch)}
|
|
16936
17214
|
${neutralVisit("eu", eu)}
|
|
17215
|
+
${neutralEuReference((ch ?? eu)?.euReference)}
|
|
16937
17216
|
|
|
16938
17217
|
${WHAT_IS_IN_THE_REPORT_NEUTRAL}
|
|
16939
17218
|
|
|
@@ -17093,12 +17372,12 @@ function settleEuNexus(jurisdiction, report) {
|
|
|
17093
17372
|
return { jurisdiction: replace("EU"), outcome: "strict", reason: "der EU-Bezug der Startseite konnte nicht gemessen werden: ohne Messung gilt das EU-Modell streng" };
|
|
17094
17373
|
}
|
|
17095
17374
|
if (ref.assessment === "indicated") {
|
|
17096
|
-
return { jurisdiction: replace("EU"), outcome: "strict", reason: "die
|
|
17375
|
+
return { jurisdiction: replace("EU"), outcome: "strict", reason: "die Seite zeigt Merkmale einer Ausrichtung an die EU: das EU-Modell gilt" };
|
|
17097
17376
|
}
|
|
17098
17377
|
return {
|
|
17099
17378
|
jurisdiction: replace("EU-OHNE-BEZUG"),
|
|
17100
17379
|
outcome: "softened",
|
|
17101
|
-
reason: ref.assessment === "weak" ? "auf der
|
|
17380
|
+
reason: ref.assessment === "weak" ? "auf der Seite steht nur ein einzelnes schwaches Merkmal mit EU-Bezug: f\xFCr eine Ausrichtung an die EU nicht ausreichend belegt" : "auf der Seite wurden keine Merkmale einer Ausrichtung an die EU gefunden (ausgewertet: Startseite, Datenschutzerkl\xE4rung, Impressum/Kontakt, gelesene Unterseiten)"
|
|
17102
17381
|
};
|
|
17103
17382
|
}
|
|
17104
17383
|
|
|
@@ -17173,7 +17452,8 @@ function limitedFactsOf(r) {
|
|
|
17173
17452
|
...l.cookielessOnly ? { cookielessOnly: true } : {},
|
|
17174
17453
|
reason: l.reason,
|
|
17175
17454
|
...l.rejectWorks ? { rejectWorks: l.rejectWorks } : {},
|
|
17176
|
-
...l.preSelection ? { preSelection: l.preSelection } : {}
|
|
17455
|
+
...l.preSelection ? { preSelection: l.preSelection } : {},
|
|
17456
|
+
...l.euReference ? { euReference: l.euReference } : {}
|
|
17177
17457
|
};
|
|
17178
17458
|
}
|
|
17179
17459
|
function visitStatusText(r) {
|
|
@@ -18107,7 +18387,8 @@ var PrivacyChaosGate = class {
|
|
|
18107
18387
|
reason: config.license?.reason === "invalid" || config.license?.reason === "unreachable" ? config.license.reason : "none",
|
|
18108
18388
|
...config.license?.detail ? { detail: config.license.detail } : {},
|
|
18109
18389
|
// Nur der Schnelltest zeigt diese beiden Werte (neutrales Kurzergebnis); sonst unverändert
|
|
18110
|
-
...config.schnelltest ? { rejectWorks: rejectWorksOf(blocking, report.evidence), preSelection: preSelectionOf(blocking) } : {}
|
|
18390
|
+
...config.schnelltest ? { rejectWorks: rejectWorksOf(blocking, report.evidence), preSelection: preSelectionOf(blocking) } : {},
|
|
18391
|
+
...config.schnelltest && report.euReference ? { euReference: report.euReference } : {}
|
|
18111
18392
|
};
|
|
18112
18393
|
console.log(pc.green(`\u2714 Scan abgeschlossen in ${report.durationMs} ms.`));
|
|
18113
18394
|
console.log(pc.bold(pc.cyan("\n-------------------------------------------------------")));
|
|
@@ -18191,7 +18472,8 @@ var PrivacyChaosGate = class {
|
|
|
18191
18472
|
nothingToCheck: facts.nothingToCheck,
|
|
18192
18473
|
...facts.cookielessOnly ? { cookielessOnly: true } : {},
|
|
18193
18474
|
...facts.rejectWorks ? { rejectWorks: facts.rejectWorks } : {},
|
|
18194
|
-
...facts.preSelection ? { preSelection: facts.preSelection } : {}
|
|
18475
|
+
...facts.preSelection ? { preSelection: facts.preSelection } : {},
|
|
18476
|
+
...facts.euReference ? { euReference: facts.euReference } : {}
|
|
18195
18477
|
}
|
|
18196
18478
|
};
|
|
18197
18479
|
}
|
package/dist/cli.js
CHANGED
|
@@ -12,12 +12,12 @@ import {
|
|
|
12
12
|
registerSecret,
|
|
13
13
|
resolveGateConfig,
|
|
14
14
|
resolveJurisdictions
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-SFLHJN5I.js";
|
|
16
16
|
|
|
17
17
|
// src/cli.ts
|
|
18
18
|
import { Command, CommanderError, Option } from "commander";
|
|
19
19
|
import pc from "picocolors";
|
|
20
|
-
var VERSION = true ? "0.4.
|
|
20
|
+
var VERSION = true ? "0.4.9" : "dev";
|
|
21
21
|
for (const stream of [process.stdout, process.stderr]) {
|
|
22
22
|
stream.on("error", (err) => {
|
|
23
23
|
if (err.code !== "EPIPE") throw err;
|
package/dist/index.d.ts
CHANGED
|
@@ -53,6 +53,8 @@ declare const RequestEventSchema: z.ZodObject<{
|
|
|
53
53
|
resourceType: z.ZodOptional<z.ZodString>;
|
|
54
54
|
/** IAB-TCF-String im Request (nur nach einer Ablehnung): «denied» weder Zustimmung noch berechtigtes Interesse, «li» nur berechtigtes Interesse, «granted» Zustimmung */
|
|
55
55
|
tcf: z.ZodOptional<z.ZodEnum<["denied", "li", "granted"]>>;
|
|
56
|
+
/** Google-Mess-Request nach einer Ablehnung, dessen Consent-Mode-Signal (gcs/gcd) «verweigert» meldet (cookieloser Ping) */
|
|
57
|
+
consentMode: z.ZodOptional<z.ZodLiteral<"denied">>;
|
|
56
58
|
}, "strip", z.ZodTypeAny, {
|
|
57
59
|
at: string;
|
|
58
60
|
url: string;
|
|
@@ -61,6 +63,7 @@ declare const RequestEventSchema: z.ZodObject<{
|
|
|
61
63
|
trackerCategory?: string | undefined;
|
|
62
64
|
resourceType?: string | undefined;
|
|
63
65
|
tcf?: "denied" | "li" | "granted" | undefined;
|
|
66
|
+
consentMode?: "denied" | undefined;
|
|
64
67
|
}, {
|
|
65
68
|
at: string;
|
|
66
69
|
url: string;
|
|
@@ -69,6 +72,7 @@ declare const RequestEventSchema: z.ZodObject<{
|
|
|
69
72
|
trackerCategory?: string | undefined;
|
|
70
73
|
resourceType?: string | undefined;
|
|
71
74
|
tcf?: "denied" | "li" | "granted" | undefined;
|
|
75
|
+
consentMode?: "denied" | undefined;
|
|
72
76
|
}>;
|
|
73
77
|
type RequestEvent = z.infer<typeof RequestEventSchema>;
|
|
74
78
|
/**
|
|
@@ -110,6 +114,8 @@ declare const EvidenceRecordSchema: z.ZodObject<{
|
|
|
110
114
|
resourceType: z.ZodOptional<z.ZodString>;
|
|
111
115
|
/** IAB-TCF-String im Request (nur nach einer Ablehnung): «denied» weder Zustimmung noch berechtigtes Interesse, «li» nur berechtigtes Interesse, «granted» Zustimmung */
|
|
112
116
|
tcf: z.ZodOptional<z.ZodEnum<["denied", "li", "granted"]>>;
|
|
117
|
+
/** Google-Mess-Request nach einer Ablehnung, dessen Consent-Mode-Signal (gcs/gcd) «verweigert» meldet (cookieloser Ping) */
|
|
118
|
+
consentMode: z.ZodOptional<z.ZodLiteral<"denied">>;
|
|
113
119
|
}, "strip", z.ZodTypeAny, {
|
|
114
120
|
at: string;
|
|
115
121
|
url: string;
|
|
@@ -118,6 +124,7 @@ declare const EvidenceRecordSchema: z.ZodObject<{
|
|
|
118
124
|
trackerCategory?: string | undefined;
|
|
119
125
|
resourceType?: string | undefined;
|
|
120
126
|
tcf?: "denied" | "li" | "granted" | undefined;
|
|
127
|
+
consentMode?: "denied" | undefined;
|
|
121
128
|
}, {
|
|
122
129
|
at: string;
|
|
123
130
|
url: string;
|
|
@@ -126,6 +133,7 @@ declare const EvidenceRecordSchema: z.ZodObject<{
|
|
|
126
133
|
trackerCategory?: string | undefined;
|
|
127
134
|
resourceType?: string | undefined;
|
|
128
135
|
tcf?: "denied" | "li" | "granted" | undefined;
|
|
136
|
+
consentMode?: "denied" | undefined;
|
|
129
137
|
}>, "many">;
|
|
130
138
|
storageBefore: z.ZodObject<{
|
|
131
139
|
cookies: z.ZodArray<z.ZodString, "many">;
|
|
@@ -258,6 +266,7 @@ declare const EvidenceRecordSchema: z.ZodObject<{
|
|
|
258
266
|
trackerCategory?: string | undefined;
|
|
259
267
|
resourceType?: string | undefined;
|
|
260
268
|
tcf?: "denied" | "li" | "granted" | undefined;
|
|
269
|
+
consentMode?: "denied" | undefined;
|
|
261
270
|
}[];
|
|
262
271
|
storageBefore: {
|
|
263
272
|
cookies: string[];
|
|
@@ -316,6 +325,7 @@ declare const EvidenceRecordSchema: z.ZodObject<{
|
|
|
316
325
|
trackerCategory?: string | undefined;
|
|
317
326
|
resourceType?: string | undefined;
|
|
318
327
|
tcf?: "denied" | "li" | "granted" | undefined;
|
|
328
|
+
consentMode?: "denied" | undefined;
|
|
319
329
|
}[];
|
|
320
330
|
storageBefore: {
|
|
321
331
|
cookies: string[];
|
|
@@ -389,6 +399,14 @@ declare const TrackerViolationSchema: z.ZodObject<{
|
|
|
389
399
|
resourceType: z.ZodOptional<z.ZodString>;
|
|
390
400
|
/** IAB-TCF-String des Requests nach einer Ablehnung: «denied» → Hinweis, «li» → bleibt `tracking-after-deny` (mit Angabe), «granted» → Regel `tcf-consent-mismatch` */
|
|
391
401
|
tcf: z.ZodOptional<z.ZodEnum<["denied", "li", "granted"]>>;
|
|
402
|
+
/** Consent-Mode-Ping nach einer Ablehnung (gcs/gcd «verweigert», cookielos): Hinweis statt Befund, ob das als Tracking gilt, ist umstritten */
|
|
403
|
+
consentMode: z.ZodOptional<z.ZodLiteral<"denied">>;
|
|
404
|
+
/**
|
|
405
|
+
* Anfrage nach «Ablehnen», nach der kein Cookie und keine Kennung desselben Anbieters beim Besucher blieb (Cookies wurden nach der
|
|
406
|
+
* Ablehnung geprüft): Hinweis statt Befund. Cookielose Pings werden mit «Consent Mode» oder «anonymisiert» verteidigt; belastbar ist
|
|
407
|
+
* erst ein Tracking-Cookie, das nach «Ablehnen» und Neuladen bleibt.
|
|
408
|
+
*/
|
|
409
|
+
cookielessAfterDeny: z.ZodOptional<z.ZodLiteral<true>>;
|
|
392
410
|
method: z.ZodDefault<z.ZodString>;
|
|
393
411
|
/**
|
|
394
412
|
* Optional (Scanner): die Anfrage kam nicht zustande (Browser brach sie vor dem Senden ab oder die Verbindung scheiterte, z. B. `net::ERR_…`).
|
|
@@ -422,9 +440,11 @@ declare const TrackerViolationSchema: z.ZodObject<{
|
|
|
422
440
|
description: string;
|
|
423
441
|
resourceType?: string | undefined;
|
|
424
442
|
tcf?: "denied" | "li" | "granted" | undefined;
|
|
443
|
+
consentMode?: "denied" | undefined;
|
|
425
444
|
ruleId?: string | undefined;
|
|
426
445
|
advisory?: boolean | undefined;
|
|
427
446
|
embed?: boolean | undefined;
|
|
447
|
+
cookielessAfterDeny?: true | undefined;
|
|
428
448
|
requestFailed?: boolean | undefined;
|
|
429
449
|
domContext?: {
|
|
430
450
|
triggerElement?: string | undefined;
|
|
@@ -441,9 +461,11 @@ declare const TrackerViolationSchema: z.ZodObject<{
|
|
|
441
461
|
description: string;
|
|
442
462
|
resourceType?: string | undefined;
|
|
443
463
|
tcf?: "denied" | "li" | "granted" | undefined;
|
|
464
|
+
consentMode?: "denied" | undefined;
|
|
444
465
|
ruleId?: string | undefined;
|
|
445
466
|
advisory?: boolean | undefined;
|
|
446
467
|
embed?: boolean | undefined;
|
|
468
|
+
cookielessAfterDeny?: true | undefined;
|
|
447
469
|
method?: string | undefined;
|
|
448
470
|
requestFailed?: boolean | undefined;
|
|
449
471
|
domContext?: {
|
|
@@ -482,6 +504,14 @@ declare const LeakReportSchema: z.ZodObject<{
|
|
|
482
504
|
resourceType: z.ZodOptional<z.ZodString>;
|
|
483
505
|
/** IAB-TCF-String des Requests nach einer Ablehnung: «denied» → Hinweis, «li» → bleibt `tracking-after-deny` (mit Angabe), «granted» → Regel `tcf-consent-mismatch` */
|
|
484
506
|
tcf: z.ZodOptional<z.ZodEnum<["denied", "li", "granted"]>>;
|
|
507
|
+
/** Consent-Mode-Ping nach einer Ablehnung (gcs/gcd «verweigert», cookielos): Hinweis statt Befund, ob das als Tracking gilt, ist umstritten */
|
|
508
|
+
consentMode: z.ZodOptional<z.ZodLiteral<"denied">>;
|
|
509
|
+
/**
|
|
510
|
+
* Anfrage nach «Ablehnen», nach der kein Cookie und keine Kennung desselben Anbieters beim Besucher blieb (Cookies wurden nach der
|
|
511
|
+
* Ablehnung geprüft): Hinweis statt Befund. Cookielose Pings werden mit «Consent Mode» oder «anonymisiert» verteidigt; belastbar ist
|
|
512
|
+
* erst ein Tracking-Cookie, das nach «Ablehnen» und Neuladen bleibt.
|
|
513
|
+
*/
|
|
514
|
+
cookielessAfterDeny: z.ZodOptional<z.ZodLiteral<true>>;
|
|
485
515
|
method: z.ZodDefault<z.ZodString>;
|
|
486
516
|
/**
|
|
487
517
|
* Optional (Scanner): die Anfrage kam nicht zustande (Browser brach sie vor dem Senden ab oder die Verbindung scheiterte, z. B. `net::ERR_…`).
|
|
@@ -515,9 +545,11 @@ declare const LeakReportSchema: z.ZodObject<{
|
|
|
515
545
|
description: string;
|
|
516
546
|
resourceType?: string | undefined;
|
|
517
547
|
tcf?: "denied" | "li" | "granted" | undefined;
|
|
548
|
+
consentMode?: "denied" | undefined;
|
|
518
549
|
ruleId?: string | undefined;
|
|
519
550
|
advisory?: boolean | undefined;
|
|
520
551
|
embed?: boolean | undefined;
|
|
552
|
+
cookielessAfterDeny?: true | undefined;
|
|
521
553
|
requestFailed?: boolean | undefined;
|
|
522
554
|
domContext?: {
|
|
523
555
|
triggerElement?: string | undefined;
|
|
@@ -534,9 +566,11 @@ declare const LeakReportSchema: z.ZodObject<{
|
|
|
534
566
|
description: string;
|
|
535
567
|
resourceType?: string | undefined;
|
|
536
568
|
tcf?: "denied" | "li" | "granted" | undefined;
|
|
569
|
+
consentMode?: "denied" | undefined;
|
|
537
570
|
ruleId?: string | undefined;
|
|
538
571
|
advisory?: boolean | undefined;
|
|
539
572
|
embed?: boolean | undefined;
|
|
573
|
+
cookielessAfterDeny?: true | undefined;
|
|
540
574
|
method?: string | undefined;
|
|
541
575
|
requestFailed?: boolean | undefined;
|
|
542
576
|
domContext?: {
|
|
@@ -583,6 +617,8 @@ declare const LeakReportSchema: z.ZodObject<{
|
|
|
583
617
|
resourceType: z.ZodOptional<z.ZodString>;
|
|
584
618
|
/** IAB-TCF-String im Request (nur nach einer Ablehnung): «denied» weder Zustimmung noch berechtigtes Interesse, «li» nur berechtigtes Interesse, «granted» Zustimmung */
|
|
585
619
|
tcf: z.ZodOptional<z.ZodEnum<["denied", "li", "granted"]>>;
|
|
620
|
+
/** Google-Mess-Request nach einer Ablehnung, dessen Consent-Mode-Signal (gcs/gcd) «verweigert» meldet (cookieloser Ping) */
|
|
621
|
+
consentMode: z.ZodOptional<z.ZodLiteral<"denied">>;
|
|
586
622
|
}, "strip", z.ZodTypeAny, {
|
|
587
623
|
at: string;
|
|
588
624
|
url: string;
|
|
@@ -591,6 +627,7 @@ declare const LeakReportSchema: z.ZodObject<{
|
|
|
591
627
|
trackerCategory?: string | undefined;
|
|
592
628
|
resourceType?: string | undefined;
|
|
593
629
|
tcf?: "denied" | "li" | "granted" | undefined;
|
|
630
|
+
consentMode?: "denied" | undefined;
|
|
594
631
|
}, {
|
|
595
632
|
at: string;
|
|
596
633
|
url: string;
|
|
@@ -599,6 +636,7 @@ declare const LeakReportSchema: z.ZodObject<{
|
|
|
599
636
|
trackerCategory?: string | undefined;
|
|
600
637
|
resourceType?: string | undefined;
|
|
601
638
|
tcf?: "denied" | "li" | "granted" | undefined;
|
|
639
|
+
consentMode?: "denied" | undefined;
|
|
602
640
|
}>, "many">;
|
|
603
641
|
storageBefore: z.ZodObject<{
|
|
604
642
|
cookies: z.ZodArray<z.ZodString, "many">;
|
|
@@ -731,6 +769,7 @@ declare const LeakReportSchema: z.ZodObject<{
|
|
|
731
769
|
trackerCategory?: string | undefined;
|
|
732
770
|
resourceType?: string | undefined;
|
|
733
771
|
tcf?: "denied" | "li" | "granted" | undefined;
|
|
772
|
+
consentMode?: "denied" | undefined;
|
|
734
773
|
}[];
|
|
735
774
|
storageBefore: {
|
|
736
775
|
cookies: string[];
|
|
@@ -789,6 +828,7 @@ declare const LeakReportSchema: z.ZodObject<{
|
|
|
789
828
|
trackerCategory?: string | undefined;
|
|
790
829
|
resourceType?: string | undefined;
|
|
791
830
|
tcf?: "denied" | "li" | "granted" | undefined;
|
|
831
|
+
consentMode?: "denied" | undefined;
|
|
792
832
|
}[];
|
|
793
833
|
storageBefore: {
|
|
794
834
|
cookies: string[];
|
|
@@ -1243,19 +1283,19 @@ declare const LeakReportSchema: z.ZodObject<{
|
|
|
1243
1283
|
euReference: z.ZodOptional<z.ZodObject<{
|
|
1244
1284
|
assessment: z.ZodEnum<["indicated", "weak", "none"]>;
|
|
1245
1285
|
indicators: z.ZodArray<z.ZodObject<{
|
|
1246
|
-
kind: z.ZodEnum<["currency", "shipping", "country-selector", "hreflang", "domain", "phone", "audience"]>;
|
|
1286
|
+
kind: z.ZodEnum<["currency", "shipping", "country-selector", "hreflang", "domain", "phone", "audience", "notice", "representative", "vat", "establishment", "address"]>;
|
|
1247
1287
|
strength: z.ZodEnum<["strong", "weak"]>;
|
|
1248
1288
|
label: z.ZodString;
|
|
1249
1289
|
evidence: z.ZodString;
|
|
1250
1290
|
}, "strip", z.ZodTypeAny, {
|
|
1251
1291
|
label: string;
|
|
1252
1292
|
evidence: string;
|
|
1253
|
-
kind: "currency" | "shipping" | "country-selector" | "hreflang" | "domain" | "phone" | "audience";
|
|
1293
|
+
kind: "currency" | "shipping" | "country-selector" | "hreflang" | "domain" | "phone" | "audience" | "notice" | "representative" | "vat" | "establishment" | "address";
|
|
1254
1294
|
strength: "weak" | "strong";
|
|
1255
1295
|
}, {
|
|
1256
1296
|
label: string;
|
|
1257
1297
|
evidence: string;
|
|
1258
|
-
kind: "currency" | "shipping" | "country-selector" | "hreflang" | "domain" | "phone" | "audience";
|
|
1298
|
+
kind: "currency" | "shipping" | "country-selector" | "hreflang" | "domain" | "phone" | "audience" | "notice" | "representative" | "vat" | "establishment" | "address";
|
|
1259
1299
|
strength: "weak" | "strong";
|
|
1260
1300
|
}>, "many">;
|
|
1261
1301
|
truncated: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -1264,7 +1304,7 @@ declare const LeakReportSchema: z.ZodObject<{
|
|
|
1264
1304
|
indicators: {
|
|
1265
1305
|
label: string;
|
|
1266
1306
|
evidence: string;
|
|
1267
|
-
kind: "currency" | "shipping" | "country-selector" | "hreflang" | "domain" | "phone" | "audience";
|
|
1307
|
+
kind: "currency" | "shipping" | "country-selector" | "hreflang" | "domain" | "phone" | "audience" | "notice" | "representative" | "vat" | "establishment" | "address";
|
|
1268
1308
|
strength: "weak" | "strong";
|
|
1269
1309
|
}[];
|
|
1270
1310
|
truncated?: boolean | undefined;
|
|
@@ -1273,7 +1313,7 @@ declare const LeakReportSchema: z.ZodObject<{
|
|
|
1273
1313
|
indicators: {
|
|
1274
1314
|
label: string;
|
|
1275
1315
|
evidence: string;
|
|
1276
|
-
kind: "currency" | "shipping" | "country-selector" | "hreflang" | "domain" | "phone" | "audience";
|
|
1316
|
+
kind: "currency" | "shipping" | "country-selector" | "hreflang" | "domain" | "phone" | "audience" | "notice" | "representative" | "vat" | "establishment" | "address";
|
|
1277
1317
|
strength: "weak" | "strong";
|
|
1278
1318
|
}[];
|
|
1279
1319
|
truncated?: boolean | undefined;
|
|
@@ -1458,9 +1498,11 @@ declare const LeakReportSchema: z.ZodObject<{
|
|
|
1458
1498
|
description: string;
|
|
1459
1499
|
resourceType?: string | undefined;
|
|
1460
1500
|
tcf?: "denied" | "li" | "granted" | undefined;
|
|
1501
|
+
consentMode?: "denied" | undefined;
|
|
1461
1502
|
ruleId?: string | undefined;
|
|
1462
1503
|
advisory?: boolean | undefined;
|
|
1463
1504
|
embed?: boolean | undefined;
|
|
1505
|
+
cookielessAfterDeny?: true | undefined;
|
|
1464
1506
|
requestFailed?: boolean | undefined;
|
|
1465
1507
|
domContext?: {
|
|
1466
1508
|
triggerElement?: string | undefined;
|
|
@@ -1502,6 +1544,7 @@ declare const LeakReportSchema: z.ZodObject<{
|
|
|
1502
1544
|
trackerCategory?: string | undefined;
|
|
1503
1545
|
resourceType?: string | undefined;
|
|
1504
1546
|
tcf?: "denied" | "li" | "granted" | undefined;
|
|
1547
|
+
consentMode?: "denied" | undefined;
|
|
1505
1548
|
}[];
|
|
1506
1549
|
storageBefore: {
|
|
1507
1550
|
cookies: string[];
|
|
@@ -1646,7 +1689,7 @@ declare const LeakReportSchema: z.ZodObject<{
|
|
|
1646
1689
|
indicators: {
|
|
1647
1690
|
label: string;
|
|
1648
1691
|
evidence: string;
|
|
1649
|
-
kind: "currency" | "shipping" | "country-selector" | "hreflang" | "domain" | "phone" | "audience";
|
|
1692
|
+
kind: "currency" | "shipping" | "country-selector" | "hreflang" | "domain" | "phone" | "audience" | "notice" | "representative" | "vat" | "establishment" | "address";
|
|
1650
1693
|
strength: "weak" | "strong";
|
|
1651
1694
|
}[];
|
|
1652
1695
|
truncated?: boolean | undefined;
|
|
@@ -1706,9 +1749,11 @@ declare const LeakReportSchema: z.ZodObject<{
|
|
|
1706
1749
|
description: string;
|
|
1707
1750
|
resourceType?: string | undefined;
|
|
1708
1751
|
tcf?: "denied" | "li" | "granted" | undefined;
|
|
1752
|
+
consentMode?: "denied" | undefined;
|
|
1709
1753
|
ruleId?: string | undefined;
|
|
1710
1754
|
advisory?: boolean | undefined;
|
|
1711
1755
|
embed?: boolean | undefined;
|
|
1756
|
+
cookielessAfterDeny?: true | undefined;
|
|
1712
1757
|
method?: string | undefined;
|
|
1713
1758
|
requestFailed?: boolean | undefined;
|
|
1714
1759
|
domContext?: {
|
|
@@ -1751,6 +1796,7 @@ declare const LeakReportSchema: z.ZodObject<{
|
|
|
1751
1796
|
trackerCategory?: string | undefined;
|
|
1752
1797
|
resourceType?: string | undefined;
|
|
1753
1798
|
tcf?: "denied" | "li" | "granted" | undefined;
|
|
1799
|
+
consentMode?: "denied" | undefined;
|
|
1754
1800
|
}[];
|
|
1755
1801
|
storageBefore: {
|
|
1756
1802
|
cookies: string[];
|
|
@@ -1895,7 +1941,7 @@ declare const LeakReportSchema: z.ZodObject<{
|
|
|
1895
1941
|
indicators: {
|
|
1896
1942
|
label: string;
|
|
1897
1943
|
evidence: string;
|
|
1898
|
-
kind: "currency" | "shipping" | "country-selector" | "hreflang" | "domain" | "phone" | "audience";
|
|
1944
|
+
kind: "currency" | "shipping" | "country-selector" | "hreflang" | "domain" | "phone" | "audience" | "notice" | "representative" | "vat" | "establishment" | "address";
|
|
1899
1945
|
strength: "weak" | "strong";
|
|
1900
1946
|
}[];
|
|
1901
1947
|
truncated?: boolean | undefined;
|
|
@@ -2795,6 +2841,8 @@ interface GateExecutionResult {
|
|
|
2795
2841
|
requests: number;
|
|
2796
2842
|
scenarios: number;
|
|
2797
2843
|
};
|
|
2844
|
+
/** Nur mit `schnelltest`: EU-Bezug der Startseite (Merkmale mit Fundstelle, ohne Rechtswertung) für das neutrale Kurzergebnis */
|
|
2845
|
+
euReference?: NonNullable<LeakReport["euReference"]>;
|
|
2798
2846
|
};
|
|
2799
2847
|
}
|
|
2800
2848
|
|
package/dist/index.js
CHANGED
package/package.json
CHANGED