Git Product home page Git Product logo

s4dfarm's Introduction

S4DFarm

This is a fork of DestructiveFarm, rewritten by the C4T BuT S4D team over the years.

Running:

  • Change the ./server/app/config.py file to your liking (don't forget to change the SERVER_PASSWORD).
  • Change external_redis password in docker-compose.yml (of you're planning to use it).
  • docker compose up --build -d
  • GLHF

Some screenshots:

flags

teams

s4dfarm's People

Contributors

borzunov avatar falamous avatar jnovikov avatar passkeyra avatar pomo-mondreganto avatar renbou avatar slava-sh 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

s4dfarm's Issues

 ERR_PNPM_FROZEN_LOCKFILE_WITH_OUTDATED_LOCKFILE 

Currently when you clone the repo and do docker compose up you will get this error

------
 > [front front-build 1/2] RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --frozen-lockfile:
1.765 ! Corepack is about to download https://registry.npmjs.org/pnpm/-/pnpm-9.4.0.tgz
5.770 ! The local project doesn't define a 'packageManager' field. Corepack will now add one referencing [email protected]+sha512.f549b8a52c9d2b8536762f99c0722205efc5af913e77835dbccc3b0b0b2ca9e7dc8022b78062c17291c48e88749c70ce88eb5a74f1fa8c4bf5e18bb46c8bd83a.
5.770 ! For more details about this field, consult the documentation at https://nodejs.org/api/packages.html#packagemanager
5.770
6.207  ERR_PNPM_FROZEN_LOCKFILE_WITH_OUTDATED_LOCKFILE  Cannot perform a frozen installation because the version of the lockfile is incompatible with this version of pnpm
6.207
6.207 Try either:
6.207 1. Aligning the version of pnpm that generated the lockfile with the version that installs from it, or
6.207 2. Migrating the lockfile so that it is compatible with the newer version of pnpm, or
6.207 3. Using "pnpm install --no-frozen-lockfile".
6.207 Note that in CI environments, this setting is enabled by default.
------
failed to solve: process "/bin/sh -c pnpm install --frozen-lockfile" did not complete successfully: exit code: 1

I did a quick patch by removing --frozen-lockfile from the command in server/docker/front/Dockerfile but updating the pnpm-lock.yaml is probably the correct thing to do, I just don't know how to do it.

Authorization header uses non constant time password comparison.

Authorization passwords are checked like: if auth != config['SERVER_PASSWORD']
https://github.com/C4T-BuT-S4D/S4DFarm/blob/master/server/app/auth.py#L16

An attacker could potential recover the password faster then guessing. A guessed password that has the first byte correct takes longer to check then a password that has the first byte wrong. Once the first byte is found, one can find the next byte and so on.

https://sqreen.github.io/DevelopersSecurityBestPractices/timing-attack/python

The attacker would need a lot of requests, as there can be quite some jitter and noise in the network, so it's not a very realistic attack, but might be feasable with enough samples.

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.