Conversation
Automated security fix generated by OrbisAI Security
|
|
I don't think this is an issue. Mountebank is used for testing purposes and generally should not be exposed to the public internet. We don't want to limit the number of imposters users create for their test cases. Users should limit their exposure in other ways (e.g., run it in a Docker container with resource limits applied). |
|
I agree that I was treating the endpoint as an internet-facing service and didn’t sufficiently account for Mountebank’s intended deployment model as a testing tool. In that context, imposing an application-level imposter limit could unnecessarily constrain legitimate test scenarios. Thanks for the clarification. |



Summary
Fix high severity security issue in
src/mountebank.js.Vulnerability
V-001src/mountebank.js:91Description: The POST /imposters endpoint allows creation of unlimited imposters without rate limiting, resource quotas, or maximum count limits. Each imposter consumes server resources including memory for request storage and network ports. An attacker can exhaust server resources by creating numerous imposters or configuring imposters to store large amounts of request data.
Evidence
Exploitation scenario: An attacker with network access sends repeated POST requests to /imposters to create thousands of imposters.
Scanner confirmation: multi_agent_ai rule
V-001flagged this pattern.Production code: This file is in the production codebase, not test-only code.
Threat Model Context
This is a web service - vulnerabilities in request handlers are directly exploitable by remote attackers.
Changes
src/mountebank.jssrc/controllers/impostersController.jsBehavior Preservation
The change is scoped to 2 files.
Security Invariant
Regression test
This test guards against regressions — it's useful independent of the code change above.
Automated security fix by OrbisAI Security