r/Hacking_Tutorials • • Apr 29 '26

Question I built a frictionless client-side encrypted burner chat. Solo dev looking for security audits/roasting.

0 Upvotes

Hey everyone.

I’m a solo developer, and I recently built v2v.site— a fast, web-based, shared-secret burner chat.

Initially, I just wanted a quick way to communicate securely with people (like random gamers or temporary teammates) without forcing them to download apps or give out phone numbers. But it quickly turned into a deep dive into the Web Crypto API.

I recently got roasted on another subreddit for using marketing buzzwords, so I want to be 100% transparent about the threat model here. This is not a Signal replacement. It lacks forward secrecy and identity verification. It is strictly a shared-secret burner chat designed for speed and temporary privacy.

How it works under the hood:

  • The Key: Users enter a 6-digit room ID. The browser uses crypto.subtle.digest (SHA-256) to derive an AES-256-GCM encryption key from that 6-digit PIN + a hardcoded salt.
  • The Payload: All text, emojis, and files are encrypted locally. The server only ever receives Base64 ciphertext.
  • File Handling: Images and voice records are read as ArrayBuffers, encrypted client-side, and sent to the server as opaque .enc blobs (application/octet-stream). The server never sees the actual MIME type.
  • Zero Database: There is no SQL database. Rooms are temporary flat JSON files. A PHP cleanup function continuously purges any room older than 24 hours.

The Ask: Since I'm working on this alone, I have blind spots. I would love for you guys to open the Network tab, poke around, and try to break it.

  • Can you find any XSS vulnerabilities in how the decrypted DOM is rendered?
  • Are there any glaring flaws in using the 6-digit PIN -> SHA-256 derivation for a 24-hour TTL room?
  • Any tips on handling rate-limiting against distributed enumeration attacks for the 6-digit IDs?

Check it out here:/v2v.site/

Roast my code, my security model, or my UX. I want to learn and make it bulletproof. Thanks!