Skip to content

fix(weaver): resource incorrect permission assignment #2769

@TheJagpreet

Description

@TheJagpreet

Description

Static source code assessment has picked up a potential vulnerability regarding incorrect permission assignment. The probable remediation is to create the folders with minimum possible permissions.

The report from which the above information was summarized

Risk Rating: Low
Category: Security Misconfiguration

Description

A file or directory is created with dangerous permissions, either by setting these permissions explicitly or relying on unsafe default permissions.

Impact

Files with implicit or dangerous permissions may allow attackers to retrieve sensitive data from the contents of these files, tamper their contents or potentially execute them.

Remediation Recommendation

Always create files with permissions being set explicitly. Never set dangerous permissions on files. Always consider the principle of least privilege when determining who may read, write or execute a file, if these permissions are to be granted at all.

Affected files (path - line number)

weaver/sdks/corda/src/main/kotlin/org/hyperledger/cacti/weaver/sdk/corda/CredentialsExtractor.java - 151, 201

Snapshot of the sourcecode at the time of scan

image ---

Source: APP PE Hyperledger Cacti v2.0.0 - Static Application Assessment Report.odt

cc: @takeutak @izuru0 @outSH @petermetz

Metadata

Metadata

Assignees

Labels

HacktoberfestHacktoberfest participants are welcome to take a stab at issues marked with this label.P4Priority 4: LowSecurityRelated to existing or potential security vulnerabilitiesWeaverTasks related to the future of Cactus & Weaver together.good-first-issueGood for newcomersgood-first-issue-200-intermediate

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions