Code Monkey home page Code Monkey logo

acmeair-nodejs's People

Contributors

dougrt avatar gareth-ellis avatar kjschnei001 avatar shahirdaya avatar

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  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

Watchers

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

acmeair-nodejs's Issues

Vuln: ability to access/modify arbitrary user's full information from another user's session

To preface this: yes, I'm aware that this is a sample application that's not designed to be secure or anything like that (y'know, what with the auto-filled default values and everything). I just wanted to make sure that people who planned on using this application as inspiration for a real-world application would be aware of this issue.

By taking advantage of the sessionid cookie given to users, any user is able to access any other user's information. This is because the application doesn't associate sessions with users.

An example of exploiting this:

  1. Log into the application as [email protected]
  2. Grab the sessionid cookie given by the server
  3. Send a request to /rest/api/customer/byid/[email protected] with the cookie (e.g. curl localhost:9080/rest/api/customer/byid/[email protected] --cookie "sessionid=<your sessionid cookie>", or just visit the page in your browser if it has the cookie)

The same technique can be used to modify any arbitrary user as well.

Non HTTP response code error

Hi, I'm trying to run and test AcmeAir-node code from command line. I've followed all the steps to setup jmeter (loaded the database, etc.), but when I start jmeter as following, I get following error,

$ JVM_ARGS="-Xms2048m -Xmx2048m -XX:MaxTenuringThreshold=4 -XX:NewRatio=2" jmeter -J jmeter.save.saveservice.output_format=csv -J jmeter.save.saveservice.print_field_names=true -J jmeter.save.saveservice.latency=true -DusePureIDs=true -n -t document/workload/jmeter/AcmeAir.jmx


com.acmeair.jmeter.functions.ExtractFlightsInfoFunction FlightsContext is null. This should not be null. FlightsContext should be created by FlightsPostProcessor.
FlightsPostProcessor - Last sample received an error. Response Code = Non HTTP response code: java.lang.IllegalArgumentException.
FlightsPostProcessor - Last sample received an error. Response Code = Non HTTP response code: java.lang.IllegalArgumentException.
FlightsPostProcessor - Last sample received an error. Response Code = Non HTTP response code: java.lang.IllegalArgumentException.
FlightsPostProcessor - Last sample received an error. Response Code = Non HTTP response code: java.lang.IllegalArgumentException.
FlightsPostProcessor - Last sample received an error. Response Code = Non HTTP response code: java.lang.IllegalArgumentException.
com.acmeair.jmeter.functions.ExtractFlightsInfoFunction FlightsContext is null. This should not be null. FlightsContext should be created by FlightsPostProcessor.

Seeing very low CPU utilization on Haswell Server running Ubuntu

I am running AcmeAir on a Haswell server with 36 cores (Xeon E5-2699 @ 2.30GHz) with 64 bit Ubuntu 16.04. I'm using the JMeter driver with default options except I set the number of threads to 36, running for 10 minutes. On the server, if I run vmstat or sar I see approximately 8-9% CPU utilization by user, 1% by system, and 90-91% CPU idle.

Setting the number of threads down to 1 drastically lowers the throughput, but raising it to higher numbers seems to have no effect somewhere in the 5-10 thread range. Both vmstat and sar report the same numbers across different runs. Is is expected of the workload? If not, would this be caused by not setting certain options to raise the CPU utilization?

Add Data Cache Support to Acme Air

Provide support for Data Cache Service in IBM Bluemix. Should also integrate with WebSphere eXtreme Scale's REST Data Service. These services follow WCF Data Services REST API and should be extensible to other implementations.

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.