Sample Penetration Testing Report
This public demonstration uses a fictional target environment (*.meridianfin.example) and illustrative scope figures to show the exact technical format delivered inside PathRaven's Customer Portal: reproducible sanitized HTTP evidence, post-fix retest diffs, complete CVSS 3.1 vectors and rationale, and reviewed engineering fixes.
Fictional composite target (*.meridianfin.example) with illustrative scope counts built to demonstrate PathRaven's report structure, CVSS rationale, sanitized evidence pairs, and engineering fixes.
Real vulnerabilities uncovered across authorized bug bounty programs before launch—shared strictly at a high level with sensitive workspace details and deep links redacted.
View redacted bug bounty disclosuresCommercial penetration testing engagements published only with explicit written authorization from the customer. We never present bug bounty research as a paid client case study.
Meridian Financial Cloud (Fictional Demonstration Environment)
Scope: *.meridianfin.example (Illustrative Web, Edge CDN & API Surface)
Product Demonstration Notice: Meridian Financial Cloud (*.meridianfin.example) is a fictional composite target and all scope counts below are illustrative. This demonstration shows PathRaven's actual report structure, CVSS 3.1 scoring rationale, sanitized HTTP evidence format, and engineering remediation standard. Real vulnerabilities discovered during authorized research are shared separately under disclosure terms or during technical walkthroughs.
Severity & Coverage Scope: Production customer reports include all confirmed severities (Critical, High, Medium, Low, and Informational), unconfirmed observations requiring follow-up, and explicit notes on any blocked or untested areas. This public demonstration focuses on five representative Critical and High scenarios to keep the walkthrough concise.
Unauthenticated SSRF Reaches Internal Loopback Job Queue Missing Authentication
Independently confirmed the outbound URL validation gap and internal loopback broker reachability after automated detection. Verified that non-destructive canary enqueueing succeeded without modifying real application jobs, and calibrated CVSS strictly to confirmed queue write and internal reachability rather than unverified downstream compromise.
Confirmed that an unauthenticated caller can supply a loopback destination to the webhook preview endpoint, bypass egress filtering, reach an internal worker broker listening on localhost without authentication, and confirm benign canary acceptance.
Not exploited during safe testing: because the internal broker lacks authentication and accepts structured job messages processed by background workers, an unconstrained attacker could attempt unauthorized task execution or access credentials available to the worker runtime.
The webhook preview handler accepts caller-supplied URLs without restricting URI schemes or destination ports, fails to re-validate redirects, and does not bind the outbound socket to a validated public IP address. Separately, the internal background broker listens on loopback without ACL authentication.
Meridian Financial Cloud (Fictional Demonstration Environment)
Scope: *.meridianfin.example (Illustrative Web, Edge CDN & API Surface)
Product Demonstration Notice: Meridian Financial Cloud (*.meridianfin.example) is a fictional composite target and all scope counts below are illustrative. This demonstration shows PathRaven's actual report structure, CVSS 3.1 scoring rationale, sanitized HTTP evidence format, and engineering remediation standard. Real vulnerabilities discovered during authorized research are shared separately under disclosure terms or during technical walkthroughs.
Unauthenticated SSRF Reaches Internal Loopback Job Queue Missing Authentication
Confirmed During Testing: Confirmed that an unauthenticated caller can supply a loopback destination to the webhook preview endpoint, bypass egress filtering, reach an internal worker broker listening on localhost without authentication, and confirm benign canary acceptance.
Potential Downstream Risk: Not exploited during safe testing: because the internal broker lacks authentication and accepts structured job messages processed by background workers, an unconstrained attacker could attempt unauthorized task execution or access credentials available to the worker runtime.
Technical Root Cause: The webhook preview handler accepts caller-supplied URLs without restricting URI schemes or destination ports, fails to re-validate redirects, and does not bind the outbound socket to a validated public IP address. Separately, the internal background broker listens on loopback without ACL authentication.
Security Engineer Review (Security Engineer · VPInfoSec): Independently confirmed the outbound URL validation gap and internal loopback broker reachability after automated detection. Verified that non-destructive canary enqueueing succeeded without modifying real application jobs, and calibrated CVSS strictly to confirmed queue write and internal reachability rather than unverified downstream compromise.
Sanitized HTTP Evidence
POST /api/v2/integrations/webhook-preview HTTP/1.1
Host: helpdesk.meridianfin.example
Content-Type: application/json
{"targetUrl": "https://callback.demo.invalid/pr-control-01"}HTTP/1.1 200 OK
Content-Type: application/json
{"status": "delivered", "httpCode": 200, "latencyMs": 84}Observation: Confirmed unauthenticated server-side fetch to an external test receiver.
POST /api/v2/integrations/webhook-preview HTTP/1.1
Host: helpdesk.meridianfin.example
Content-Type: application/json
{"targetUrl": "http://127.0.0.1:6379/[REDACTED_CANARY_PROBE]"}HTTP/1.1 200 OK
Content-Type: application/json
{"status": "delivered", "httpCode": 200, "preview": "[REDACTED_INTERNAL_BROKER_BANNER]"}Observation: Server connected to loopback port 6379 without blocking private IPs, HTTP scheme, or non-443 ports.
Prioritized Remediation & Reference Fix (typescript)
- Enforce an allowlist of HTTPS destinations on ports 443/8443 only, reject automatic redirects (or re-validate every hop), and pin the TCP connection directly to the validated public IP address to prevent DNS rebinding.
- Require authenticated administrative sessions and CSRF protection on all webhook preview endpoints.
- Enable mandatory ACL/password authentication on the internal job broker and enforce strict JSON schema serialization for worker messages.
import dns from "node:dns/promises";
import net from "node:net";
import { Agent, fetch } from "undici";
const ALLOWED_PORTS = new Set(["", "443", "8443"]);
function isBlockedIP(ip: string): boolean {
const normalized = ip.toLowerCase().startsWith("::ffff:") ? ip.slice(7) : ip.toLowerCase();
if (net.isIPv4(normalized)) {
const [a, b] = normalized.split(".").map(Number);
return (
a === 0 || a === 10 || a === 127 ||
(a === 100 && b >= 64 && b <= 127) || // CGNAT
(a === 169 && b === 254) || // Link-local / metadata
(a === 172 && b >= 16 && b <= 31) || // RFC 1918
(a === 192 && b === 168) || // RFC 1918
a >= 224 // Multicast / reserved
);
}
return normalized === "::1" || normalized === "::" ||
normalized.startsWith("fc") || normalized.startsWith("fd") ||
normalized.startsWith("fe80:");
}
export async function safePinnedFetch(inputUrl: string): Promise<Response> {
const parsed = new URL(inputUrl);
if (parsed.protocol !== "https:") throw new Error("Only HTTPS URLs are permitted");
if (!ALLOWED_PORTS.has(parsed.port)) throw new Error("Destination port not allowed");
if (parsed.username || parsed.password) throw new Error("URL credentials not allowed");
const records = await dns.lookup(parsed.hostname, { all: true, verbatim: true });
if (records.length === 0) throw new Error("DNS resolution failed");
for (const r of records) {
if (isBlockedIP(r.address)) throw new Error("Blocked non-public destination IP");
}
// Pin the outbound TCP socket to the exact validated IP to prevent DNS rebinding
const pinned = records[0];
const dispatcher = new Agent({
connect: {
lookup: (_host, _opts, cb) => cb(null, [{ address: pinned.address, family: pinned.family }]),
},
});
try {
return await fetch(parsed, {
method: "POST",
redirect: "error", // Reject redirects rather than following unvalidated hops
dispatcher,
signal: AbortSignal.timeout(8_000),
});
} finally {
await dispatcher.close();
}
}Edge CDN Caches Authenticated Token Endpoint on Static Suffixes and Serves Credentials Anonymously
Confirmed During Testing: Demonstrated using two isolated test sessions: an authenticated request to a `.css`-suffixed token path was cached at the CDN edge (`CF-Cache-Status: MISS` followed by `HIT`) and returned verbatim to an unauthenticated request without cookies. The returned token authenticated successfully against the test account's `/api/v1/me` profile endpoint.
Potential Downstream Risk: If an authenticated customer visits a crafted link on the affected portal, an unauthenticated third party requesting the same URL during the cache TTL could obtain that customer's active bearer token and perform actions within that session's permissions.
Technical Root Cause: The origin router falls back to `/s/account/session-token` when trailing path segments are appended, returning an authenticated JSON payload with missing `no-store` directives. Concurrently, an extension-based CDN rule caches `*.css` responses without keying on `Cookie` or `Authorization`.
Security Engineer Review (Security Engineer · VPInfoSec): Reproduced across two isolated browser/HTTP sessions from separate network exits using dedicated test accounts. Verified that appending a static suffix causes the CDN to omit session cookies from the cache key and return User A's cached token response to an unauthenticated request.
Sanitized HTTP Evidence
GET /s/account/session-token/pr-demo-check.css HTTP/1.1 Host: portal.meridianfin.example Cookie: session=[REDACTED_TEST_USER_A]
HTTP/1.1 200 OK
Content-Type: application/json
Cache-Control: public, max-age=300
CF-Cache-Status: MISS
{"userId": "usr_test_a", "accessToken": "[REDACTED_BEARER_TOKEN_A]"}Observation: Origin ignored the trailing `.css` segment and returned authenticated token data with cacheable headers.
GET /s/account/session-token/pr-demo-check.css HTTP/1.1 Host: portal.meridianfin.example
HTTP/1.1 200 OK
Content-Type: application/json
Age: 4
CF-Cache-Status: HIT
{"userId": "usr_test_a", "accessToken": "[REDACTED_BEARER_TOKEN_A]"}Observation: Edge cache served Test User A's bearer token to an unauthenticated request.
Prioritized Remediation & Reference Fix (nginx)
- Disable extension-based CDN caching rules across authenticated routes (`/s/*`, `/api/*`, `/account/*`) and configure CDN cache bypass whenever session cookies or `Authorization` headers are present.
- Return `Cache-Control: no-store, private` and `CDN-Cache-Control: no-store` on all authenticated responses.
- Enforce exact path matching on the origin so trailing segments under `/s/account/session-token/` return `404 Not Found`.
location = /s/account/session-token {
add_header Cache-Control "no-store, no-cache, must-revalidate, private" always;
add_header CDN-Cache-Control "no-store" always;
add_header Vary "Cookie, Authorization" always;
proxy_pass http://identity_upstream;
}
# Reject trailing path segments explicitly
location ^~ /s/account/session-token/ {
return 404;
}Shared Symmetric JWT Signing Key Across Companion Origin Permits Primary API Authentication Bypass
Confirmed During Testing: Demonstrated on dedicated test account identifiers: an HS256 token minted by `sandbox.meridianfin.example` carrying a test account `sub` claim was accepted by `api.meridianfin.example/v1/portfolio` (`HTTP 200`), returning that test account's private portfolio metadata without password or MFA verification.
Potential Downstream Risk: Any unauthenticated party who knows or discovers a valid user or workspace identifier could mint a token accepted by the primary API, bypassing login and MFA controls for affected accounts.
Technical Root Cause: Multiple services shared the same symmetric `JWT_SECRET` signing key, and the primary API middleware verified only the HMAC signature and `exp` timestamp without enforcing expected `iss` (issuer) and `aud` (audience) claims.
Security Engineer Review (Security Engineer · VPInfoSec): Manually verified token claims (`iss`, `aud`, `sub`) and cross-origin acceptance. Confirmed that the low-trust companion service and primary API share an identical HS256 secret and that the primary API does not validate `iss` or `aud`.
Sanitized HTTP Evidence
POST /auth/guest-token HTTP/1.1
Host: sandbox.meridianfin.example
Content-Type: application/json
{"subject": "usr_test_a"}HTTP/1.1 200 OK
Content-Type: application/json
{"token": "eyJhbGciOiJIUzI1NiJ9.[REDACTED_PAYLOAD_ISS_SANDBOX].[REDACTED_SIG]"}Observation: Companion origin signed a token with `iss: sandbox.meridianfin.example` and `sub: usr_test_a`.
GET /v1/portfolio HTTP/1.1 Host: api.meridianfin.example Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.[REDACTED_PAYLOAD_ISS_SANDBOX].[REDACTED_SIG]
HTTP/1.1 200 OK
Content-Type: application/json
{"accountId": "usr_test_a", "organization": "test-org-alpha", "holdings": "[REDACTED]"}Observation: Primary API accepted the companion-signed token without validating `iss` or `aud`.
Prioritized Remediation & Reference Fix (go)
- Rotate all shared symmetric JWT secrets immediately and issue distinct asymmetric signing keys (ES256 or RS256) per trust boundary.
- Enforce strict allowlists for `alg`, `iss`, and `aud` in the primary API authentication middleware.
- Revoke active sessions issued under the shared key and monitor for tokens presenting unexpected issuer claims.
claims, err := jwt.Verify(tokenString, prodPublicKey,
jwt.WithValidMethods([]string{"ES256"}),
jwt.WithIssuer("https://auth.meridianfin.example"),
jwt.WithAudience("https://api.meridianfin.example"),
jwt.WithExpirationRequired(),
)
if err != nil {
return http.StatusUnauthorized, errors.New("invalid token boundary")
}Missing Tenant Scoping on Order History & Access-Grant APIs Exposes Cross-Tenant Data and Writes
Confirmed During Testing: Using two customer-provisioned test organizations (Tenant A and Tenant B): Tenant B retrieved Tenant A's private test order (`run_id=48219`) with `HTTP 200` and modified a benign description field on Tenant A's test access grant (`grant_id=9104`), while unauthenticated requests returned `401 Unauthorized`.
Potential Downstream Risk: Any authenticated user could enumerate sequential resource identifiers to read another organization's order records and contact details, or modify access-grant permissions belonging to other tenants.
Technical Root Cause: Both controller actions verify authentication (`authenticate_user!`) and query records globally by primary key (`OrderRun.find(params[:id])`) without scoping the lookup to `current_user.organization_id`.
Security Engineer Review (Security Engineer · VPInfoSec): Reviewed the multi-role authorization matrix across Tenant A, Tenant B, and unauthenticated controls. Confirmed both unauthorized read of Tenant A's test order record and unauthorized write to Tenant A's access-grant record, then verified original state restoration.
Sanitized HTTP Evidence
GET /v1/runs/48219/orders HTTP/1.1 Host: api.meridianfin.example
HTTP/1.1 401 Unauthorized
Content-Type: application/json
{"error": "authentication_required"}Observation: Confirms the resource is private and not publicly accessible.
GET /v1/runs/48219/orders HTTP/1.1 Host: api.meridianfin.example Authorization: Bearer [REDACTED_TENANT_B_TOKEN]
HTTP/1.1 200 OK
Content-Type: application/json
{"runId": 48219, "ownerOrgId": "org_test_tenant_a", "contactEmail": "[email protected]"}Observation: Tenant B received `200 OK` containing Tenant A's test record instead of `403 Forbidden` or `404 Not Found`.
Prioritized Remediation & Reference Fix (ruby)
- Scope every database lookup directly through the authenticated tenant association (`current_organization.order_runs.find_by!(id: params[:id])`).
- Enforce centralized authorization policy checks on every read and write controller action.
- Use non-sequential UUIDv4/ULID resource identifiers as defense-in-depth alongside server-side ownership checks.
# Before (global lookup missing tenant boundary) # @run = OrderRun.find(params[:id]) # After (strictly scoped to authenticated tenant + policy check) @run = current_organization.order_runs.find_by!(id: params[:id]) authorize @run, :read_orders?
Email Reconfirmation Endpoint Lacks Current-Password Check, CSRF Validation & Owner Alert
Confirmed During Testing: Confirmed on a dedicated test account: submitting `POST /user/update_email_id` without a CSRF header and with an empty `current_password` returned `200 OK`, updated `unconfirmed_email` to a secondary test mailbox, and generated a valid confirmation link with no notification to the original mailbox.
Potential Downstream Risk: In browsers or cross-site scenarios where the session cookie is sent (or during brief session access), an attacker could bind their own email address to a victim's account silently and complete password recovery to take over the account.
Technical Root Cause: A custom email-update route was exempted from CSRF middleware and omitted current-password re-authentication and original-owner security notifications.
Security Engineer Review (Security Engineer · VPInfoSec): Audited the email-change and recovery state machine end to end. Verified that `POST /user/update_email_id` accepted form-encoded updates with no CSRF token and an empty `current_password` field, updated `unconfirmed_email` on the test account, and dispatched no alert to the original email address.
Sanitized HTTP Evidence
POST /user/update_email_id HTTP/1.1 Host: app.meridianfin.example Cookie: session=[REDACTED_TEST_USER_A] Content-Type: application/x-www-form-urlencoded [email protected]¤t_password=
HTTP/1.1 200 OK
Content-Type: application/json
{"status": "reconfirmation_sent", "unconfirmed_email": "[email protected]"}Observation: Request succeeded with empty `current_password` and omitted CSRF token; original owner email received no notification.
Prioritized Remediation & Reference Fix (typescript)
- Require current-password verification (plus MFA step-up when enrolled) on every email or recovery-channel modification.
- Remove `/user/update_email_id` from CSRF exemptions and enforce synchronizer-token plus `Origin`/`Referer` checks.
- Send an immediate security notification with a one-click cancellation link to the existing primary email address whenever an email change is initiated.
app.post("/user/update_email_id", requireCsrf, requireAuth, async (req, res) => {
const valid = await verifyPassword(req.user.id, req.body.current_password);
if (!valid) return res.status(403).json({ error: "Current password required" });
await startEmailChange(req.user.id, req.body.email);
await sendOwnerSecurityAlert(req.user.primaryEmail, {
cancelToken: generateCancelToken(req.user.id),
});
return res.json({ status: "verification_sent" });
});