NodeBB SQL Injection Vulnerability in Search Categories API Endpoint

Vulnerability

A SQL injection vulnerability has been identified in NodeBB version 4.3.0, specifically within the search-categories API endpoint. The issue arises because the search query parameter is not adequately sanitized, allowing unauthenticated, remote attackers to inject boolean-based blind and PostgreSQL error-based payloads.

Impact

Exploitation of this vulnerability allows for SQL injection, where an attacker can manipulate database queries. This could lead to unauthorized data access, data manipulation, or in some cases, executing administrative operations on the database.

Reproduction

To reproduce this vulnerability, send a request to the search-categories API endpoint with a crafted search query that exploits the lack of proper sanitation. Boolean-based blind payloads can be injected by manipulating the search parameter to include SQL injection techniques, such as tautology-based injections. Additionally, error-based payloads can be injected by causing the PostgreSQL database to return error messages, which can be used to extract information from the database.

Added: Aug 27, 2025, 6:31 PM
Updated: Aug 27, 2025, 7:18 PM

Vulnerability Rating

Custom Algorithm
spread
3.4
impact
2.5
exploitability
9.7
remediation
0.0
relevance
0.4
threat
6.4
urgency
2.9
incentive
10.0

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.