LUMO Marketplace
A sustainable fashion marketplace, then an audit of my own code.
Final year project · 2026 · Full stack development, security and concurrency audit
A marketplace for sustainable fashion with live chat, Stripe and Khalti payments, multiple vendors and 3D product previews. Once it all worked, I went back in and tried to break it.
The problem
Build alone and chase features, and risk piles up quietly. A marketplace moves money and stock. A race condition can oversell it, a second auth path can reopen the attack the session cookie was built to stop, and validation that never gets wired up might as well not exist. Nothing was broken on the happy path, which is exactly what makes these bugs dangerous.
What I did
I built the whole stack, then audited it: 48 backend files and 69 frontend files, in passes over auth, checkout and stock, validation, uploads and the frontend data layer. Every finding got a severity and a fix I could actually merge.
What I found
A cookie I undid myself
The backend set a proper httpOnly session cookie. The frontend then kept the same token in localStorage in seven places and sent it as a header on every request, which reopened the exact theft path the cookie was there to close. The fix deletes code.
Two buyers, one last unit
The stock check and the decrement were separate steps, so two buyers racing for the last unit could both get it. One atomic update makes overselling impossible, and the second buyer gets an honest 409.
An admin password in the source
The seed script created a working admin login with its password written in the code. It now comes from the environment or gets generated, with a forced change on first login.
Validation that was never switched on
Vendor onboarding and product rules were written and imported, then never attached to their routes. Two lines of middleware each turned them on for the busiest write paths in the app.
Chat and checkout that scale
The inbox loaded every thread's whole history on every visit. Lists now skip the messages and threads page the latest fifty. Checkout made one database round trip per item, around fifteen for a normal order. Batched reads and bulk writes cut that to two.
What held up
Nine things checked out clean, including bcrypt at cost 12, prices computed on the server, ownership checks on every resource, payments verified on the server and no secret ever committed.
In numbers
- 44 findings and fixes
- 117 files audited
- 9 practices held up
Tools: React 19 · Express · MongoDB · Socket.IO · Stripe & Khalti · Three.js
Interrogated my own code. It confessed 44 times.
Say hi. I actually reply fast.
Want something built and then checked like this? shivahalsey@gmail.com