Skip to content

FileLocatorStrategy: unsanitized path allows directory traversal #97

Description

@elharo

Bug #15

FileLocatorStrategy.java line 33

The locationSpecification string is passed directly to new File(locationSpecification) without normalization or sanitization. If this input originates from an untrusted source, sequences such as ../ can resolve to files outside the intended directory.

Note: This is low priority because in a Maven plugin context the POM is typically trusted.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingpriority:minorMinor loss of function, or other problem where easy workaround is present

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions