[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 388
  • Last Modified:

PCI Compliance, Apache / PHP

We're having an issue with PCI compliance on our webserver. Our compliance company is SecureWorks. Server is Ubuntu LTS 14.04

Here's the info:
QID: 86310
Severity: 3
Threat: Many Web sites support the idea of user sessions. Each user connecting to the site is issued a unique session ID, which is then used to identify all subsequent requests made by that user, either encoded in the URLs, or as a cookie. The server can then store data for each user session such as the state of a Web shopping cart. Session IDs are also often used to control access to sites requiring a login. Instead of sending the username/password with every request, the site issues a session ID after the user logs on, and the session ID identifies the user for the rest of the session.

Solution: This issue may be caused by the Web server, the Web application server or the Web application itself. ... Use strong cryptographic algorithms to generate random session IDS. ... Any meaningful data being used in session IDs should be one-way encrypted.

Result:
Session cookies are:
#1: Set-Cookie: analyt=236872466
#2: Set-Cookie: analyt=236872466
#3: Set-Cookie: analyt=236872466
#4: Set-Cookie: analyt=236872466
#5: Set-Cookie: analyt=236872466
Percentage of common characters among subsequent cookies: 100%

The session id is actually 103 characters long (sha512). Any clue on how to fix this?
0
sgcity
Asked:
sgcity
1 Solution
 
sgcityAuthor Commented:
Tricky google search came up with this: https://community.qualys.com/docs/DOC-1176

It's a false positive. We'll report it as such.
0
 
Dave BaldwinFixer of ProblemsCommented:
Those don't look like PHP Session cookies to me.  Are you using your own 'session' code instead of PHP's built-in session code?  PHP session cookies / IDs are like "c4nu8engut3bd34c1f05v9ihi6" which is 27 characters.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now