Skip to content

Commit 167b063

Browse files
committed
f
1 parent edfd41e commit 167b063

1 file changed

Lines changed: 0 additions & 25 deletions

File tree

  • src/network-services-pentesting/pentesting-web

src/network-services-pentesting/pentesting-web/grafana.md

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -64,31 +64,6 @@ python3 CVE-2024-9264.py -u <USER> -p <PASS> \
6464
```
6565
If output shows `uid=0(root)`, Grafana is running as root (common inside some containers).
6666

67-
Post-exploitation notes
68-
- Harvest environment secrets from the spawned process (`env` or `/proc/<pid>/environ`). Grafana commonly exposes variables like:
69-
- `GF_SECURITY_ADMIN_USER`, `GF_SECURITY_ADMIN_PASSWORD`
70-
- These may be reused in other places (e.g., SSH, basic-auth on internal tools). See Linux post-exploitation tips below.
71-
- Container indicators: `/.dockerenv`, short hex hostname, Docker bridge IP in `/proc/net/fib_trie`.
72-
- Local port-only panels: Pivot with SSH local port forwarding: `ssh -L 9001:localhost:<port> user@host` and browse `http://localhost:9001` from your box.
73-
74-
Detection & hardening
75-
- Disable SQL Expressions if not needed: `expressions.enabled = false` (ini or via provisioning)
76-
- Remove or restrict DuckDB availability on the server PATH if SQL Expressions are enabled
77-
- Restrict extension loading in DuckDB if applicable; monitor for `INSTALL shellfs` or unexpected use of `read_csv('...|')`
78-
- Upgrade Grafana to a fixed version (see the official advisory linked below) and review all users with VIEWER+ access
79-
- Monitor admin API usage and unusual SQL Expression panels/queries
80-
81-
See also
82-
- For loopback-only panel access: SSH port-forwarding notes in Tunneling and SSH pages
83-
- For environment secret harvesting and systemd environment vars: Linux Post-Exploitation page
84-
85-
{{#ref}}
86-
../../generic-hacking/tunneling-and-port-forwarding.md
87-
{{#endref}}
88-
89-
{{#ref}}
90-
../../linux-hardening/linux-post-exploitation/README.md
91-
{{#endref}}
9267

9368
## References
9469

0 commit comments

Comments
 (0)