Skip to content

Commit

Permalink
Fix potential RCE vulnerability (#139)
Browse files Browse the repository at this point in the history
Co-authored-by: Alexandru Salajan <salajan@adobe.com>
  • Loading branch information
asalajan and Alexandru Salajan authored Jun 21, 2023
1 parent b184aaf commit 9380dd9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/ops/cli/aws.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,14 @@
# governing permissions and limitations under the License.

from . import get_output
from shlex import quote


def access_key(profile):
return get_output(
'aws configure get aws_access_key_id --profile %s' % profile)
'aws configure get aws_access_key_id --profile %s' % quote(profile))


def secret_key(profile):
return get_output(
'aws configure get aws_secret_access_key --profile %s' % profile)
'aws configure get aws_secret_access_key --profile %s' % quote(profile))

0 comments on commit 9380dd9

Please sign in to comment.