Hack Forums
webserver vulerability - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Hacks, Exploits, and Various Discussions (https://hackforums.net/forumdisplay.php?fid=45)
+--- Forum: Grayhat • Purple Team • Hybrid Security (https://hackforums.net/forumdisplay.php?fid=449)
+---- Forum: Website Hacking (https://hackforums.net/forumdisplay.php?fid=43)
+---- Thread: webserver vulerability (/showthread.php?tid=6046986)



webserver vulerability - imsodumb - Feb 5, 2020

Hey , im new i need to get if possible some details and help about exploiting a vulerability in webserver i use kali and nikto btw im bad i just started ! tanks for help me 👍[



RE: webserver vulerability - BigJoe7413 - Feb 5, 2020

can you provide more info?


RE: webserver vulerability - imsodumb - Feb 5, 2020

yup , i use nikto to scan a webserver and i found that :Retrieved x-powered-by header: PHP/7.1.17
+ Retrieved access-control-allow-origin header: *
+ The anti-clickjacking X-Frame-Options header is not present.
+ The X-XSS-Protection header is not defined. This header can hint to the user agent to protect against some forms of XSS
+ The X-Content-Type-Options header is not set. This could allow the user agent to render the content of the site in a different fashion to the MIME type
+ No CGI Directories found (use '-C all' to force check all possible dirs)
+ RFC-1918 IP address found in the 'location' header. The IP is "172.31.46.56".
+ OSVDB-630: The web server may reveal its internal or real IP in the Location header via a request to /images over HTTP/1.0. The value is "172.31.46.56".
+ Uncommon header 'x-amz-request-id' found, with contents: 9902EBE6B4877F3D
+ Uncommon header 'x-amz-id-2' found, with contents: lXJdyve686S40jPHuNDNcNVwEnIqXEWM0MWnkwcojmHEv1YVjcVEOy/Wyt5WgtUKNs0yc9yPIEs=
+ /help/: Help directory should not be accessible
+ /config.php: PHP Config file may contain database IDs and passwords.
+ OSVDB-3093: /.htaccess: Contains configuration and/or authorization information
+ ERROR: Error limit (20) reached for host, giving up. Last error:
+ Scan terminated: 1 error(s) and 12 item(s) reported on remote host

I try to understand MIMS sniffing but i still dont get it.
after i see something intersting : "/config : PHP config file may contain database Ids passwords.
i try to catch the file with adding the file in the web bar and nothing return back i dont get any web error juste nothing happend..
so you can give my some way to exploit those vulnerability that be great i wanna learn after all !


RE: webserver vulerability - thewolf21 - Feb 7, 2020

send me information bro i help


RE: webserver vulerability - imsodumb - Feb 9, 2020

Hey thewolf21 cannot pm you i don't have the lvl sorry ..


RE: webserver vulerability - compalabee - Feb 9, 2020

(Feb 5, 2020 03:16 PM)imsodumb Wrote:  yup , i use nikto to scan a webserver and i found that :Retrieved x-powered-by header: PHP/7.1.17




Try to read up on the terms in the report. You won't get very far without research.

Header best practice problems
PHP Code

<?php 
access
-control-allow-origin 
X
-Frame-Options
X
-XSS-Protection
X
-Content-Type-Options 

Vulnerabilities
PHP Code

<?php 
OSVDB
-630
OSVDB
-3093 

Predictable resource location
PHP Code

<?php 
/help
/config.php 

Also, note that scanners are very noisy. I wouldn't be surprised if the sysadmin already knows that someone was taking a peek. Hopefully you masked your IP address too.