Home Security Knowledge Base Cloud & Serverless netlify/api/v1/sites

Security Knowledge Base

Comprehensive documentation for security researchers and professionals

netlify/api/v1/sites

Security Researcher Detected: You might have ended up here because your site vulnerability scanner found something interesting. Hi! I'm a security engineer and I'm having a good time interacting with the people and bots that are interested in information security.

You will hopefully find this site is well-secured and I'm not interested in being hacked. I'm interested in learning about how people try to hack me, though.

What is this endpoint?

netlify/api/v1/sites

Netlify Sites API

What an attacker could do

A compromised Netlify token at this endpoint allows an attacker to enumerate sites, read build environment variables and deploy keys, and trigger malicious deploys or DNS changes that hijack the served content.

How to defend it

Restrict personal access token scope and rotate leaked tokens immediately, store secrets as encrypted environment variables, enable team SSO and two-factor authentication, and review the audit log.

Connect with the Security Engineer

Follow me on these platforms where I occasionally share interesting security insights and research.

Learn More

Want to dive deeper into this topic? Check out the official documentation.

Read Official Documentation