The Customer Logged In. Someone Else’s Project Was Waiting.
The first customer wasn’t supposed to find anything unusual. She had received an invitation to a new online portal where she could review her project, download documents, check invoices, and send messages without calling the office. The business had spent weeks preparing the launch. The homepage looked sharp, the dashboard was clean, and the registration process was simple enough to complete from a phone.
She entered her email address, typed her password, and opened the dashboard. The greeting displayed her name. The navigation worked. The project cards loaded immediately. Then she noticed a company name she didn’t recognize. Beneath it were project details, a status update, and an uploaded document belonging to another customer.
She refreshed the page. The information was still there.
This wasn’t a hacked account or a stolen password. The customer had logged in normally. The application had simply delivered information that should never have been available to her.
The incident is an illustrative scenario, but the underlying technical mistake is real: an application can authenticate someone correctly while failing to restrict which records that person is allowed to retrieve. For businesses experimenting with vibe coded websites, that distinction deserves attention before the first customer receives a login invitation.
The website had been built with AI-assisted programming. Its interface looked complete, and every demonstration had gone smoothly. What nobody had tested was whether the database treated two different customers as two different customers.
Three Evenings Of Prompts Produced A Convincing Business Platform.
Imagine a small commercial services company that has spent years managing customer projects through email, shared folders, and spreadsheets. Customers regularly ask the same questions. Has the estimate been approved? Did the invoice arrive? When will the project start? Can someone resend the latest document?
The owner wants a portal that answers those questions without requiring an employee to search through old messages. Hiring a development team seems expensive, and the owner has been watching demonstrations of AI coding tools that turn ordinary instructions into working interfaces.
The first prompt is straightforward: build a modern customer dashboard with login, project tracking, document downloads, and messaging. Within minutes, the AI generates a layout with navigation, cards, status indicators, and a responsive design. The owner asks for darker colors, larger headings, and a simpler sidebar. The changes appear almost immediately.
By the second evening, the portal has a registration screen, project overview, invoice table, and document library. By the third, it has been connected to an authentication service and cloud database. The owner can create an account, sign in, and see project information.
This is the appeal of vibe coded websites. A person can describe a product in everyday language, review the result, and request changes without manually writing every component. AI frontend development can compress hours of interface work into a short conversation, particularly when building prototypes, administrative screens, and familiar application patterns.
But a convincing interface introduces a dangerous assumption. When the dashboard looks finished, people begin treating the application as finished. The owner sees project cards, working navigation, and a login screen. The owner doesn’t see the database query behind the project cards or the authorization rules governing which records can be returned.
Those invisible decisions determine whether the platform is ready for customers. The difference becomes obvious only when someone tests an account other than the one used to build it.
The Login Worked Exactly As Designed. That Wasn’t Enough.
After receiving the customer’s report, the owner opens the portal and tries to reproduce the problem. The administrator account shows every project, which is expected. The owner’s personal test account shows the correct sample project. Nothing immediately appears wrong.
The developer reviewing the application creates two fresh customer accounts. Account A receives one project. Account B receives a different project. Both accounts have separate email addresses and passwords. The test is deliberately simple because complicated testing would make it harder to isolate the problem.
Account A signs in and sees its project. Then Account B signs in and sees both projects. The developer opens the browser’s network inspection tools and examines the request used to populate the dashboard. The request is returning records without consistently restricting them to the authenticated customer’s identity.
The login system is doing its job. It knows who signed in. The problem exists one layer deeper: the application isn’t enforcing what that person is allowed to see.
This is the difference between authentication and authorization. Authentication establishes identity. Authorization determines which actions and resources that identity can access. A person can pass authentication and still receive information they have no permission to view if authorization is missing or incorrectly implemented.
For a customer portal, that failure is particularly serious. Project descriptions, estimates, uploaded documents, contact details, and payment information may all be associated with individual customer records. A polished dashboard does nothing to protect that information if the underlying requests return the wrong records.
The team immediately restricts access to the affected portal while investigating. They don’t simply hide the incorrect cards with a frontend condition. Hiding information in the browser would leave the underlying access problem unresolved.
The Problem Wasn’t The Screen. It Was The Question Sent To The Database.
The investigation moves from the visible dashboard into the application’s backend integration. The developer examines how project records are stored, how the customer account is identified, and which rules determine whether a record can be retrieved.
Each project has a title, description, status, and associated customer identifier. That identifier should connect the record to the correct account. When a customer requests their projects, the system should return only records they are authorized to access. The server or database security layer must enforce that restriction, regardless of what the browser requests.
Instead, the application was built around a query originally used during development to display sample projects. The AI coding tool generated the query to populate the interface, and subsequent prompts connected it to real data. The developer discovers that the query’s access restrictions were never completed.
The result is an application that can display real information but cannot reliably separate one customer’s records from another’s. Its frontend is connected to a database, yet the backend integration is incomplete in the place where it matters most.
A second concern appears during the review. The interface uses the customer identifier from the application state to decide which records to request. That value may help organize the frontend, but it cannot be the sole authority for granting access. Client-side values can be altered, requests can be recreated, and an attacker does not have to use the interface exactly as its designer intended.
The authorization decision must be made in a trusted layer. Depending on the technology, that may involve database security rules, row-level security, server-side permission checks, or a combination of controls. The implementation differs between platforms, but the principle doesn’t: the requesting identity must be verified against the record being accessed.
This is where database architecture stops being an abstract technical subject. A project record is not just a row in a table or a document in a collection. It belongs to a customer, and that relationship must be enforced every time the record is read, modified, downloaded, or deleted.
The Project Cards Were Real. The Permissions Were Still A Prototype.
The developer begins tracing how the portal reached this state. The original version used sample customer records to demonstrate the layout. During the build, the owner asked the AI to replace sample information with live database content. The AI updated the data connection and the cards began displaying real projects.
That change felt like a milestone. The owner could refresh the page and see newly created records. The interface no longer depended on hardcoded examples. But connecting a component to a database is not the same as designing secure access to that database.
Several decisions had been postponed without anyone explicitly recognizing them as unfinished. Who owns a project when two employees work for the same customer? Can a customer invite another user? Should an employee see every project or only assigned projects? Can a customer download a document if they know its storage path? What happens when a customer’s account is disabled?
These questions are not decorative details. They determine how the system handles actual business relationships. A company with one administrator and one test customer can operate under assumptions that fail as soon as more people are introduced.
Vibe coded websites often begin with a narrow demonstration. The AI receives a request to make a dashboard work, and the generated code satisfies the visible example. Unless the developer explicitly defines permission boundaries, failure conditions, and data ownership, the result may work for the demonstration without meeting the requirements of a live multi-customer application.
That doesn’t make AI-assisted programming inherently unreliable. It means the person directing the work still needs to understand the responsibilities of the application. An AI tool can generate a database query, but it cannot infer every customer relationship, legal obligation, or permission policy from a request to make a page look modern.
The Documents Had Locks On The Screen, But Not At The Door.
Once the team identifies the project access problem, the investigation expands to uploaded documents. The portal has a document library with attractive file cards, download icons, and labels identifying which customer owns each file. From the interface, the document section looks organized and private.
The developer tests whether the storage service enforces those same restrictions. A document card is hidden from the wrong customer, but that alone proves very little. The developer examines how download links are created and whether the storage system independently checks the requesting user’s permission.
In the illustrative portal, some document links were generated using a shared storage location with insufficient access restrictions. A customer who obtained another file’s address could potentially retrieve it without passing the intended project ownership check.
The visual interface had been designed around privacy. The storage permissions had not.
The team corrects the underlying access controls and changes the download process so each request is evaluated against the authenticated user’s permitted resources. They also review existing links, revoke access where necessary, and examine available logs to understand which files may have been retrieved.
The discovery changes the scope of the repair. Fixing the dashboard query would address one symptom, but customer data isolation must cover the entire application. Documents, messages, invoices, project notes, API endpoints, and administrative actions all need permission checks appropriate to their purpose.
A lock icon beside a file name doesn’t protect a file. Neither does a hidden menu item. The protection has to exist where the data is actually served.
Everyone Tested Whether It Worked. Nobody Tested Whether It Should.
During the original demonstration, the owner created a project, updated its status, uploaded a document, and signed out. Every action produced the expected result. The AI-generated application passed the demonstration because the test followed the path the application had been designed to support.
What the demonstration didn’t include was a second customer attempting to access the first customer’s information. Nobody tested an employee account with limited permissions. Nobody checked whether a removed user could still download an old file. Nobody attempted to change a project identifier in a request.
Those tests sound less exciting than watching an AI create a dashboard from a paragraph. They are also the tests that distinguish a convincing prototype from a system that can safely handle real customers.
The developer explains the difference using a simple example. If an application lets Customer A view Project A, that proves one authorized action works. It does not prove Customer A is prevented from viewing Project B. The second condition requires a separate test.
The same logic applies to changing records. A customer might be allowed to update a phone number but not an invoice amount. An employee might be allowed to view a project without being allowed to delete it. An administrator might need access to multiple customer accounts while an ordinary customer should remain confined to one organization.
These boundaries should be written down before deployment, not discovered through customer complaints. They belong in the application’s requirements, database architecture, and automated tests. Without them, developers can spend weeks confirming that permitted actions work while overlooking whether prohibited actions are blocked.
Fixing One Query Was Easy. Proving The Portal Was Safe Took More Work.
The first code correction is relatively small. The application must associate every project with the appropriate customer or organization and enforce that relationship when records are requested. The developer updates the access rules and replaces queries that return unrestricted project collections.
But the team refuses to treat one successful correction as proof that the entire portal is ready. The developer maps the application’s data relationships, identifies each user role, and reviews every place where information enters or leaves the system.
The owner discovers that the portal needs clearer business rules. A customer may have several employees using the same account. Some employees should see invoices, while others should only see project updates. Internal staff need different permissions depending on their responsibilities. The original prompts never defined those distinctions.
Once the business rules are documented, the developer can implement them consistently. The database records ownership and organization membership. The backend checks the authenticated identity against those relationships. Storage access follows the same permission model. Administrative operations receive separate controls.
The team also reviews what happened during the exposure. If this were a real incident, the business would need to preserve relevant logs, determine the information involved, assess whether notification obligations apply, and seek appropriate security or legal guidance. Correcting the code does not automatically resolve the consequences of an earlier disclosure.
The repair is complete only after the team can demonstrate both sides of the permission model: authorized customers can perform their intended tasks, and unauthorized customers cannot retrieve or modify records belonging to someone else.
Five Tests That Matter More Than Another Perfect Screenshot.
A business reviewing vibe coded websites should test the actual application behavior before inviting customers. The most valuable checks involve different accounts, real database records, and attempts to perform actions that should be denied. For a customer portal like the one in this scenario, the review should include:
- Separate customer accounts: Confirm that each customer can access only the projects, messages, invoices, and documents permitted to their account.
- Direct data requests: Verify that changing a record identifier or bypassing the visible interface does not provide unauthorized access.
- Document permissions: Test whether stored files remain protected when someone attempts to use a direct download link.
- Role restrictions: Check what customers, employees, managers, and administrators can read, create, update, or delete.
- Real submission handling: Confirm that forms save the intended records, errors are handled, and failed requests do not appear successful.
These checks should become repeatable tests rather than one-time demonstrations. Every new feature can affect an existing permission boundary. A change to the project dashboard, document library, or customer invitation process should trigger another review of the relevant access rules.
The AI Wrote The Code. The Business Still Owned The Decisions.
It would be easy to blame the entire incident on AI and conclude that businesses should avoid AI-assisted programming. That would miss the more useful lesson. The tool generated an interface, connected components, and accelerated work that might otherwise have taken considerably longer. Those capabilities are valuable.
The failure came from treating generated code as a completed engineering decision. The owner asked for a customer portal and received something that resembled one. Nobody established a complete permission model, reviewed the database access rules, or tested whether customers were isolated from one another.
A human developer can make the same mistake. Traditional software projects have experienced authorization failures, exposed storage resources, and insecure database queries for years. AI does not invent these categories of problems. It can, however, make it much easier for someone to assemble a complex application before understanding the responsibilities that come with operating it.
That speed changes the order in which businesses encounter technical decisions. A company can reach a convincing demonstration before it has discussed data ownership, permission boundaries, audit logging, or recovery procedures. The visible product arrives first. The engineering questions arrive later.
The better approach is to use AI as part of a controlled development process. Describe the feature, define its data requirements, specify permitted and prohibited actions, generate the implementation, inspect the result, and test it against realistic conditions. When the tool proposes an authentication or database configuration, the developer should understand what that configuration actually permits.
AI can help write tests, explain code, identify suspicious patterns, and suggest improvements. None of those activities removes the need to verify the result. A confident explanation from an AI assistant is not evidence that a permission rule is correct.
The Cheapest Part Was Building The Screen. The Expensive Part Was Trust.
The owner originally measured the project by how quickly the interface appeared. A portal that would have required meetings, wireframes, and development milestones seemed to materialize over a few evenings. The business could see what it was getting before committing to a conventional project budget.
After the customer access problem, the definition of progress changes. The owner is no longer asking whether the dashboard can be completed before Friday. The question is whether the company can confidently invite customers to use it.
That confidence has a cost. Someone must review the code, document the database architecture, test account permissions, examine storage access, and verify that important actions are recorded correctly. Depending on the application, the work may also involve privacy requirements, backup procedures, monitoring, and incident response planning.
Those responsibilities would exist even if every line of code had been written manually. AI changes how quickly the business reaches them; it doesn’t eliminate them.
The company ultimately decides to keep the AI-generated interface. Customers like the layout, employees understand the navigation, and the dashboard already reflects how the business operates. Rebuilding the visual design would accomplish little. The investment goes toward correcting the backend and establishing a testing process.
That is a more useful outcome than abandoning the project. The owner learns which parts of the application are presentation, which parts enforce business rules, and which parts must be verified before customers depend on them.
A Working Demo Is An Invitation To Test, Not Permission To Launch.
There is a meaningful place for vibe coded websites in modern development. A small business can explore a new service concept without commissioning a complete application. A founder can demonstrate an idea to potential customers. A development team can use AI frontend development to produce interface components, administrative tools, and prototypes faster than before.
The trouble begins when the business stops distinguishing between a prototype and a production application. A prototype demonstrates what an experience could look like. A production application must handle real identities, real data, unexpected inputs, unavailable services, permission failures, and simultaneous activity without exposing information or misleading users.
The difference is not always visible in screenshots. Two dashboards can look identical while using completely different backend integration methods. One may enforce customer permissions in a trusted database or server layer. The other may depend on a browser-side filter that can be bypassed. Both can produce an attractive demonstration.
For that reason, AI website deployment should be treated as a separate engineering milestone rather than the final step after choosing colors and polishing buttons. Deployment means more than making a URL publicly accessible. It means deciding what the application is allowed to do, proving those decisions are enforced, and preparing to detect problems after release.
A company doesn’t need to abandon AI tools to take those responsibilities seriously. It needs a development process that values evidence over appearances. The faster a website can be assembled, the more important it becomes to examine the parts that a demonstration cannot show.
The Customer Didn’t Find A Design Flaw. She Found The Missing Engineering.
Return to the customer who opened the portal and found another company’s project waiting on her dashboard. She didn’t inspect the source code, analyze database queries, or review authentication settings. She simply signed in and noticed information that didn’t belong to her.
From her perspective, the explanation hardly matters. The business had invited her into a private customer portal, and the portal failed to keep customer information separate. A beautiful interface couldn’t make that experience feel secure.
The business, meanwhile, learned that its original definition of finished was incomplete. The homepage was finished. The navigation was finished. The dashboard components were finished. But the permissions, database relationships, and testing process still needed serious attention.
This is the challenge behind vibe coded websites. AI can help people create software that looks and behaves convincingly with remarkable speed. It can produce useful code, accelerate experiments, and give businesses a way to explore ideas that previously remained trapped in planning documents.
But software has obligations that aren’t visible in the interface. Customer data isolation must hold when users make unexpected requests. Database architecture must reflect actual business relationships. Backend integration must enforce permissions rather than merely display the right information under ideal conditions. AI-assisted programming still requires technical judgment about what should happen when something goes wrong.
The question businesses should ask isn’t whether AI can build a website. It clearly can help build one. The more important question is whether anyone has tested the decisions hidden beneath the design.
Because the customer who discovers those missing decisions probably won’t care how quickly the website was built.
- A working login does not guarantee proper authorization.
- Vibe coded websites need real multi-account testing.
- Frontend restrictions cannot replace backend permissions.
- Database architecture must reflect customer ownership.
- Document storage requires independent access controls.
- AI-assisted programming still requires code review.