Response playbooks, investigation guides, and Atomic Red Team tests are Pro-only. Upgrade to unlock the full detection package for CVE-2026-52887.

Unlock with Pro - from £29/user/mo
CVE-2026-52887

NocoBase myInAppChannels:list SQL Injection to PostgreSQL Superuser RCE (CVE-2026-52887)

Initial Access Execution Last updated:

CVE-2026-52887 is a critical (CVSS 10.0) SQL injection vulnerability in the @nocobase/plugin-notification-in-app-message plugin's /api/myInAppChannels:list endpoint filter parameter, affecting NocoBase versions <= 2.0.60. An unauthenticated or low-privileged attacker can inject arbitrary SQL through the filter query parameter, which is passed insufficiently sanitized into the underlying Sequelize/PostgreSQL query builder. Because NocoBase's database connection frequently runs with elevated (superuser) PostgreSQL privileges to support its dynamic schema/collection features, successful injection can be escalated via COPY ... TO/FROM PROGRAM or dblink/plpythonu extensions to achieve full remote code execution on the database host. Patched in v2.0.61 (PR #9630, commit 68d64e3).

Vulnerability Intelligence

Public PoC

What is CVE-2026-52887 NocoBase myInAppChannels:list SQL Injection to PostgreSQL Superuser RCE (CVE-2026-52887)?

NocoBase myInAppChannels:list SQL Injection to PostgreSQL Superuser RCE (CVE-2026-52887) (CVE-2026-52887) maps to the Initial Access and Execution tactics — the adversary is trying to get into your network in MITRE ATT&CK.

This page provides production-ready detection logic for NocoBase myInAppChannels:list SQL Injection to PostgreSQL Superuser RCE (CVE-2026-52887), covering the data sources and telemetry it touches: Azure App Service HTTP Logs, IIS Logs, Web Application Firewall Logs. The queries below are rated critical severity at high confidence, and ship for 7 SIEM platforms — KQL, SPL, Elastic, QRadar, Sumo, YARA-L, LogScale.

MITRE ATT&CK

Tactic
Initial Access Execution
Microsoft Sentinel / Defender
kusto
let SuspiciousPatterns = dynamic(["COPY ", "PROGRAM", "dblink", "plpythonu", "UNION SELECT", "pg_read_file", "lo_import", "lo_export", "--", "/*", "information_schema"]);
AppServiceHTTPLogs
| where CsUriStem has "/api/myInAppChannels:list"
| where CsUriQuery has "filter"
| extend DecodedQuery = url_decode(CsUriQuery)
| where SuspiciousPatterns has_any (DecodedQuery)
| project TimeGenerated, CIp, CsMethod, CsUriStem, DecodedQuery, ScStatus
| union (
W3CIISLog
| where csUriStem has "/api/myInAppChannels:list"
| where csUriQuery has "filter"
| extend DecodedQuery = url_decode(csUriQuery)
| where SuspiciousPatterns has_any (DecodedQuery)
| project TimeGenerated, CIp=cIP, CsMethod=csMethod, CsUriStem=csUriStem, DecodedQuery, ScStatus=scStatus
)
| sort by TimeGenerated desc

Detects HTTP requests to the vulnerable NocoBase /api/myInAppChannels:list endpoint containing SQL injection payload indicators (COPY PROGRAM, dblink, UNION SELECT, comment sequences) in the filter query parameter, indicative of CVE-2026-52887 exploitation attempts.

critical severity high confidence

Data Sources

Azure App Service HTTP Logs IIS Logs Web Application Firewall Logs

Required Tables

AppServiceHTTPLogs W3CIISLog

False Positives

  • Security scanners/pentest tools legitimately testing the endpoint
  • Developers debugging filter query construction with SQL-like strings
  • Automated vulnerability scanning as part of authorized assessments

Sigma rule & cross-platform mapping

The detection logic for NocoBase myInAppChannels:list SQL Injection to PostgreSQL Superuser RCE (CVE-2026-52887) (CVE-2026-52887) above is provided in a vendor-neutral form so you can deploy it on any SIEM. The same logic is shipped here as native KQL (Microsoft Sentinel / Defender), SPL (Splunk), Elastic (Elastic Security (EQL)), QRadar (IBM QRadar (AQL)), Sumo (Sumo Logic CSE), YARA-L (Google Chronicle / SecOps), LogScale (CrowdStrike LogScale (CQL)) queries. In Sigma terms, this detection targets the following logsource:

logsource:
  category: network_connection
  product: windows

Browse the community-maintained Sigma rules for this technique:


Testing Methodology

Validate this detection against 3 adversary techniques from Atomic Red Team. Each test below lists the behaviour to exercise and the telemetry you should expect to see. Executable commands and cleanup steps are available with Pro.

  1. Test 1Simulate SQL Injection Probe Against myInAppChannels:list

    Expected signal: HTTP access log entry showing GET /api/myInAppChannels:list with URL-encoded filter parameter containing 'UNION SELECT'.

  2. Test 2Simulate PostgreSQL COPY PROGRAM Injection Payload

    Expected signal: HTTP log entry with decoded filter containing 'COPY' and 'PROGRAM'; if unpatched and role is superuser, PostgreSQL log shows the executed COPY PROGRAM statement and spawned OS process.

  3. Test 3Validate Patched Version Rejects Injection Payload

    Expected signal: HTTP access log entry showing the same injection attempt, but application logs indicate a validation error (400 Bad Request) rather than a raw query execution.

Unlock playbooks & atomic tests with Pro

Get the full detection package for CVE-2026-52887 — response playbook and atomic red team tests, plus investigation guidance and hunting queries.

df00tech Pro — £29/user/month

Response PlaybookInvestigation GuideHunting QueriesAtomic Red Team TestsTuning Guidance

Related Detections