NEWBravos is available: point it at a repo and see which threats an attacker can reach.Create your account
Case study

Two Security Gaps Closed Before Merge

A Series-B B2B fintech caught broken access control and an SSRF path in a webhook feature before release. GuardLink brought developers and security into the same pull request; Cert-X-Gen proved the fixes on a running build.

Financial TechnologyBy Shahid Parvez Hakim
Two Security Gaps Closed Before Merge case study cover
2 confirmed
Vulnerabilities
2 business days
Time to fix
4 live checks passed
Validation
1 shared threat model
Collaboration
01

The challenge

  • A new webhook test action did not verify that the selected integration belonged to the user's workspace
  • URL validation allowed the application to contact a private network destination
  • Developers and security needed to resolve both gaps without delaying the feature release
02

The outcome

  • Two vulnerabilities confirmed and remediated before the pull request merged
  • Workspace ownership and outbound destination controls enforced on the server
  • Both attack paths blocked on the updated build, with authorized webhook tests still working
  • Threat annotations, remediation decisions, and live-test evidence retained in one pull request
Engineering and security were looking at the same code and the same evidence. We closed both gaps before merge without turning a small feature into a separate security project.
VP of EngineeringSeries-B B2B Fintech
03

The full story

Background

A Series-B B2B fintech provided accounts-receivable software to finance teams managing multiple customer workspaces. Its engineering team was adding a webhook test feature so customers could verify integrations before enabling payment-status notifications.

The feature introduced two security-sensitive decisions: which workspace's integration a user could operate, and which destinations the application could contact. Bugb Technologies worked with the company's developer and security reviewer to assess those boundaries while the change was still in a pull request.

Initial Assessment

The server checked that a user was signed in and belonged to a workspace. It did not verify that the integration selected for the webhook test belonged to that same workspace. A user who supplied another workspace's integration ID could trigger its test action.

The destination check accepted a correctly formatted URL but did not enforce a network boundary. That left a server-side request forgery, or SSRF, path: a customer could make the application contact a private service that was not directly accessible to the customer.

Both gaps sat inside an otherwise routine feature change. Reviewing authentication or URL formatting alone would have missed the controls that mattered.

One Shared Threat Model

GuardLink traced the user-supplied integration ID to the integration lookup and the destination URL to the outbound request. Its threat model lived in the repository, with annotations visible alongside the changed code in the pull request.

The developer and security reviewer used those annotations to agree on the intended boundaries. The integration had to belong to the authenticated workspace, the user needed permission to operate it, and the outbound request had to remain within approved destinations.

GuardLink identified where controls were missing; it did not claim that either path was exploitable. Bravos, Bugb's autonomous whitebox pentest product, built a code graph, prioritized the two paths, and drove Cert-X-Gen against an isolated running copy of the proposed change.

Confirming the Exposure

Cert-X-Gen used authenticated accounts from two test workspaces. One account supplied the other workspace's integration ID and successfully triggered its webhook test action, confirming the access-control failure.

A separate live probe directed the application to a private test service. The service received the request and returned a harmless marker, establishing that the outbound boundary was missing.

The assessment used synthetic workspace data and a controlled test service. Each finding rested on observed application behavior, not a warning inferred from the code.

Implementation

The developer scoped the integration lookup to the authenticated workspace and enforced the user's permission before the webhook action could run.

For outbound requests, the team limited the feature to approved integration destinations. The server checked the resolved address before connecting and applied the same destination control to redirects, preventing an approved URL from becoming a route to a private service.

The code changes and the reasons for them stayed in the original pull request. Security did not hand engineering a separate document to reconcile after the implementation was complete.

Verification and Results

Cert-X-Gen repeated the two attack probes against the updated running build. The foreign-workspace request was denied before the action executed. The private-service request was blocked before a connection reached the test service.

Two positive checks also passed: an authorized user could test an integration in their own workspace, and a webhook to an approved destination completed successfully.

  • 2 confirmed vulnerabilities remediated in 2 business days.
  • 4 live checks passed: two blocked attack paths and two permitted workflows.
  • Both fixes completed before merge, keeping the vulnerable feature out of the release.
  • 1 shared threat model connected the code, review discussion, remediation, and proof.

Conclusion

The engagement made shift-left security a concrete engineering practice. Developers and security resolved the same missing controls in the same pull request, then relied on the running application to establish that the fixes worked.

GuardLink and Cert-X-Gen are open source. GuardLink supplied the shared map; Cert-X-Gen supplied observed proof. Bravos orchestrated the assessment and reported only the findings supported by that proof.

Put the same method to work

Find what matters. Prove it. Fix it.

Bravos maps the attack surface in your code, then tests a running copy to confirm what is real.