Lucene search

K
rubygemsRubySecRUBY:GOLLUM-GRIT_ADAPTER-2014-9489
HistoryDec 03, 2014 - 9:00 p.m.

gollum-grit_adapter Search Functionality Allows Arbitrary Command Execution

2014-12-0321:00:00
RubySec
github.com
4

CVSS2

6.5

Attack Vector

NETWORK

Attack Complexity

LOW

Authentication

SINGLE

Confidentiality Impact

PARTIAL

Integrity Impact

PARTIAL

Availability Impact

PARTIAL

AV:N/AC:L/Au:S/C:P/I:P/A:P

CVSS3

8.8

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

LOW

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

HIGH

Integrity Impact

HIGH

Availability Impact

HIGH

CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

The gollum-grit_adapter gem contains a flaw that can allow arbitrary
command execution.

Grit implements its search functionality by shelling out to git grep. In
turn, git grep takes a -O or --open-files-in-pages option that will
pipe the results of grep to an arbitrary process. By failing to properly
sanitize user input search parameters, an attacker can thus perform command
execution.

Note that the grep result must find the string ‘master’ (or
whatever is the default branch that gollum uses) in any of the wiki’s
documents for this to succeed.

Affected configurations

Vulners
Node
rubygollum-grit_adapterRange0.1.1
VendorProductVersionCPE
rubygollum-grit_adapter*cpe:2.3:a:ruby:gollum-grit_adapter:*:*:*:*:*:*:*:*

CVSS2

6.5

Attack Vector

NETWORK

Attack Complexity

LOW

Authentication

SINGLE

Confidentiality Impact

PARTIAL

Integrity Impact

PARTIAL

Availability Impact

PARTIAL

AV:N/AC:L/Au:S/C:P/I:P/A:P

CVSS3

8.8

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

LOW

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

HIGH

Integrity Impact

HIGH

Availability Impact

HIGH

CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Related for RUBY:GOLLUM-GRIT_ADAPTER-2014-9489