A React-based web application intentionally designed with bugs for AI QA testing purposes.
BuggyVibe is a testing playground for AI-powered QA systems. The application contains intentional bugs across different categories to help test and train automated testing tools.
- Frontend: React 19 with Vite
- Routing: React Router DOM
- Mock Backend: json-server
- Styling: Custom CSS
- Home Page: Welcome section with hero banner and feature highlights
- Products Page: Product catalog fetched from mock database
- Contact Page: Contact form with submission handling
- Login Page: User authentication form (vulnerable to SQL injection)
- Responsive Design: Mobile-friendly layouts
This application contains the following intentional bugs:
-
Broken Links:
- "About" link in navbar leads to 404
- "Privacy Policy" link in footer leads to 404
-
Visual Bug:
- Product page subtitle overlaps with the product grid due to negative margin
-
Functional Bugs:
- Contact form accepts empty submissions (no validation)
- Submit button has 30% random failure rate
-
Media Bug:
- Home page contains broken image URL displaying alt text
-
Console Error:
- Home page logs tracking error to console
-
Security Vulnerabilities (when using vulnerable server):
- SQL Injection: User search and login endpoints vulnerable to SQL injection
- Data Exposure: Cleartext passwords stored in pw_db.json
- Debug Endpoint: Exposed database schema at /api/debug/schema
- No Input Validation: User ID endpoint accepts any input
- Node.js (v18 or higher)
- npm
# === STEP 1: Clone and Navigate ===
git clone https://github.com/enturesting/buggy-vibe.git
cd buggy-vibe
# === STEP 2: Install Dependencies ===
npm install
# === STEP 3: Start Backend (New Terminal) ===
# For SQL injection testing (RECOMMENDED):
npm run server:vulnerable
# Or for basic functionality only:
# npm run server
# === STEP 4: Start Frontend (Another New Terminal) ===
npm run dev
# === DONE! ===
# Frontend: http://localhost:5173
# Backend: http://localhost:3001Normal Login:
- Username: admin / Password: admin123
- Username: john_doe / Password: password123
SQL Injection (Login Page):
- Username: admin' OR '1'='1' --
- Password: anything
SQL Injection (User Search):
- Search: ' OR '1'='1' --
- Search: ' UNION SELECT * FROM users --
You need TWO terminal windows running simultaneously:
Terminal 1 - Backend Server
# Navigate to project
cd buggy-vibe
# Choose ONE of these:
npm run server:vulnerable # Recommended - includes SQL injection endpoints
# OR
npm run server # Basic server without vulnerabilitiesTerminal 2 - Frontend
# Navigate to project
cd buggy-vibe
# Start React app
npm run devAccess Points:
- Frontend:
http://localhost:5173 - Backend API:
http://localhost:3001
Important: Both servers must be running at the same time!
buggy-vibe/
βββ src/
β βββ components/ # Reusable components (Navbar, Footer)
β βββ pages/ # Page components (Home, Products, Contact, NotFound)
β βββ App.jsx # Main app component with routing
β βββ App.css # Global app styles
β βββ index.css # Base styles
β βββ main.jsx # App entry point
βββ db.json # Mock database for json-server
βββ package.json # Project dependencies and scripts
βββ README.md # This file
- Navigate to any page
- Click "About" in navbar or "Privacy Policy" in footer
- Expected: 404 page appears
- Navigate to Products page
- Expected: Subtitle overlaps with first row of products
- Navigate to Contact page
- Click "Send Message" without filling any fields
- Expected: Form submits successfully with empty data
- Navigate to Contact page
- Fill out form and submit multiple times
- Expected: Approximately 30% of submissions fail randomly
- Navigate to Home page
- Expected: Broken image icon/alt text visible in hero section
- Open browser console
- Navigate to Home page
- Expected: Red error message about tracking failure
- Start the vulnerable server (
npm run server:vulnerable) - Make a GET request to:
http://localhost:3001/api/users/search?username=' OR '1'='1' -- - Expected: Returns all users from the database instead of no results
- Start the vulnerable server
- Make a POST request to
http://localhost:3001/api/loginwith:{ "username": "admin' OR '1'='1' --", "password": "anything" } - Expected: Successfully logs in as admin user without correct password
- Start the vulnerable server
- Navigate to:
http://localhost:3001/api/debug/schema - Expected: Exposes entire database schema information
- View the
pw_db.jsonfile - Expected: All passwords are stored in cleartext (not hashed)
npm run dev- Start development servernpm run build- Build for productionnpm run preview- Preview production buildnpm run lint- Run ESLintnpm run server- Start json-server mock backendnpm run server:vulnerable- Start vulnerable server with SQL injection endpoints
The application uses vanilla CSS with a modular approach:
- Component-specific CSS files
- Consistent color scheme
- Responsive design patterns
- Modern flexbox/grid layouts
GET /products- Fetch all productsPOST /contacts- Submit contact form
GET /api/users/search?username=xxx- SQL injection vulnerable user searchPOST /api/login- SQL injection vulnerable login endpointGET /api/users/:id- User endpoint with no input validationGET /api/debug/schema- Exposed debug endpoint showing database schema
This is a testing application with intentional bugs. If you find bugs not listed in the documentation, they might be unintentional! Feel free to report them.
MIT License - Feel free to use this for testing and educational purposes.