From nobody Mon Nov 7 15:42:04 2022 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4N5b7w3L9tz4hGCs; Mon, 7 Nov 2022 15:42:04 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4N5b7w1Z4Kz3j91; Mon, 7 Nov 2022 15:42:04 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1667835724; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=iwr91BwrX9d4HCfoSvWxVN12xvMreoyT4mRCaMTN2BI=; b=L3q9cg2bD5GZXpKd+Ht6A7DdK4In5QUgIFKqJoWfjJVibVKhWSSDgk+WVwkDRhrhu29usf WX6RWUrjQpr6iOXimzZaa4se3DNdMNqeytb9xKnoCZjtf43dodtu7lBJNuHxLH4h0muI9z YHvhAvWPR4SnpjdcJ7iKPcCenWscROU2QhUEVTvAP1QMBVok16H1vLPj83ZYO4k+lYLzRW Dwx8HGWdVBC73sxmt7+2THFPQGXASwWw6QRTgqi5nT4+6qu59JaEeU4fETENsLxDZ6sfoM sLv998PHhjqQSsi4MbPKleSbAzEPpXCB7Ot6oK5PlDfPFtjjGrpB3AEm0Rl/nQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4N5b7w0glRz15xL; Mon, 7 Nov 2022 15:42:04 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 2A7Fg4Vq066485; Mon, 7 Nov 2022 15:42:04 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2A7Fg417066484; Mon, 7 Nov 2022 15:42:04 GMT (envelope-from git) Date: Mon, 7 Nov 2022 15:42:04 GMT Message-Id: <202211071542.2A7Fg417066484@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Matthias Fechner Subject: git: 344c25a817dd - main - security/rubygem-omniauth-rails_csrf_protection: new port, required for gitlab-ce List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: mfechner X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 344c25a817dde021c682f72a4ffb3c63dbafbc3e Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1667835724; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=iwr91BwrX9d4HCfoSvWxVN12xvMreoyT4mRCaMTN2BI=; b=b7ue/P/WEryJ6lrdoNYgxD4pB2i51ribxhxb1ZJB/x86AUFMS6OIaiWUGuOkJkHQPMQ2r0 fJVD1IV9RkILdAOicEE3ENf1tKOmqj7gaDSVzXnCCc/AWSX/5mHdFYc+W7+yg8GWwJu04E 2HFv7DrdMKos7RyZDaZ/0RGxJDaNhM7DW2Q8IQRe8dYPkhSvVdTDy4kw/OhPdx/sW+5lxu /2oyskcAC3O8oVJmPPUb4Mfb+8pL/bhcMziekJNVej1rEr1MFSsFNB69VxhzY3RDOpCo1r +avag1FZ/PU0fMcIFyld5P0+zJ9STns6NtETmYqm8T8gjPdQe6SPiQwhm7Ip6Q== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1667835724; a=rsa-sha256; cv=none; b=UKVAFdJayt1X5j0Iev5LYkui9P+pXF21IFEjAlIj0DcbI+QIGtMHhiPOzPq1pcEeRtUmiT cW3p/hSJoqXxg4KIBNgR8KxZ086W2uyENBUMh00fOCs2Oix2tNUMSo38VONWc9S6z4Pb3j JhONJFIxjQZ0h06jwBY1mZZncKRV0sE99NMDWYLzmo9DTqJxMweOE65AYJdi+YQ3BauU8w ZB4LUc2jh5kIwG39YRyBCK43KQ5hSkdKsz4EXcBeQVg1F4+0CUQSg0VCwP/fJ31ks0aakB ajGEIpU0eFO4yXyktOlYf0np4V+VKAd9pq3/1TAIs5V2OdFPugFfnLcFNqMd/w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by mfechner: URL: https://cgit.FreeBSD.org/ports/commit/?id=344c25a817dde021c682f72a4ffb3c63dbafbc3e commit 344c25a817dde021c682f72a4ffb3c63dbafbc3e Author: Matthias Fechner AuthorDate: 2022-10-20 15:21:22 +0000 Commit: Matthias Fechner CommitDate: 2022-11-07 15:41:47 +0000 security/rubygem-omniauth-rails_csrf_protection: new port, required for gitlab-ce --- security/Makefile | 1 + .../rubygem-omniauth-rails_csrf_protection/Makefile | 21 +++++++++++++++++++++ .../rubygem-omniauth-rails_csrf_protection/distinfo | 3 +++ .../pkg-descr | 5 +++++ 4 files changed, 30 insertions(+) diff --git a/security/Makefile b/security/Makefile index 0ffcd131c72d..dfcf1c84c852 100644 --- a/security/Makefile +++ b/security/Makefile @@ -1097,6 +1097,7 @@ SUBDIR += rubygem-omniauth-jwt SUBDIR += rubygem-omniauth-multipassword SUBDIR += rubygem-omniauth-oauth2-generic + SUBDIR += rubygem-omniauth-rails_csrf_protection SUBDIR += rubygem-omniauth-saml SUBDIR += rubygem-omniauth-shibboleth SUBDIR += rubygem-omniauth1 diff --git a/security/rubygem-omniauth-rails_csrf_protection/Makefile b/security/rubygem-omniauth-rails_csrf_protection/Makefile new file mode 100644 index 000000000000..8bd530bec7e1 --- /dev/null +++ b/security/rubygem-omniauth-rails_csrf_protection/Makefile @@ -0,0 +1,21 @@ +PORTNAME= omniauth-rails_csrf_protection +PORTVERSION= 1.0.1 +CATEGORIES= security rubygems +MASTER_SITES= RG + +MAINTAINER= mfechner@FreeBSD.org +COMMENT= Mitigation against CVE-2015-9284 for OmniAuth +WWW= https://github.com/cookpad/omniauth-rails_csrf_protection + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE.txt + +RUN_DEPENDS= rubygem-actionpack61>=4.2:www/rubygem-actionpack61 \ + rubygem-omniauth>=2.0<3:security/rubygem-omniauth + +USES= gem +USE_RUBY= yes + +NO_ARCH= yes + +.include diff --git a/security/rubygem-omniauth-rails_csrf_protection/distinfo b/security/rubygem-omniauth-rails_csrf_protection/distinfo new file mode 100644 index 000000000000..1b794d0064f9 --- /dev/null +++ b/security/rubygem-omniauth-rails_csrf_protection/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1665830346 +SHA256 (rubygem/omniauth-rails_csrf_protection-1.0.1.gem) = fc546aeb7d43b7b9d7737051c380156e61c8f080b898cd4934d523eaa7e59acf +SIZE (rubygem/omniauth-rails_csrf_protection-1.0.1.gem) = 10752 diff --git a/security/rubygem-omniauth-rails_csrf_protection/pkg-descr b/security/rubygem-omniauth-rails_csrf_protection/pkg-descr new file mode 100644 index 000000000000..567c3562b734 --- /dev/null +++ b/security/rubygem-omniauth-rails_csrf_protection/pkg-descr @@ -0,0 +1,5 @@ +This gem provides a mitigation against CVE-2015-9284 +(Cross-Site Request Forgery on the request phrase when +using OmniAuth gem with a Ruby on Rails application) by +implementing a CSRF token verifier that directly utilize +`ActionController::RequestForgeryProtection` code from Rails.