Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

InsecureSource results in exit code 1 #106

Closed
krigar opened this issue Aug 17, 2015 · 8 comments
Closed

InsecureSource results in exit code 1 #106

krigar opened this issue Aug 17, 2015 · 8 comments

Comments

@krigar
Copy link

krigar commented Aug 17, 2015

We're about to integrate bundler-audit into our CircleCI build process and it's looking really promising except for one fact: ignoring vulnerabilities leads to none being listed by bundler-audit, but it still exits with exit code 1, making CircleCI think it failed.

The reason why we ignore some vulnerabilities is because we're running on a forked version of https://github.com/spree/spree and we have to monkey patch their security patches instead of upgrading the version.

Example output:

$ bundle exec bundle-audit check --update --ignore OSVDB-119205 OSVDB-125699 OSVDB-125701
Updating ruby-advisory-db ...
From https://github.com/rubysec/ruby-advisory-db
 * branch            master     -> FETCH_HEAD
Already up-to-date.
ruby-advisory-db: 226 advisories
Vulnerabilities found!
@krigar
Copy link
Author

krigar commented Aug 17, 2015

Figured this one out, it was due to some git repositories in our lockfile that got marked as InsecureSource.

I understand the need to generate a warning when using external git repositories, but should the warning result in vulnerable being set to true?

@krigar krigar changed the title Ignored vulnerabilities still results in an exit code 1 InsecureSource results in exit code 1 Aug 17, 2015
@postmodern
Copy link
Member

If the repositories are insecure, an attacker could MITM them and inject arbitrary code. If your threat model involves MITMing, then it makes sense to mark them as vulnerable; plus it's not hard to switch to https:// or git@.

@reedloden
Copy link
Member

Why would git@ be more secure than http://? Aren't they effectively both unauthenticated and unencrypted? Are you referring to git over ssh, perhaps?

@Mange
Copy link

Mange commented Aug 29, 2015

Yes. git@ is the syntax for GitHub as the SSH user is named git there.
git:// and http:// are insecure.

lör 29 aug 2015 00:29 Reed Loden notifications@github.com skrev:

Why would git@ be more secure than http://? Aren't they effectively both
unauthenticated and unencrypted? Are you referring to git over ssh, perhaps?


Reply to this email directly or view it on GitHub
#106 (comment)
.

@reedloden
Copy link
Member

Oh, duh. Reading comprehension fail. My bad.

On Friday, August 28, 2015, Magnus Bergmark notifications@github.com
wrote:

Yes. git@ is the syntax for GitHub as the SSH user is named git there.
git:// and http:// are insecure.

lör 29 aug 2015 00:29 Reed Loden <notifications@github.com
javascript:_e(%7B%7D,'cvml','notifications@github.com');> skrev:

Why would git@ be more secure than http://? Aren't they effectively both
unauthenticated and unencrypted? Are you referring to git over ssh,
perhaps?


Reply to this email directly or view it on GitHub
<
#106 (comment)

.


Reply to this email directly or view it on GitHub
#106 (comment)
.

@JuanitoFatas
Copy link
Contributor

@krigar Hi! Did you solve the rake task? You could use the rake task in your project from #115 or try this commit.

Then I think this issue can be closed? InsecureSource results in exit code 1 is correct as @postmodern mentioned in this comment.

Thanks!

@postmodern
Copy link
Member

Can this be closed?

@krigar
Copy link
Author

krigar commented Feb 29, 2016

Hey, yeah, I'll close it now.

On 29 February 2016 at 04:06, Postmodern notifications@github.com wrote:

Can this be closed?


Reply to this email directly or view it on GitHub
#106 (comment)
.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants