Traversal in the document centre
The file name is joined to the public folder without normalising the final path.
The Nordvik document centre serves files from <code>public/</code>. The <code>name</code> parameter is appended to that folder, then the resulting path is read as-is. The private folder sits one level above.
ObjectiveEscape the public folder and read <code>private/flag.txt</code>.
Useful tools
Browsercurl --path-as-isBurp Suite Communityffuf
Hints
Hint 1
Open the target. The form shows public files through
?name=welcome.txt. Try ../private/flag.txt and see whether the server normalises the path before reading it.Hint 2
If the browser or server strips
.., use curl with encoding: curl --path-as-is <target>/file?name=../private/flag.txt. Burp Repeater can also send the raw path.Hint 3
The response contains the private file and the flag. If you get a 404, try
..%2fprivate%2fflag.txt or %2e%2e/private/flag.txt.