Giter VIP home page Giter VIP logo

beer's People

Contributors

dependabot-preview[bot] avatar dependabot[bot] avatar ekristensen avatar fossabot avatar mend-bolt-for-github[bot] avatar renovate-bot avatar scrutinizer-auto-fixer avatar stylecibot avatar

Watchers

 avatar  avatar

Forkers

fossabot

beer's Issues

Return home after 5 min

Ny feature til øl kasse system: efter 5 minutter så automatisk gå tilbage til forside fra highscore side og fortryd køb siden

CVE-2019-11358 (Medium) detected in jquery-3.3.1.min.js, jquery-3.1.1.min.js

CVE-2019-11358 - Medium Severity Vulnerability

Vulnerable Libraries - jquery-3.3.1.min.js, jquery-3.1.1.min.js

jquery-3.3.1.min.js

JavaScript library for DOM operations

Library home page: https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js

Path to vulnerable library: /beer/vendor/phpunit/php-code-coverage/src/Report/Html/Renderer/Template/js/jquery.min.js

Dependency Hierarchy:

  • jquery-3.3.1.min.js (Vulnerable Library)
jquery-3.1.1.min.js

JavaScript library for DOM operations

Library home page: https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.1/jquery.min.js

Path to vulnerable library: /beer/public/js/jquery-3.1.1.min.js

Dependency Hierarchy:

  • jquery-3.1.1.min.js (Vulnerable Library)

Found in HEAD commit: 9474c8a1756a0b81ec4abea62a28e6d494cbb6ab

Vulnerability Details

jQuery before 3.4.0, as used in Drupal, Backdrop CMS, and other products, mishandles jQuery.extend(true, {}, ...) because of Object.prototype pollution. If an unsanitized source object contained an enumerable proto property, it could extend the native Object.prototype.

Publish Date: 2019-04-20

URL: CVE-2019-11358

CVSS 3 Score Details (6.1)

Base Score Metrics:

  • Exploitability Metrics:
    • Attack Vector: Network
    • Attack Complexity: Low
    • Privileges Required: None
    • User Interaction: Required
    • Scope: Changed
  • Impact Metrics:
    • Confidentiality Impact: Low
    • Integrity Impact: Low
    • Availability Impact: None

For more information on CVSS3 Scores, click here.

Suggested Fix

Type: Upgrade version

Origin: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-11358

Release Date: 2019-04-20

Fix Resolution: 3.4.0


Step up your Open Source Security Game with WhiteSource here

Testing missing statistics new features

Test properly that purchases for products that are not active shows up in statistics. Also that products show up properly in the select list depending on there has been any purchases on that product, or that it is active. Remember room.statistics property for those who has opted out.

Sikkerhed API

Øl regnskab: sikkerhed for API . Laravel interface til administration, fjern create view. Ryd om muligt op i koden. Lav godkendt ip tabel. Yderligere abstraktion: opret produkttyper; øl, cider og andet. Mulighed for særpriser.

Feature: High score

Hvem har drukket mest øl, sodavand, cider, kaffe?

Hvem har drukket mest denne uge? Hvem er ugens "højdespringer"?

Ville være nice.

Husk TDD som altid!

Fix badages

A lot of the integrations are old and no longer works. E.g. travis.

Remember to do some day...

Test rate limit virker

Skriv en test som sikre rate limit til køb af ting virker (API rate limit, og login rate limit+lockout)

Feature: Permissions to purchase each product on room basis

Is your feature request related to a problem? Please describe.
The problem is that one who would never buy a product (e.g. beer) can buy it by accident if someone else presses the purchase button for the wrong room. They would like this action to be prevented.

Describe the solution you'd like
Have the option to deny purchases for a product on a room basis.

Describe alternatives you've considered
I've looked at https://github.com/spatie/laravel-permission , but maybe that is too much compared to doing something on your own. It could be each room gets a purchase group/permission group. As per default you can buy everything, maybe this expanding the concept of a room being active or not. If a room need a whitelist/blacklist of products they are assigned to a group that requires that.

Additional context
It is a optional feature, and shouldn't make the code unnecessary harder to understand. There is a clear opportunity to play with middlewares. No changes in the GUI are required as it'll report error if any is present. The backend only needs to present a proper error for the frontend to be updated.

Feature: Mere Travis CI

Travis CI erstat:

Afvis build med TravisCI hvis style, codecoverage eller sikkerheden er påvirket negativt.

Deploy ny version af applikationen via git til server. Overvåg om deployment virker, se:

Feature: Makerfile

Makerfile for at gøre det nemt at opdatere, formattere kode, bygge npm etc etc.

Feature: Opfyldning

Beregn hvornår kaffemaskine skal påfyldes og send mail eller vis besked på skærmen over køleskabet.

Product associated to purchase is not tested

Describe the bug
Tests passes despite product not being assigned properly.

To Reproduce
Steps to reproduce the behavior:
If 'product' => $product->id, is removed from routes/api.php the tests still passes.

Expected behavior
The tests are expected to fail if the function does not do as expected.

Additional information
Product is stored as a string in purchases table...

Nemmere antal

Mathis ide: Køb 1 eller mer. Ved mer kommer der en boks hvor der kan trykkes + og -, herefter ok for at købe det antal. Samme med refundering? gør det muligt at lave den delvis? Patrick: hvorfor ikke bare se saldo istedet for tryk på tjek nødvendigt?

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.