Skip to content
This repository was archived by the owner on Jun 21, 2018. It is now read-only.
This repository was archived by the owner on Jun 21, 2018. It is now read-only.

Users can see other's opened sockets through /proc #6

@gmcclins

Description

@gmcclins

I have been doing some looking around checking various things to make sure permissions were as they should be, more in regards to leaking user info or world readable files that may contain sensitive info. Still doing more, but I figured I would post this now (really should have a few days ago). Some issues that I found were resolved that day when posted in irc so no need to mention any further, however the following remain.

netstat -antp
netstat -anup

Or any other netstat command that I didn't think of that should require sudo privileges does not

This of course leads to the leak of users address information as well as showing some open ports on the hashbang server that may have otherwise went unknown that could, possibly be used as information gathering for an attack.

I have also discovered that some logs in /var/log are readable

  • -rw-r--r--. 1 root adm 540750 Mar 3 01:28 cloud-init.log
  • -rw-r--r--. 1 root root 20486 Mar 3 01:28 cloud-init-output.log

as well as others.

This also poses the question, should I as a regular user, even have access to the /var/log directory

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions