Every request was signed, but not the part that says what it does

A care app signed requests but not the URL or body. Four critical findings in one day, and a fix sized at under 20 lines per policy.
Case study

Every request was signed, but not the part that says what it does

Capture one set of headers and you could replay it against any endpoint for about 60 seconds.

For CTOs and CISOs at care and health-software companies that rely on a custom security control.

A care-sector web app (a Vue front end, a Laravel API and a separate identity provider) signed every request with a custom header. We had one working day on staging and two captured sessions of different roles, and found four critical issues.

  • Healthcare and social care software
  • Web app with a separate identity provider
  • Compliance
  • Reputation
  • Money
Hands typing on a white keyboard beside an open laptop at a BetterQA desk
The numbers
4 criticalfindings in one working day, with a fix sized at under 20 lines per policy
4critical findings in one working day
11confirmed findings in total
18regression test cases handed over
Under 20lines per policy: the fix, as sized
At stake

What was at risk

Compliance

A password change and a staff directory reachable with the wrong role

A role check was missing on a password-change endpoint, confirmed live, and a regular role could read a staff directory. Chained, they make one account-takeover story.

Reputation

A control that looked protective

The custom signature covered only a nonce and a timestamp, not the URL or the body, so a captured header set could be replayed against any endpoint for about 60 seconds.

Money

Cheap to fix, costly to miss

The fix was sized at under 20 lines per policy. Left open, the same gaps could be an account takeover in a care setting.

Rules

Standards and rules in play

  • Request signing as a controlThe custom signing covered a nonce and a timestamp. It did not cover the URL or the body, so it proved freshness, not intent.
  • Role-based accessThe permission system correctly denied another endpoint, so the critical findings were route-coverage gaps, not a missing model.

Care software holds special-category personal data under GDPR, and broken access control heads the OWASP Top 10. This page describes testing, not a certification of the client.

Method

How we tested it

Test level
System testing, black-box, on staging, using two captured sessions of different roles in one working day.
Test types
Security testing and functional access-control testing; 18 regression test cases handed over.
Test basis
Two captured sessions of different roles and the signing scheme.
  • TechniqueEquivalence partitioningTwo roles were run against the same routes: what one role may do and what the other may not.
  • TechniqueError guessingReplaying a captured header set against other endpoints, and calling role-restricted routes with a lower role.

Terms as in the ISTQB CTFL 4.0 glossary.

Findings

What we found, and what it costs

Finding

A captured request could be replayed against any endpoint for about a minute

What it costs youAnyone who captures a header set can act as that user on routes the signature never covered.

Finding

No role check on a password-change endpoint

What it costs youA user without the right role could change a password. Confirmed live.

Finding

A staff directory readable by a regular role

What it costs youChained with the other two, it gives an attacker the names to aim at and the route to act on them.

11 findings were confirmed in total, four of them critical, and 18 regression test cases were handed over so the fixes stay fixed.

Outcome

What changed

The client received the findings, one chained takeover story and 18 regression test cases, with the fix sized at under 20 lines per policy.

What this means for you: If your app signs requests, ask what the signature covers. A signature over a timestamp proves freshness, not intent.
Check

What to check in your own product

  1. Try a captured header set against a different endpoint.Anyone who captures a header set can act as that user on routes the signature never covered.
  2. Check a password-change endpoint enforces a role check.A user without the right role could change a password.
  3. Run two roles against the same routes and compare what each may do.The permission system correctly denied another endpoint, so the critical findings were route-coverage gaps, not a missing model.

What does your request signature actually cover?

We test whether a control protects what you think it protects. The first month is a trial.

Talk to our team
Share the Post: