No scraping of login-walled content without ToS authorization
Why it matters
Authenticating as a user on platforms that prohibit scraping in their ToS — LinkedIn, Facebook, Twitter — bypasses access controls those platforms have implemented specifically to protect user data. This is not a legal gray area: GDPR Art. 6 requires a lawful basis for processing, and simulated session access provides none. CWE-284 (Improper Access Control) and OWASP A01 (Broken Access Control) both apply. Courts have found CFAA violations in cases involving credential-based scraping of platforms with clear no-scraping ToS. CCPA §1798.100 adds parallel liability for collecting personal information without a valid basis.
Severity rationale
Critical because credential-based scraping of ToS-restricted platforms exposes the company to CFAA liability, GDPR Art. 6 unlawful-processing findings, and platform-level account termination affecting all legitimate API access.
Remediation
Remove all stored session cookies, login credentials, and authentication flows targeting scraping-prohibited platforms. Replace with official API integrations where available.
// Remove this pattern entirely from the codebase:
// const cookies = JSON.parse(fs.readFileSync('config/linkedin-cookies.json', 'utf8'))
// await page.setCookie(...cookies)
// Use the official API instead:
import { LinkedInAPI } from '@linkedin/api-client'
const client = new LinkedInAPI({ apiKey: process.env.LINKEDIN_API_KEY })
const results = await client.search({ keywords: query })
For platforms with no official API, restrict scraping to unauthenticated public pages that are not excluded by robots.txt. Document the legal basis in a data processing register before any scraping begins. Consult legal counsel on each platform's ToS before implementation.
DetectionPro
The detection method for this pattern is part of AuditBuffet Pro.
The full method (what to look for, pass and fail conditions, and how results get reported) ships inside the Data Sourcing & Provenance Audit. The pattern definition, severity rationale, and remediation remain openly licensed under CC-BY-4.0.
External references
- gdpr · Art. 6 — Lawfulness of processing — accessing login-walled content without ToS authorization lacks legal basis
- cwe · CWE-284 — Improper Access Control
- owasp:2021 · A01 — Broken Access Control
- ccpa · §1798.100 — Consumer right to know — unauthorized access to platform data undermines consent
Taxons
History
- 2026-04-18·v1.0.0·Initial import from data-sourcing-provenance·automated