Giter Club home page Giter Club logo

billow's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

billow's Issues

ElassticSearchCluster NullPointerException when there's no ES clusters available.

Version: 2.20

Pretty sure this bug is caused by not null checking this line: https://github.com/airbnb/billow/blob/master/src/main/java/com/airbnb/billow/ElasticsearchCluster.java#L49

getDedicatedMasterCount() returns Integer object and could be null, so we need to do a null check before assigning to int, otherwise you will see this:

05:37:39.425 [main] ERROR com.airbnb.billow.Main - Failure in main thread, getting out!
java.lang.NullPointerException: null
	at com.airbnb.billow.ElasticsearchCluster.<init>(ElasticsearchCluster.java:49) ~[billow-2.20.jar:na]
	at com.airbnb.billow.AWSDatabase.<init>(AWSDatabase.java:221) ~[billow-2.20.jar:na]
	at com.airbnb.billow.AWSDatabaseHolder.rebuild(AWSDatabaseHolder.java:128) ~[billow-2.20.jar:na]
	at com.airbnb.billow.AWSDatabaseHolder.<init>(AWSDatabaseHolder.java:124) ~[billow-2.20.jar:na]
	at com.airbnb.billow.Main.<init>(Main.java:53) ~[billow-2.20.jar:na]
	at com.airbnb.billow.Main.main(Main.java:130) ~[billow-2.20.jar:na]

Also please audit other similar handling as billow is pretty brittle when some assumptions are not met, eg, there needs to be a user IAM role in an account, there needs to be a RDS/Aurora cluster in the account.

OGNL Expression Injection Vulnerability

Hi!
I am a staff member of QiAnXin Code Guard. In our open source code detection project, I found a OGNL Expression Injection Vulnerability in "billow". The details are as follows:
In the handleComplexSQS(), the parameters in the request are obtained by getQuery(params),
图片
and finally the listQueuesFromQueryExpression() is passed in, followed by:
图片
Parsing the argument as an OGNL expression!
An attacker can construct an OGNL expression for RCE

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.