#Website Strategy
20 ways an AI-built website can be attacked

You can build a website with AI in an afternoon. That’s exciting. But if it takes bookings, stores customer information, or lets people sign in, looking finished is only the beginning.
A short reel by Aidan Murphy runs through 20 ways an application can be attacked. The names come fast, so let’s slow them down. Some can interrupt a site. Others target accounts or private information. Not every issue applies to every website, and these risks aren’t exclusive to AI-generated code.
Here’s what they mean, why they matter, and what your developer should review. You don’t need to memorize the jargon. You do need to know what questions to ask.
When traffic or processing brings the site down
1. HTTP/2 Rapid Reset. A traffic attack can overwhelm vulnerable infrastructure with requests and interruptions. Ask your hosting provider about its DDoS protections and whether your servers and proxies are patched. Google documented a major attack using this technique in 2023; its scale is not a prediction for your website.
2. Expensive regular expressions. Some input-processing rules can take an unusually long time to evaluate, tying up the server. Review complex validation patterns, limit input size, and test expensive operations safely.
3. Bypassed rate limits. If the system trusts a visitor-supplied address or counts requests incorrectly, an attacker may get around limits meant to slow abuse. Configure trusted proxies carefully and test limits at the right points in the application.
When someone gets into an account
4. Username-handling bugs. A login system may mishandle unusual or lengthy usernames, or use an unsafe cache when checking them. Use a maintained identity provider, apply updates, and have a developer test the full login flow. A long username by itself does not unlock an account.
5. Forged SAML sign-in. SAML is a way organizations connect a website to a single sign-on provider. If the app accepts an improperly verified sign-in assertion, someone could be treated as another user. Keep the SSO library patched and verify assertions using trusted configuration.
6. Spoofed identity-provider details. “Sign in with” integrations need to verify the identity provider’s response and handle account linking carefully. Merely receiving an email address is not enough to assume the person controls it.
7. Too many verification attempts through GraphQL. GraphQL is one way an app requests data or actions. If a single request can contain many login or verification attempts, a limit that counts only requests may miss the abuse. Apply limits to the underlying attempts and review query complexity.
8. Reused two-factor codes. A one-time code should be time-limited and rejected after successful use. Check replay protection, attempt limits, and the account-recovery process; multifactor authentication is valuable, but its implementation still matters.
9. Look-alike usernames. Different Unicode characters can look alike or be interpreted inconsistently. That can cause identity confusion or, in flawed account-linking systems, account takeover. Use consistent identity handling and verified provider identifiers, and review normalization and account linking with a security specialist.
When a trusted token isn’t actually trustworthy
10. JWT signature confusion. A JSON Web Token may tell an app who a user is. If the app verifies it with the wrong algorithm or key, a forged token may be accepted. Use maintained libraries and explicitly validate the expected signature, issuer, audience, and token purpose.
11. Predictable tokens. Password-reset links, session identifiers, and other sensitive tokens must be hard to guess. Use a cryptographically secure random generator and established libraries, with short lifetimes and single-use controls where appropriate.
12. Timing leaks. Differences in how long a sensitive check takes can sometimes reveal information. Use established, constant-time comparisons for secrets where appropriate and avoid exposing unnecessary authentication details.
13. Padding-oracle flaws. Some older or incorrectly implemented encrypted-cookie systems reveal useful information through their error responses. Avoid custom cryptography; use supported, authenticated encryption and keep dependencies current.
When the layers disagree about a request
14. Request smuggling. A proxy and an application server can disagree about where one request ends and another begins. This can undermine security controls or affect other users. Keep infrastructure patched and review how the edge, proxy, and application handle requests together.
15. Cache poisoning. A cache can accidentally save and serve a response influenced by information it shouldn’t trust. Review cache keys, forwarded headers, and which responses are allowed to be cached, especially for personalized pages.
16. Database views that bypass intended restrictions. Row-level security can limit which records a user can access, but a view or privileged function may run with different permissions. Review permissions for tables, views, functions, and every exposed API, then test with accounts that should and should not have access.
When input becomes something more dangerous
17. Prototype pollution. In some JavaScript applications, unsafe handling of object properties can alter application behavior and may contribute to more serious compromise. Validate inputs, avoid unsafe merges, and update affected dependencies.
18. Server-side template injection. If customer-supplied text is treated as template code instead of data, the server may expose information or execute unintended operations. Use fixed, reviewed templates and pass untrusted values as data.
19. XML external entities. An improperly configured XML parser can be tricked into accessing files or other resources. Disable external entity processing where it isn’t needed and use secure parser settings.
20. WebSocket hijacking. Real-time features such as chat need their own protections. Validate trusted origins, authenticate the connection, authorize actions and messages, and apply sensible limits.
What to do before you panic
Start with what your site actually does. A simple brochure site and a customer portal have different risks. List your accounts, forms, integrations, data stores, and the people responsible for each one. Then prioritize the issues that could expose private information, interrupt essential services, or let someone take over an account.
Ask a qualified developer to review generated code and configuration, test authorization and recovery flows, update dependencies, and check whether backups can be restored. For a higher-risk application, an independent security assessment or penetration test may be appropriate. Arrange testing only for systems you own or are authorized to test.
AI can help you find issues, but a single prompt or automated scan can miss problems. Security is an ongoing process, not a badge you earn once at launch.
Already built something with AI? Great. You’ve made progress. Now let’s make sure the foundation is ready for the people who rely on it. Tell me about your website. You can also read our AI-built website security checklist.
Further reading
Explore OWASP’s web security testing guide, its guidance on authorization, GraphQL, WebSockets, and JSON Web Tokens. Google explains Rapid Reset, and Supabase explains database-view security.