CVE-2026-48692: FastNetMon's gRPC API Listens Without Authentication | Lorikeet Security Skip to main content
Back to Blog

CVE-2026-48692: FastNetMon's gRPC API Listens Without Authentication

Lorikeet Security Team May 23, 2026 9 min read
CVSS 8.1 -- High

Unauthenticated gRPC API Allows Ban/Unban and Notify-Script Execution

CVE
CVE-2026-48692
CVSS
8.1 (High)
CWE
CWE-306 (Missing Authentication for Critical Function)
Affected
FastNetMon Community Edition <= 1.2.9
Component
src/fastnetmon.cpp line 477 (server init); src/api.cpp (all RPC methods)
Attack Vector
Local (network-adjacent if bind address is changed to 0.0.0.0)
Discovered by
Lorikeet Security

FastNetMon ships with a gRPC management API. It runs on port 50052 and exposes RPC methods for triggering and clearing bans (ExecuteBan / ExecuteUnBan), listing the current ban list (GetBanlist), and reading traffic counters (GetTotalTrafficCounters). These are the security-critical control-plane operations of the mitigation system: ExecuteBan announces BGP blackhole routes that send specified traffic to a discard interface; ExecuteUnBan withdraws those routes; both can trigger the configured notify script via popen().

The server is initialized with grpc::InsecureServerCredentials(). The source code at line 476 of src/fastnetmon.cpp contains a comment that, as documentation of intent, is extraordinarily clear:

// Listen on the given address without any authentication mechanism.
builder.AddListeningPort(server_address, grpc::InsecureServerCredentials());

None of the RPC methods in src/api.cpp add their own credential checks. There is no TLS termination, no API token, no client certificate, no role-based authorization separating read-only counter queries from destructive ban/unban operations.

Disclosure status: Lorikeet Security notified FastNetMon LTD on April 25, 2026. CVE-2026-48692 was assigned by MITRE. No vendor response or fix as of May 23, 2026.


What an attacker can do with the API

The attack surface, assuming the attacker can connect to the gRPC port:


Reachability

The default bind address is 127.0.0.1:50052, which restricts access to processes running on the same host. The CVSS attack vector is "Local" under that default, because the attacker needs to be on the FastNetMon host to reach the API.

However, the bind address is a configurable option (fastnetmon_api_host in fastnetmon.conf). Operators who want to manage FastNetMon remotely — via Ansible, a custom dashboard, or a centralized orchestration system — change this to a management-network IP or to 0.0.0.0. The moment that bind address moves off localhost, the attack vector becomes network-adjacent or fully remote, and the same CVE becomes effectively CVSS 9.8 / Critical.

The "Local" rating in the CVSS score reflects the default configuration, but the rating is brittle. Any operator who has changed the bind address (and many have, for legitimate management reasons) is exposed at a much higher risk level than the score suggests.

Local-only is still serious

Even under the default localhost bind, "local" does not mean safe. Any of the following give an attacker the ability to invoke the API:

Local-no-auth APIs are a routine source of "low-privilege user to root" escalations because they typically expose privileged operations that the daemon runs as root, without any check on who is asking.


The vulnerable code

// src/fastnetmon.cpp, around line 477
std::string server_address("127.0.0.1:50052");
ServerBuilder builder;
// Listen on the given address without any authentication mechanism.
builder.AddListeningPort(server_address, grpc::InsecureServerCredentials());
builder.RegisterService(&api_service);
std::unique_ptr<Server> server(builder.BuildAndStart());

The comment is unambiguous about the design intent. There is no TODO that says "add auth later." There is no #ifdef wrapping the insecure credentials in an "INSECURE_DEV_MODE" guard. The API is, by design, listening without authentication. That design needs to change.


How a fix should look

// 1. Use mutual TLS with client certificate validation.
auto cert_chain = read_file("/etc/fastnetmon/server.crt");
auto private_key = read_file("/etc/fastnetmon/server.key");
auto ca_cert = read_file("/etc/fastnetmon/ca.crt");

grpc::SslServerCredentialsOptions ssl_options(
    GRPC_SSL_REQUEST_AND_REQUIRE_CLIENT_CERTIFICATE_AND_VERIFY);
ssl_options.pem_root_certs = ca_cert;
ssl_options.pem_key_cert_pairs.push_back({private_key, cert_chain});

builder.AddListeningPort(
    server_address,
    grpc::SslServerCredentials(ssl_options));

// 2. Add an authentication interceptor that maps client cert subject to a role.
builder.RegisterService(&api_service);

// 3. In each RPC handler, check the role against the operation:
Status ExecuteBan(ServerContext* ctx, const BanRequest* req, BanResponse* resp) override {
    if (!require_role(ctx, Role::OPERATOR)) {
        return Status(StatusCode::PERMISSION_DENIED, "ExecuteBan requires OPERATOR role");
    }
    // ... existing logic ...
}

Status GetTotalTrafficCounters(ServerContext* ctx,
                                const Empty* req,
                                CountersResponse* resp) override {
    if (!require_role(ctx, Role::READ_ONLY)) {
        return Status(StatusCode::PERMISSION_DENIED, "Read role required");
    }
    // ... existing logic ...
}

Three layers: TLS for transport security, client certificates for caller identity, role-based access control to separate destructive operations (ban/unban) from monitoring queries (counters/banlist). The gRPC library supports all three natively; the change is a few hundred lines plus configuration.

For deployments that want a lighter solution: a static API token in an Authorization metadata field, validated by a custom server interceptor, would close the unauthenticated-access gap at a fraction of the implementation cost. It's not as good as mTLS — tokens leak more easily — but it's vastly better than no auth at all.


Compensating controls


The pattern: "internal" APIs are not safe APIs

This bug is part of a recurring pattern in infrastructure software: APIs designed for "internal" use are routinely shipped with no authentication, because the assumption is that whoever can reach them is already authorized. The assumption is wrong for three reasons:

  1. Local processes are not all trustworthy. A shared host runs many processes, some of which the operator did not write, and some of which may be compromised or buggy. Local APIs are routinely abused through other-process channels (SSRF in web apps on the same host, command injection in unrelated services, malicious unprivileged users).
  2. "Internal" boundaries move. The same API that started life as localhost-only gets exposed to a management network when an operator needs to manage it remotely. Then to a VPN. Then accidentally to the internet when someone misconfigures a firewall. The auth gap doesn't close itself when the boundary expands.
  3. Defense in depth matters. Even if every other security control is in place, an unauthenticated API is one missing layer in the defense. The cost of mTLS in a control-plane API is small. The benefit is structural: even if everything else is compromised, the attacker still has to forge a certificate to invoke privileged operations.

For projects that build infrastructure software: treat every control-plane API as a public API. Add authentication from day one. Don't ship with InsecureServerCredentials as the default, even for development; ship with a generated self-signed cert and clear instructions for how to roll out real certs in production. The cost of doing this right at the start is much smaller than the cost of changing it after a CVE.


Disclosure timeline

DateEvent
2026-04-25Vulnerability identified during Lorikeet Security source code audit of FastNetMon Community Edition 1.2.9
2026-04-25CVE ID requested from MITRE
2026-04-25Vendor (Pavel Odintsov / FastNetMon LTD) notified at the contact published in SECURITY.md
2026-05-22CVE-2026-48692 assigned by MITRE
TBDVendor response
TBDFix release
2026-05-23Lorikeet Security publishes responsible disclosure report

Full Responsible Disclosure Report (PDF)

Complete writeup of all 16 FastNetMon Community Edition vulnerabilities Lorikeet Security identified, including vulnerable-code excerpts, impact analysis, and remediation guidance for each CVE.

Download PDF

Auditing the network infrastructure your business depends on

Lorikeet Security finds the parser bugs, protocol confusion, and unauthenticated-control-plane issues that move your DDoS detector, your BGP speaker, and your edge devices from "running" to "exploitable." Source code review, fuzz harness development, and adversarial protocol testing.

-- views
Link copied!
Lorikeet Security

Lorikeet Security Team

Penetration Testing & Cybersecurity Consulting

Lorikeet Security helps modern engineering teams ship safer software. Our work spans web applications, APIs, cloud infrastructure, and AI-generated codebases — and everything we publish here comes from patterns we see in real client engagements.

Lory waving

Hi, I'm Lory! Need help finding the right service? Click to chat!