diff --git a/documentation/modules/exploit/multi/http/gitlab_github_import_rce_cve_2022_2992.md b/documentation/modules/exploit/multi/http/gitlab_github_import_rce_cve_2022_2992.md index ec1b9be570..8d87395ca6 100644 --- a/documentation/modules/exploit/multi/http/gitlab_github_import_rce_cve_2022_2992.md +++ b/documentation/modules/exploit/multi/http/gitlab_github_import_rce_cve_2022_2992.md @@ -121,7 +121,7 @@ The local port to listen on. This is the port to be used when creating the tunne ## Scenarios -### Doker container running Gitlab 15.3.1 +### Docker container running Gitlab 15.3.1 ``` msf6 exploit(multi/http/gitlab_github_import_rce_cve_2022_2992) > options diff --git a/lib/msf/core/exploit/remote/http/gitlab/access_tokens.rb b/lib/msf/core/exploit/remote/http/gitlab/access_tokens.rb index a45856ef87..4f175475a2 100644 --- a/lib/msf/core/exploit/remote/http/gitlab/access_tokens.rb +++ b/lib/msf/core/exploit/remote/http/gitlab/access_tokens.rb @@ -5,7 +5,7 @@ module Msf::Exploit::Remote::HTTP::Gitlab::AccessTokens # Create Gitlab access access token # # @return [String,nil] Gitlab personal access token if created, nil otherwise - def gitlab_create_access_token + def gitlab_create_personal_access_token res = send_request_cgi({ 'method' => 'POST', 'uri' => normalize_uri(target_uri.path, '/-/profile/personal_access_tokens'), @@ -33,7 +33,7 @@ module Msf::Exploit::Remote::HTTP::Gitlab::AccessTokens # Revoke Gitlab personal access token # # @return [nil,GitLabClientError] nil if revoke, Msf::Exploit::Remote::HTTP::Gitlab::GitLabClientError otherwise - def gitlab_revoke_access_token(api_token) + def gitlab_revoke_personal_access_token(personal_access_token) res = send_request_cgi({ 'method' => 'DELETE', 'uri' => normalize_uri(target_uri.path, '/api/v4/personal_access_tokens/self'), diff --git a/lib/msf/core/exploit/remote/http/gitlab/import.rb b/lib/msf/core/exploit/remote/http/gitlab/import.rb index f662b8bef2..ea5ada1c06 100644 --- a/lib/msf/core/exploit/remote/http/gitlab/import.rb +++ b/lib/msf/core/exploit/remote/http/gitlab/import.rb @@ -4,8 +4,8 @@ module Msf::Exploit::Remote::HTTP::Gitlab::Import # Import a repository from a remote URL # - # @return [String,nil] Import ID if succefull enqueue, nil otherwise - def gitlab_import_github_repo(group_name, github_hostname, api_token) + # @return [String,nil] Import ID if successfully enqueued, nil otherwise + def gitlab_import_github_repo(group_name:, github_hostname:, api_token:) res = send_request_cgi({ 'method' => 'POST', 'uri' => normalize_uri(target_uri.path, '/api/v4/import/github'),