Skip to content
SQL injection Write-up Advanced

WebSockets, Protobuf, and a Hidden SQL Injection: My Unexpected Bug Hunting Journey

The application sent all actions, including login and password changes, over WebSocket connections using binary Protobuf messages rather than ordinary HTTP requests. The author eventually found a SQL injection in one of those WebSocket request flows, but the text does not say which parameter or what data could be reached.

momenrezkk90 Follow

Published on medium.com

When most people think of bug hunting, they imagine chasing down obvious vulnerabilities — broken access controls, exposed APIs, or outdated libraries. But sometimes, the biggest discoveries come when nothing seems wrong on the surface.

MOAMEN REZK, on medium.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Impact

A SQL injection existed in a WebSocket request flow, but the text gives no detail on what an attacker could read or change, and it notes that integrity checks and random signatures broke any tampered request.

What the attacker needed

Access to a private program; ability to decode Protobuf messages

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

This site did not use normal web requests for anything; instead it kept a live two-way connection open (a WebSocket) and sent compact binary messages (Protobuf) through it. The tester had to decode those binary messages before they could tamper with them, and in one of them they found a database injection flaw. The write-up does not explain how the injection worked or what it exposed.

What is SQL injection?

Input reaches a database query as code, letting an attacker read or change data the application never meant to expose.

More by momenrezkk90

View all

4 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

SQL injection

The lesson behind this report.

Input reaches a database query as code, letting an attacker read or change data the application never meant to expose.