Skip to content
Grey box

Internal portal: what can a regular employee reach?

Scenario: A manufacturing group of about 4,000 staff, with three internal apps for HR, finance and ticketing, used by five internal roles.

  • Manufacturing
  • 16 days
  • Starting point: user accounts

Example engagement, illustrative: a composite scenario based on how we test. The organization, domains and findings are fictional.

Scenario snapshot

Industry
Manufacturing
Duration
16 days
Scope
3 internal apps
Findings
9
Starting point
User accounts

The question: If one employee account is compromised, or one employee turns malicious, how much can they reach?

AI-powered, expert-verified

How WhyXpose AI works on this test

AI agents mapped routes, APIs and roles and triaged the results. Pentesters tested every role against every function by hand and verified each bypass.

  • Verified under the Cyber Verification Programs for Anthropic Claude and OpenAI Codex
  • Self-hosted open-source AI models
See the AI engine
  1. AI-guided recon
  2. AI scanning
  3. AI triage
  4. Expert verification
  5. AI-drafted report
Timeline

The engagement, phase by phase

16 days. Each role account was assigned in the WhyXpose report, so every finding names the role used.

  1. PHASE 01 · 1 DAY

    Kickoff

    Accounts and role map

  2. PHASE 02 · 2 DAYS

    Mapping

    Routes, APIs, roles

  3. PHASE 03 · 8 DAYS

    Testing

    Access control, data, sessions

  4. PHASE 04 · 2 DAYS

    Validate

    Reproduce, score

  5. PHASE 05 · 1 DAY

    Report

    Findings, fixes

  6. PHASE 06 · 2 DAYS

    Retest

    Verify the fixes

16 days in this scenario, from kickoff to retest.

Findings

9 findings, scored with CVSS 3.1

AI triage filtered out false positives, then a pentester reproduced and scored every finding before it was reported. Status shows where each one stood after the retest.

Findings with ID, severity, CVSS 3.1 score, title and status after retest
ID Severity CVSS Finding After retest
HR-01 High 8.8 Standard user can call admin APIs and grant themselves roles Resolved
HR-02 High 7.5 Legacy /api/v1 endpoints accept requests without authentication Resolved
HR-03 Medium 6.5 Payroll records readable across departments (IDOR) Resolved
HR-04 Medium 5.4 Stored XSS in support-ticket comments Resolved
HR-05 Medium 4.3 Report exports contain personal data not shown on screen Retesting
HR-06 Medium 4.3 Application logs record session tokens Resolved
HR-07 Low 3.7 Weak password policy and no lockout Accepted
HR-08 Low 3.7 Internal hostnames disclosed in client-side scripts Resolved
HR-09 Info – Role changes are not written to the audit log Accepted
Spotlight

The findings that mattered most

  • HR-01 High · 8.8

    Standard user can call admin APIs and grant themselves roles

    CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

    What we found
    The admin menu was hidden from standard users in the interface, but the underlying role endpoint only checked that the caller was logged in.
    Impact
    Any employee could become an administrator and read or change HR, payroll and leave data for the whole group.
    Fix
    Enforce authorization on the server for every function, deny by default, and test each endpoint against each role.
  • HR-02 High · 7.5

    Legacy /api/v1 endpoints accept requests without authentication

    CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

    What we found
    Reading the application’s JavaScript revealed an older API version that had been replaced in the interface but never switched off.
    Impact
    Anyone on the corporate network, including a compromised guest device, could dump the employee directory.
    Fix
    Retire the v1 API. Where it must stay, put it behind the same authentication gateway as v2.
  • HR-03 Medium · 6.5

    Payroll records readable across departments (IDOR)

    CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N

    What we found
    A manager role is meant to see only their own team, but the payroll endpoint filtered by role and not by reporting line.
    Impact
    Salary data leaks across departments, with legal, morale and data-protection consequences.
    Fix
    Authorize by relationship (reporting line or department), not only by role, and log every payroll access.
Access control

The access-control matrix we tested

Expected behavior versus what we found, for four of the five roles. Every bypass is a finding.

What each role could do, compared with what it should be able to do
Function EmployeeTeam leadHRAdmin
View own payslip AllowedAllowedAllowedAllowed
View other teams’ payroll DeniedBypassAllowedAllowed
Change a user’s role BypassBypassDeniedAllowed
Read the old v1 directory API BypassBypassBypassBypass
Techniques

How we tested

  • Role mapping
  • Access matrix
  • JavaScript and API review
  • Object authorization
  • Session review
  • CVSS 3.1 scoring

New to this approach? Read about grey-box penetration testing.

Scenario outcome

What changed after the retest

The root cause was authorization checked in the interface but not on the server. The organization added a central permission layer, retired the legacy API and now runs a quarterly grey-box retest, with the role matrix kept as a checklist in WhyXpose.

Most attack paths cross more than one target. Test them together under one scope and one report.

  • Hands-on testing of your web apps for broken access control, injection, session flaws and business-logic abuse.

  • API penetration testing

    Every endpoint tested for object and function level authorization, token handling, data exposure and rate limits.

  • One place for every finding: status, CVSS 3.1, proof of concept, comments, retests and one-click PDF reports.

Find out what one employee account can reach