summary refs log tree commit diff
diff options
context:
space:
mode:
authorSandro <sandro.jaeckel@gmail.com>2021-01-18 23:20:38 +0100
committerGitHub <noreply@github.com>2021-01-18 23:20:38 +0100
commit55e030a8955f862a9e00210471c73a15bfe79e21 (patch)
tree6b92472e6fc3addac1aa31218a200828fd55480a
parent4773a2675b3a029b3daa8769b8c4c31acb607325 (diff)
parentfa13bc320a58a1c9562a611a284b1b3821322ef2 (diff)
downloadnixpkgs-55e030a8955f862a9e00210471c73a15bfe79e21.tar
nixpkgs-55e030a8955f862a9e00210471c73a15bfe79e21.tar.gz
nixpkgs-55e030a8955f862a9e00210471c73a15bfe79e21.tar.bz2
nixpkgs-55e030a8955f862a9e00210471c73a15bfe79e21.tar.lz
nixpkgs-55e030a8955f862a9e00210471c73a15bfe79e21.tar.xz
nixpkgs-55e030a8955f862a9e00210471c73a15bfe79e21.tar.zst
nixpkgs-55e030a8955f862a9e00210471c73a15bfe79e21.zip
Merge pull request #109827 from fabaff/corsmisc
-rw-r--r--pkgs/tools/security/corsmisc/default.nix25
-rw-r--r--pkgs/top-level/all-packages.nix2
2 files changed, 27 insertions, 0 deletions
diff --git a/pkgs/tools/security/corsmisc/default.nix b/pkgs/tools/security/corsmisc/default.nix
new file mode 100644
index 00000000000..4c64677f324
--- /dev/null
+++ b/pkgs/tools/security/corsmisc/default.nix
@@ -0,0 +1,25 @@
+{ buildGoModule
+, fetchFromGitHub
+, lib
+}:
+
+buildGoModule rec {
+  pname = "corsmisc";
+  version = "1.3.0";
+
+  src = fetchFromGitHub {
+    owner = "drsigned";
+    repo = pname;
+    rev = "v${version}";
+    sha256 = "18a70v093jl85vnih80i50wvac8hsg3f2gmcws9jyhj2brndq2qj";
+  };
+
+  vendorSha256 = "1bp6bf99rxlyg91pn1y228q18lawpykmvkl22cydmclms0q0n238";
+
+  meta = with lib; {
+    description = "Tool to discover CORS misconfigurations vulnerabilities";
+    homepage = "https://github.com/drsigned/corsmisc";
+    license = with licenses; [ mit ];
+    maintainers = with maintainers; [ fab ];
+  };
+}
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index b8bb27ef8b2..d2307064c63 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -1144,6 +1144,8 @@ in
 
   coolreader = libsForQt5.callPackage ../applications/misc/coolreader {};
 
+  corsmisc = callPackage ../tools/security/corsmisc { };
+
   cozy = callPackage ../applications/audio/cozy-audiobooks { };
 
   cpuid = callPackage ../os-specific/linux/cpuid { };