Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Script filename from SasUri cannot contain /

Open
#9 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
45/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
go
Domain
security

Research direction

Start in pkg/download/blob.go at the filename extraction and file opening code referenced in the issue. Trace how the SasUri path becomes fileName, then verify handling for foo/bar.sh and paths containing .. or /. Done means a script URI with nested path components can be processed without the missing-directory failure or unsafe path behavior.

Written by the indexing model from the issue text.

Description

I have a script source SasUri like:

https://xxx.blob.windows.net/container/foo/bar.sh

According to:

https://github.com/Azure/run-command-handler-linux/blob/6efb77e0fec9b1ff87c980d1a207f0fc73493b8a/pkg/download/blob.go#L82-L99

fileName becomes foo/bar.sh. However, directory foo doesn't exist so the open below always fails.

Suggest using fixed file name like a GUID. Otherwise you have to deal with .. and / in paths which could cause a lot of security troubles.

Dominant language
Go
Stars
2
Forks
16
Avg merge
22h 41m
Merged PRs (30d)
3

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Azure/run-command-handler-linux

All issues in Azure/run-command-handler-linux

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.