Skip to content

Commit

Permalink
Fix issue where commands could be injected running on Cocoapods projects
Browse files Browse the repository at this point in the history
Thanks to Joern SchneeweiszStaff Security Engineer, Security Research | GitLab for raising the issue
  • Loading branch information
xtreme-shane-lattanzio committed May 17, 2021
1 parent c1f04fc commit b0a61a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/license_finder/package_managers/cocoa_pods.rb
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def acknowledgements_path
end

def read_plist(pathname)
JSON.parse(`plutil -convert json -o - '#{pathname}'`)
JSON.parse(`plutil -convert json -o - '#{pathname.gsub!(/[^0-9A-Za-z.\-]/, '')}'`)
end
end
end

0 comments on commit b0a61a2

Please sign in to comment.