diff --git a/pkgs/tools/security/crlfsuite/default.nix b/pkgs/tools/security/crlfsuite/default.nix new file mode 100644 index 000000000000..67ccacb2de74 --- /dev/null +++ b/pkgs/tools/security/crlfsuite/default.nix @@ -0,0 +1,36 @@ +{ lib +, fetchFromGitHub +, python3 +}: + +python3.pkgs.buildPythonApplication rec { + pname = "crlfsuite"; + version = "2.0"; + format = "setuptools"; + + src = fetchFromGitHub { + owner = "Nefcore"; + repo = "CRLFsuite"; + rev = "v${version}"; + sha256 = "sha256-V/EaOtGDPJQAMu9akOtZN5LKLFd3EQkjn79q7ubV0Mc="; + }; + + propagatedBuildInputs = with python3.pkgs; [ + colorama + requests + ]; + + # No tests present + doCheck = false; + + pythonImportsCheck = [ + "crlfsuite" + ]; + + meta = with lib; { + description = "CRLF injection (HTTP Response Splitting) scanner"; + homepage = "https://github.com/Nefcore/CRLFsuite"; + license = licenses.mit; + maintainers = with maintainers; [ c0bw3b fab ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 7f02a6a8aeb1..7df20bfe3083 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -4682,6 +4682,8 @@ with pkgs; cmt = callPackage ../applications/audio/cmt {}; + crlfsuite = callPackage ../tools/security/crlfsuite {}; + crlfuzz = callPackage ../tools/security/crlfuzz {}; hedgedoc = callPackage ../servers/web-apps/hedgedoc { };