Skip to content
The Cubas
Production2025

SwiftCart

Home and decor store, hardened after launch

A home and decor storefront with customer and admin dashboards, Chart.js reporting and PDF invoices, maintained in production across more than 200 commits.

Next.jsTailwind CSSTanStack QueryMongoDBMongooseNextAuthChart.js
SwiftCart home and decor storefront

What is SwiftCart?

SwiftCart is a production home and decor ecommerce platform with customer and admin dashboards, reporting and PDF invoices. More than 200 commits of post launch work closed an unauthenticated delete route and a privilege escalation path, hardened authentication against brute force and account enumeration, and fixed a MongoDB connection leak and a cart race condition.

The interesting part

What Was Actually Hard

Every project looks straightforward in a case study. These are the problems that decided how it was built.

01

An unauthenticated delete route

A route that removed data without checking who was calling it. Found, closed and covered. This is the class of bug that never appears in a demo and ends a business when someone else finds it first.

02

A privilege escalation path

Discovered during a self directed audit rather than reported by a user. A path existed for a lower privileged account to reach actions it should never have had. Closed at the authorisation layer rather than hidden in the interface.

03

A connection leak that only showed under load

MongoDB Atlas warned that production was approaching its connection limit. The leak was invisible in development because it needed sustained concurrent traffic to appear. Tracing it meant reproducing the load rather than reading the code again.

04

A race that lost cart updates

Rapid clicks on quantity controls dropped updates, so the cart disagreed with the customer. Fixed at the write path so the last intent wins rather than the last request to arrive.

05

Brute force and account enumeration

Authentication was hardened so repeated attempts are throttled and failed logins do not reveal whether an email address exists. Both are standard, and both were missing.

What it does

Shipped Feature Set

  • Customer and admin dashboards
  • Chart.js sales and inventory reporting
  • Generated PDF invoices
  • Hardened authentication with throttling
  • Role based access control
SwiftCart admin dashboard with sales reporting charts

Built by

Ashraful Islam Hridoy, Lead Engineer

Ashraful builds the systems behind The Cubas engineering work, from typed REST APIs and data models to the React interfaces on top of them. His focus is the part most builds skip: secure access, reliable background jobs, and what happens to a system after launch.

Read the background

Need Something Like This Built?

Send the brief, the codebase you inherited, or just the problem you are trying to solve. We will tell you what it takes.

Prefer to skip the form? Message us on WhatsApp or email yousuf@thecubas.com