Skip to content
SQL injection Write-up Intermediate

When Collaboration Becomes Vulnerable: Exposing SQL Injection

An outdated OnlyOffice Document Server was vulnerable to SQL injection through the DocID parameter of its WebSocket API. An attacker could execute arbitrary SQL queries, potentially exposing or manipulating sensitive data.

saurabh5392 Follow

Published on medium.com

In an era where collaboration is key to business agility, a popular document collaboration tool had its security compromised. Aimed at streamlining document review and approvals, this software unfortunately hosted a ticking time bomb within its digital walls, in the form of a SQL Injection vulnerability, threatening…

Sushant Soni, 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

It could allow an attacker unfettered access to manipulate or retrieve sensitive data directly from the database, possibly leading to unauthorized data exposure and system compromise.

What the attacker needed

Target runs vulnerable OnlyOffice version; access to WebSocket API

The fix

The issue was patched in the following weeks.

How it was found

  1. Identify the site is running OnlyOffice v5.4.2 using Wappalyzer.
  2. Note the version is obsolete and has a known SQL injection CVE.
  3. Test the WebSocket API by injecting a SQL command with a sleep function into the DocID parameter.
  4. Observe a 6-second delay, confirming the injection.

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.

SQL injection is when a program puts user input directly into a database command, letting an attacker change the command. Here, the DocID value sent over a WebSocket (a two-way connection) was not properly sanitised, so a crafted value could run extra database instructions.

What is SQL injection?

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

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.