LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 05-30-2013, 08:08 PM   #1
gdizzle
Member
 
Registered: Jul 2012
Posts: 234

Rep: Reputation: Disabled
OpenVAS Apache Secure Attribute SSL Cookie Vuln how to close up?


Hi I was using OpenVAS on one of the internal Centos host and I found this vulnerability? Does anyone know how to close this up on a Server with Apache running ssl with php.

Code:
High (CVSS: 6.4)
NVT: Missing Secure Attribute SSL Cookie Information Disclosure Vulnerability (OID: 1.3.6.1.4.1.25623.1.0.902661)

  Overview: The host is running a server with SSL and is prone to information
  disclosure vulnerability.

  Vulnerability Insight:
  The flaw is due to SSL cookie is not using 'secure' attribute, which
  allows cookie to be passed to the server by the client over non-secure
  channels (http) and allows attacker to conduct session hijacking attacks.
  remote systems.

  Impact Level: Application

  Affected Software/OS:
  Server with SSL.

  Workaround:
  Set the 'secure' attribute for any cookies that are sent over an SSL connection.

  References:
  http://www.ietf.org/rfc/rfc2965.txt
  https://www.owasp.org/index.php/Testing_for_cookies_attributes_(OWASP-SM-002)
In php.ini I section I made this change:

Code:
session.cookie_secure = 1
Did a service httpd restart and re-scanned and it made no difference.

Also added this into the httpd.conf, to rewerite all standard httpd to https and rescanned and it made no difference.

Code:
RewriteCond %{SERVER_PORT} ^80$
RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L]

A little confused and noobed by this as I need to make these cookies secure.

Could not see anything in the ssl.conf

Can anyone explain in basic terms how to lock this up?

Thanks
 
Old 05-30-2013, 08:39 PM   #2
gdizzle
Member
 
Registered: Jul 2012
Posts: 234

Original Poster
Rep: Reputation: Disabled
Code:
vim /etc/php.ini

session.cookie_httponly = True
session.cookie_secure=on

service httpd restart
hmmmmmmmm this made no difference to the above config.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Openvas-manager & openvas-cli Minky Linux - Software 1 04-26-2010 06:59 AM
secure. vs www. ssl apache config hank43 Linux - Networking 4 08-09-2006 10:06 PM
Apache reverse proxy and cookie momilla Linux - Networking 0 07-26-2005 09:58 AM
Secure email (SSL vs. secure authentication) jrdioko Linux - Newbie 2 11-28-2004 01:39 PM
Apache SSL - how to virtual host two or more secure websites on the same machine? bjoshi Linux - Networking 0 08-30-2001 07:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 12:49 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration