Filesystem Permissions Flashcards

1
Q

What is improper filesystem authorisation a threat to?

A

Confidentiality, Integrity and Availability of data and applications

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

When does the problem of improper filesystems occur?

A

When files, folders and symbolic links are created and set with incorrect authorisations
Authorisations in this case are often referred to as permissions

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What can happen when improper permissions are set?

A

An attacker may be able to access restricted files or directories and modify or delete their contents

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Example of when an anonymous user account has write permission to a file.

A

An attacker may be able to modify the contents of the file influencing an application in undesirable ways.
An attacker may also exploit improper links to escalate their privileges and/or access unauthorised files

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What are file permissions?

A

System setting that determines who can access specified files and what they can do with those files.
When you place files on a web server, you can assign the files to various levels of permissions for users. Likewise, companies often use permissions to limit access to their intranet resources.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

User permission types

A

Owner - creator of files
Administrator - the person responsible for manage and updating files(and setting permissions)
Group access - allows you to designate specific groups of users and provide unique settings specific to them
Global - provides access to all users
Individual user - many programs allow you to create a specific level of access at the individual user level

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Filesystem Permission Types

A

Read - users with this level of permission can view files and copy them, but they cannot make changes to the file or create new files.
Write - can edit, remove and move files, also create files in most cases
Execute - can run a specific program or type of program file. This is used to restrict access to company programs or limit their employees ability to run potentially dangerous executable on company machines

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

if a program/programming language allows you to create custom groups what can you do?

A

You can create highly customised authorisation schemes, restricting access to only the files that each user or user group absolutely needs
This is the principle of least privilege - an excellent way to improve data security

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Most program/programming languages allow you to set specific permission at file and/or directory level - what does this mean to companies?

A

Companies often use this to enable team-specific folders on their shared storage.
Website admins can use this to specify who has access to certain sections of a site, such as member-only pages

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What does path mean in os.chmod(path,mode)

A

A string that represents the path of the file/directory

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What does mode mean in os.chmod(path,mode)

A

Contains different values related to permissions

How well did you know this?
1
Not at all
2
3
4
5
Perfectly