NewDynamics 365 Guides and Remote Assist retire on December 31. What to do this quarter.

How we audit our own stack

We reviewed our customer portal the way we would review yours: from the outside first, then signed in, then under pressure. Six findings, all fixed, five now guarded by tests that run before every release.

We ask clients to let us look hard at their systems. It seemed fair to show what that looks like on ours first.

The system is our customer portal: support requests with attachments, beta programs, invoices and the staff tools behind them. It is a static site on Azure Static Web Apps in front of a .NET 10 API, with Azure Table and Blob storage. It is the same shape we propose for many modernized business apps, which is why it makes a useful example.

How the review ran

From the outside, read-only. Anonymous requests against production only, the kind anyone on the internet can make: every public page and route, redirects, error pages, the public forms and what each response gives away. No accounts, no writes, nothing that could disturb a real customer.

Signed in, on an isolated copy. Everything that needs an account ran against a separate local copy with its own storage and synthetic users. Customers, staff, a user from another organisation, a user with no access at all. Every protected handler was called as each of them, to check that each one decides for itself who may do what, rather than trusting the page that called it.

Under pressure. Oversized and malformed request bodies, slow chunked uploads, crafted return links on sign-in, forged origin headers, and many uploads racing for the same limit at the same moment.

The supply chain. An advisory audit of every npm and NuGet package, and a scan of the repository and the deployment output for anything that looks like a credential.

What we found

No critical or high-severity issue was confirmed within the scope of the review. Six things needed fixing:

  1. Internal notes leaked through metadata. Staff notes on a support request were hidden from customers, but they still changed the counts and timestamps a customer could see. Customer views now derive only from what the customer is allowed to see.
  2. Public forms parsed bodies before checking their size. A very large submission could make the API allocate memory before validation. The contact and sign-up forms now refuse anything over a fixed limit before parsing begins.
  3. The cross-site check could be widened by request headers. The list of trusted origins is now taken only from configuration.
  4. Concurrent uploads could share one slot. Several uploads arriving together could each pass the five-file limit. The count is now enforced by a single storage transaction.
  5. Sign-in return links tolerated unusual encodings. No working exploit was found, but the check now rejects anything that is not a plain path on this site.
  6. A development server listened on every network interface. Local tools now bind to the machine itself only.

All six were fixed. Five now have tests that run before every release. The sixth was a setting on developer machines, which no release test can see.

What keeps it fixed

A one-off review decays the day after it ends. What matters is what runs before every deploy. Ours runs, in order, and a failure stops the release:

  • A regression suite against the storage emulator, including sixteen writers racing for the five-file upload limit.
  • An end-to-end suite of API security and smoke checks, 177 at the review and more since, run against a running copy of the API, covering sign-in boundaries, size limits and the flows customers use.
  • Routing, redirect and rendering checks against the production configuration.
  • A check of the deployment output for internal documents before anything is uploaded.

Two parts of the review are not in that pipeline yet: the sweep of 257 authorization checks across 58 protected handlers, and the dependency advisory audit, which found no known vulnerabilities in October. Moving both into the pipeline, so a vulnerable package or a missing permission check stops a release on its own, is the obvious next step. It is also exactly the advice we give clients.

That is the part we most want clients to take away. The findings list will be different for every system. The habit of turning each finding into a test that runs on every release is the same.

The limits

This was a bounded review by the people who built the system, not a guarantee and not a certificate. When a client needs independent assurance, we bring in a penetration-testing partner and fix what they find. A review like this one is what you do before that, so the outside tester spends their time on hard problems instead of easy ones.

The full architecture and results are in the customer portal case study, and the findings table is on our security practice page. If you would like the same look at a system you run, it is the core of the two-week assessment.

Follow alongGet new posts by email.