![]() |
|
LFI in CGI file help - Printable Version +- Sinisterly (https://sinister.ly) +-- Forum: Hacking (https://sinister.ly/Forum-Hacking) +--- Forum: Website & Server Hacking (https://sinister.ly/Forum-Website-Server-Hacking) +--- Thread: LFI in CGI file help (/Thread-LFI-in-CGI-file-help) Pages:
1
2
|
LFI in CGI file help - meow - 08-04-2016 I found an LFI in a CGI file, here are the details
TL;DR I'm having trouble getting RCE. Any suggestions? RE: LFI in CGI file help - Wildfire - 08-05-2016 Are there any file uploads you can control that are available to you? For instance, if an image upload were on the page, you can assume it would be in /tmp/ and get the filename from the URL the uploader gave you itself. RE: LFI in CGI file help - meow - 08-05-2016 (08-05-2016, 03:57 PM)Axari Wrote: Are there any file uploads you can control that are available to you? Nope. RE: LFI in CGI file help - Wildfire - 08-05-2016 (08-05-2016, 07:42 PM)meow Wrote:(08-05-2016, 03:57 PM)Axari Wrote: Are there any file uploads you can control that are available to you? Shit. I had another idea; if you have physical access to the device, perhaps you can use /dev/ttyS0 and pipe a script in through serial? (I know it sounds shitty) Or is this peripheral device remote? RE: LFI in CGI file help - meow - 08-05-2016 (08-05-2016, 07:45 PM)Axari Wrote:(08-05-2016, 07:42 PM)meow Wrote:(08-05-2016, 03:57 PM)Axari Wrote: Are there any file uploads you can control that are available to you? It's completely remote. RE: LFI in CGI file help - Wildfire - 08-05-2016 (08-05-2016, 07:46 PM)meow Wrote:(08-05-2016, 07:45 PM)Axari Wrote:(08-05-2016, 07:42 PM)meow Wrote: Nope. Do you have the name of the device so I can binwalk the firmware? RE: LFI in CGI file help - Wildfire - 08-05-2016 (08-05-2016, 08:43 PM)meow Wrote: asdasdasdtestestestasdasdasdtestestest Loud and clear. RE: LFI in CGI file help - meow - 08-05-2016 (08-05-2016, 08:44 PM)Axari Wrote:(08-05-2016, 08:43 PM)meow Wrote: asdasdasdtestestestasdasdasdtestestest Sorry lol, was trying something out. Anyways, here's an update: I was able to log into the admin panel of the device. There was an upload form but didn't allow anything except VALID jpeg files (couldn't bypass it, I tried everything I knew). Then after looking around some more I found a page that lets you import/export the system's configuration. I exported it to see if I could put a Perl reverse shell in there and then include it after importing it, however I'm faced with two problems 1. I don't know where the file is located on the fs, so I wouldn't know the path when including the file and 2. I've tried opening the exported configuration file with 2 different programs and its just unreadable shit. I need something that will give it to me in plaintext. RE: LFI in CGI file help - Wildfire - 08-05-2016 (08-05-2016, 08:52 PM)meow Wrote:(08-05-2016, 08:44 PM)Axari Wrote:(08-05-2016, 08:43 PM)meow Wrote: asdasdasdtestestestasdasdasdtestestest I'm pretty familiar with finding vulns directly in firmware tars, so I could take a look if you have a system firmware image, can extract the binaries and throw them in IDA for a quick looksee. RE: LFI in CGI file help - meow - 08-05-2016 (08-05-2016, 08:58 PM)Axari Wrote:(08-05-2016, 08:52 PM)meow Wrote:(08-05-2016, 08:44 PM)Axari Wrote: Loud and clear. Nevermind, I fucking finally found a way to execute commands. Thanks for trying to help. |