[ 
https://issues.apache.org/jira/browse/CASSSIDECAR-479?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

n.v.harikrishna updated CASSSIDECAR-479:
----------------------------------------
                        Authors: n.v.harikrishna
    Test and Documentation Plan: Tested the changes locally and added unit tests
                         Status: Patch Available  (was: Open)

> Tighten path containment in Live Migration file route
> -----------------------------------------------------
>
>                 Key: CASSSIDECAR-479
>                 URL: https://issues.apache.org/jira/browse/CASSSIDECAR-479
>             Project: Sidecar for Apache Cassandra
>          Issue Type: Sub-task
>          Components: Security
>            Reporter: n.v.harikrishna
>            Assignee: n.v.harikrishna
>            Priority: Normal
>             Fix For: 0.5
>
>
> The Live Migration file resolver currently relies on a lexical .. check to 
> keep requests inside the configured directories. Cassandra data directories 
> don't normally contain symlinks, but the lexical check alone can't see 
> through them, so this is a small defense-in-depth gap. This change adds a 
> real-path containment check (toRealPath() against the canonical base 
> directory) on the source side. Symlinks that resolve to targets within the 
> configured directory continue to work.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to