← All articlesWeb security

How to Separate Management Endpoints from a Public API and Verify Network Access

Management endpoints in a web product require a separate decision about where requests may originate and which actions the caller may perform. Start with an inventory of known routes and establish two independent conditions: the request comes from a permitted network, and the user is authorized to perform the operation. Below is a process for separating management and public APIs, followed by an original verification plan for an entirely fictional, team-owned test environment with synthetic data.

Identify management routes and define the access boundary

OWASP recommends avoiding exposing management endpoints to the internet. To apply this recommendation to your product, first inventory known management routes. For each one, record its purpose, HTTP method, host, port, permitted network sources, and corresponding firewall or access control list (ACL) rule. Mark public routes separately: the team should explicitly decide the purpose of each entry point.

Compare the inventory with your own routing and deployment configuration. This is an editorially proposed check, not an official OWASP procedure. Its outcome is an agreed list of management operations and the addresses where they are exposed, together with a boundary between the permitted network and external sources. Discovering unknown services and enumerating addresses are outside this work's scope.

Separate exposure and define network rules

For management endpoints, OWASP recommends separate HTTP ports or hosts, preferably a separate network interface and a restricted subnet. Access should be restricted through firewall rules or ACLs. The separation plan therefore needs both a deployment layout and a specific rule defining permitted network sources for each management route.

Consider an entirely fictional test environment for a product called “Mayak,” owned by the testing team. Its public API and management host are separate, and its management interface is deployed in a dedicated subnet. The known operation POST /management/test-marker changes only a synthetic test-run marker. The team records its own test environment addresses, the permitted network, and an external control environment it owns in advance. All subsequent checks apply exclusively to this example.

Retain HTTPS and authorization checks on every endpoint

The network boundary determines where a request may originate. Authentication and server-side authorization remain separate mandatory conditions. Non-public REST services must check access at every endpoint, including the caller's permission to use a particular HTTP method for the relevant action and resource. Secure REST services must expose endpoints only over HTTPS.

For the fictional environment, prepare one user with management permission and another without it. A separate proposed check from the permitted network includes a request without authentication and a request by the user without the required permission. In both cases, the operation must be rejected and the synthetic marker must remain unchanged. The user with the required permission must successfully complete the positive control. MFA configuration, access to other users' objects, and changes to session lifecycles are not covered here.

Confirm that the operation succeeds from the permitted network

Begin network verification with a positive control. In the fictional environment, perform the agreed operation from the dedicated permitted network over HTTPS, using valid test credentials and the required permissions. Before the request, record the synthetic marker's initial value and its expected new value. After the request, check the operation's actual outcome using the method provided in the test environment.

The acceptance criterion is the expected change to the test marker, confirmed by observing its state. A successful HTTP response alone is insufficient: it does not by itself prove that the change was accepted. Record the network source, known destination address, method, test time, and available evidence of the request passing through. This original test shows that the agreed operation works under the permitted conditions.

Verify rejection from your own external environment

Next, from your own external control environment, repeat the same agreed operation with the same valid test permissions at every previously known address where it is exposed. Use your own HTTP client outside a browser. The acceptance criterion is that the network rule prevents the request from reaching the management operation; the synthetic marker remains unchanged after the attempt. Unchanged state alone does not establish why the request failed.

Define the expected behavior of the selected firewall or ACL in advance. Compare observations with its configuration and available logs. No universal HTTP status code is specified for this control. An application error, authentication failure, or isolated timeout does not independently confirm network isolation. This is an original negative-control design: its conclusion is limited to the routes, sources, and configuration tested.

Prioritize fixes and document limitations

If the external control reaches the management operation, prioritize correcting how it is exposed and its firewall or ACL rules, then repeat both network controls. If the operation succeeds from the permitted network without authentication or the required permission, fix the server-side access check at the relevant endpoint. For each result, record the expected behavior, observation, and specific fix so that the acceptance criteria remain verifiable.

CORS tells the browser which origins may make JavaScript calls to a REST service. Changing CORS headers or seeing a browser message therefore does not confirm that the network isolation criterion has been met. The verification result also provides no statistical guarantee of security for the entire product: it describes only the agreed conditions in your own test environment. For help reviewing management routes and prioritizing fixes, you can use a free audit of your website or the web portion of your product.

Sources and documentation

  1. REST Security Cheat Sheet
  2. Session Management Cheat Sheet
CheckMyApp

Check your application’s security.

Enter your web application address and email. Get a free preliminary report and choose the depth of analysis.

Check for free