Page MenuHomeFreeBSD

Src CommittersOrganization
ActivePublic

Recent Activity

Wed, Sep 2

bofh added a member for Src Committers: kfv.
Wed, Sep 2, 11:16 AM
dteske closed D59130: git-arc: SC2223 DoS-via-glob hardening.
Wed, Sep 2, 1:41 AM · Src Committers
dteske closed D59162: git-arc: Fix locals.
Wed, Sep 2, 1:40 AM · Src Committers

Tue, Sep 1

dteske added inline comments to D59130: git-arc: SC2223 DoS-via-glob hardening.
Tue, Sep 1, 6:52 PM · Src Committers
markj accepted D59130: git-arc: SC2223 DoS-via-glob hardening.

A heretofore undiscovered (and unmitigated) exploit that allows an attacker to write to a region of memory may allow setting one but not the other.

Tue, Sep 1, 6:42 PM · Src Committers
dteske retitled D59130: git-arc: SC2223 DoS-via-glob hardening from git-arc: Security fix to git-arc: SC2223 DoS-via-glob hardening.
Tue, Sep 1, 6:32 PM · Src Committers
dteske added a comment to D59130: git-arc: SC2223 DoS-via-glob hardening.

Context.

All my seceng colleagues point out that unquoted parameter expansion with the unintended consequences of glob expansion is a lack of defense-in-depth architecture with security implications.

In that context, this is very much a security bug.

What context are you referring to?

Tue, Sep 1, 6:22 PM · Src Committers
markj added a comment to D59130: git-arc: SC2223 DoS-via-glob hardening.

Context.

All my seceng colleagues point out that unquoted parameter expansion with the unintended consequences of glob expansion is a lack of defense-in-depth architecture with security implications.

In that context, this is very much a security bug.

Tue, Sep 1, 4:47 PM · Src Committers
dteske added a comment to D59130: git-arc: SC2223 DoS-via-glob hardening.

What security problem is being fixed here?

Denial-of-Service.

A poisoned LOCALBASE value such as:

LOCALBASE='/*/*/*/*/*/*/*/*/*/* /*/*/*/*/*/*/*/*/*/* /*/*/*/*/*/*/*/*/*/* /*/*/*/*/*/*/*/*/*/* /*/*/*/*/*/*/*/*/*/*'

NB: That's 5x (10x /*)

Causes massive disk I/O and only in the minority of cases with little-to-no filesystem contents does it only result in a minor inconvenience (sub 30 second delay in launch) whereas on moderately to substantially loaded filesystems (with many files) does it in-turn result in never getting passed the : ${LOCALBASE:=...} line.

What's going on when you don't quote the parameter expansion, is that globs get expanded. Yes, it's true that : throws those expanded arguments away, but the damage is done in the I/O and compute required to expand those globs.

Quoting the parameter expansion (as-in : "${LOCALBASE:=...}" prevents any globs stuffed into a poisoned LOCALBASE rendered inert.

Literally ShellCheck's SC2223 DoS-via-glob warning.

If someone can modify your environment variables, you're in a bad place already, e.g., if they point ARC_CMD to a script of their choosing.

While imaginative (injecting a 3rd party into the mix via "someone") that's not exactly the concern.

The word "poisoned" similarly evokes a third party.

Tue, Sep 1, 4:23 PM · Src Committers
markj added a comment to D59130: git-arc: SC2223 DoS-via-glob hardening.

What security problem is being fixed here?

Denial-of-Service.

A poisoned LOCALBASE value such as:

LOCALBASE='/*/*/*/*/*/*/*/*/*/* /*/*/*/*/*/*/*/*/*/* /*/*/*/*/*/*/*/*/*/* /*/*/*/*/*/*/*/*/*/* /*/*/*/*/*/*/*/*/*/*'

NB: That's 5x (10x /*)

Causes massive disk I/O and only in the minority of cases with little-to-no filesystem contents does it only result in a minor inconvenience (sub 30 second delay in launch) whereas on moderately to substantially loaded filesystems (with many files) does it in-turn result in never getting passed the : ${LOCALBASE:=...} line.

What's going on when you don't quote the parameter expansion, is that globs get expanded. Yes, it's true that : throws those expanded arguments away, but the damage is done in the I/O and compute required to expand those globs.

Quoting the parameter expansion (as-in : "${LOCALBASE:=...}" prevents any globs stuffed into a poisoned LOCALBASE rendered inert.

Literally ShellCheck's SC2223 DoS-via-glob warning.

If someone can modify your environment variables, you're in a bad place already, e.g., if they point ARC_CMD to a script of their choosing.

While imaginative (injecting a 3rd party into the mix via "someone") that's not exactly the concern.

Tue, Sep 1, 2:51 PM · Src Committers
dteske added a comment to D59130: git-arc: SC2223 DoS-via-glob hardening.

What security problem is being fixed here?

Denial-of-Service.

A poisoned LOCALBASE value such as:

LOCALBASE='/*/*/*/*/*/*/*/*/*/* /*/*/*/*/*/*/*/*/*/* /*/*/*/*/*/*/*/*/*/* /*/*/*/*/*/*/*/*/*/* /*/*/*/*/*/*/*/*/*/*'

NB: That's 5x (10x /*)

Causes massive disk I/O and only in the minority of cases with little-to-no filesystem contents does it only result in a minor inconvenience (sub 30 second delay in launch) whereas on moderately to substantially loaded filesystems (with many files) does it in-turn result in never getting passed the : ${LOCALBASE:=...} line.

What's going on when you don't quote the parameter expansion, is that globs get expanded. Yes, it's true that : throws those expanded arguments away, but the damage is done in the I/O and compute required to expand those globs.

Quoting the parameter expansion (as-in : "${LOCALBASE:=...}" prevents any globs stuffed into a poisoned LOCALBASE rendered inert.

Literally ShellCheck's SC2223 DoS-via-glob warning.

If someone can modify your environment variables, you're in a bad place already, e.g., if they point ARC_CMD to a script of their choosing.

Tue, Sep 1, 2:38 PM · Src Committers
markj added a comment to D59130: git-arc: SC2223 DoS-via-glob hardening.

What security problem is being fixed here?

Denial-of-Service.

A poisoned LOCALBASE value such as:

LOCALBASE='/*/*/*/*/*/*/*/*/*/* /*/*/*/*/*/*/*/*/*/* /*/*/*/*/*/*/*/*/*/* /*/*/*/*/*/*/*/*/*/* /*/*/*/*/*/*/*/*/*/*'

NB: That's 5x (10x /*)

Causes massive disk I/O and only in the minority of cases with little-to-no filesystem contents does it only result in a minor inconvenience (sub 30 second delay in launch) whereas on moderately to substantially loaded filesystems (with many files) does it in-turn result in never getting passed the : ${LOCALBASE:=...} line.

What's going on when you don't quote the parameter expansion, is that globs get expanded. Yes, it's true that : throws those expanded arguments away, but the damage is done in the I/O and compute required to expand those globs.

Quoting the parameter expansion (as-in : "${LOCALBASE:=...}" prevents any globs stuffed into a poisoned LOCALBASE rendered inert.

Literally ShellCheck's SC2223 DoS-via-glob warning.

Tue, Sep 1, 2:12 PM · Src Committers
markj accepted D59162: git-arc: Fix locals.
Tue, Sep 1, 2:04 PM · Src Committers
dteske added a comment to D59130: git-arc: SC2223 DoS-via-glob hardening.

What security problem is being fixed here?

Tue, Sep 1, 5:17 AM · Src Committers
dteske added reviewers for D59162: git-arc: Fix locals: markj, adrian.
Tue, Sep 1, 5:04 AM · Src Committers

Fri, Aug 28

peterj added a member for Src Committers: peterj.
Fri, Aug 28, 7:15 PM

Tue, Aug 25

dteske closed D59129: git-arc: Handle -h on subcommands and align usage with the man page.
Tue, Aug 25, 8:49 PM · Src Committers
markj accepted D59129: git-arc: Handle -h on subcommands and align usage with the man page.
Tue, Aug 25, 5:33 PM · Src Committers

Mon, Aug 24

dteske added inline comments to D59130: git-arc: SC2223 DoS-via-glob hardening.
Mon, Aug 24, 9:18 PM · Src Committers
dteske closed D59019: git-arc: -t tag support for create to set Phabricator project tags.
Mon, Aug 24, 9:05 PM · Src Committers
dteske updated the diff for D59129: git-arc: Handle -h on subcommands and align usage with the man page.

Refactor. While considering the value of checking for -h at the sub-
command level versus globally, it became clear that we could do one
better. Checking for -h globally is woefully incongruent with the
given sub-command's option-flags. To be concise: one cannot know
whether -h is a true request for usage or something that by POSIX
standards should be considered an argument. To avoid having to
teach the global check about all the possible getopts variations of
each sub-command, it was deemed most-appropriate to allow handing-
off the actual usage check to each sub-command. However, that left-
open the quagmire that was prematurely sourcing git-sh-setup where
I believe it to be much more correct to only source that (and check
for external dependencies) after one has determined that the user
has not requested the usage statement. Generally speaking, the user
should be able to get the usage statement without having to first
satisfy every dependency (wherein git-sh-setup is also considered
another dependency).

Mon, Aug 24, 9:00 PM · Src Committers
dteske updated the summary of D59129: git-arc: Handle -h on subcommands and align usage with the man page.
Mon, Aug 24, 8:48 PM · Src Committers
dteske updated the summary of D59129: git-arc: Handle -h on subcommands and align usage with the man page.
Mon, Aug 24, 8:47 PM · Src Committers
dteske requested review of D59162: git-arc: Fix locals.
Mon, Aug 24, 8:38 PM · Src Committers
dteske added inline comments to D59129: git-arc: Handle -h on subcommands and align usage with the man page.
Mon, Aug 24, 6:15 PM · Src Committers
dteske added inline comments to D59129: git-arc: Handle -h on subcommands and align usage with the man page.
Mon, Aug 24, 2:37 PM · Src Committers
dteske added inline comments to D59129: git-arc: Handle -h on subcommands and align usage with the man page.
Mon, Aug 24, 2:33 PM · Src Committers
dteske added inline comments to D59129: git-arc: Handle -h on subcommands and align usage with the man page.
Mon, Aug 24, 2:26 PM · Src Committers
markj added inline comments to D59129: git-arc: Handle -h on subcommands and align usage with the man page.
Mon, Aug 24, 2:24 PM · Src Committers
dteske added inline comments to D59129: git-arc: Handle -h on subcommands and align usage with the man page.
Mon, Aug 24, 2:13 PM · Src Committers
markj accepted D59129: git-arc: Handle -h on subcommands and align usage with the man page.
Mon, Aug 24, 1:18 PM · Src Committers
markj accepted D59019: git-arc: -t tag support for create to set Phabricator project tags.
Mon, Aug 24, 1:07 PM · Src Committers
markj added a comment to D59130: git-arc: SC2223 DoS-via-glob hardening.

What security problem is being fixed here?

Mon, Aug 24, 1:03 PM · Src Committers
imp added inline comments to D59130: git-arc: SC2223 DoS-via-glob hardening.
Mon, Aug 24, 4:47 AM · Src Committers

Sun, Aug 23

dteske requested review of D59130: git-arc: SC2223 DoS-via-glob hardening.
Sun, Aug 23, 7:31 PM · Src Committers
adrian added a comment to D59129: git-arc: Handle -h on subcommands and align usage with the man page.

thanks! @markj what do you think?

Sun, Aug 23, 6:52 PM · Src Committers
dteske requested review of D59129: git-arc: Handle -h on subcommands and align usage with the man page.
Sun, Aug 23, 6:44 PM · Src Committers

Fri, Aug 21

bz added a member for Src Committers: bz.
Fri, Aug 21, 1:20 PM

Thu, Aug 20

lwhsu removed a reviewer for D59019: git-arc: -t tag support for create to set Phabricator project tags: scheduler.
Thu, Aug 20, 8:17 PM · Src Committers
Herald added a reviewer for D59019: git-arc: -t tag support for create to set Phabricator project tags: scheduler.
Thu, Aug 20, 6:52 PM · Src Committers
dteske updated the diff for D59019: git-arc: -t tag support for create to set Phabricator project tags.

Same but for man-page

Thu, Aug 20, 5:23 PM · Src Committers
dteske updated the summary of D59019: git-arc: -t tag support for create to set Phabricator project tags.
Thu, Aug 20, 5:19 PM · Src Committers
dteske updated the diff for D59019: git-arc: -t tag support for create to set Phabricator project tags.

Only introduce -t

Thu, Aug 20, 5:19 PM · Src Committers
dteske updated the diff for D59019: git-arc: -t tag support for create to set Phabricator project tags.

Advertise -h in all sub-commands.

Thu, Aug 20, 5:15 PM · Src Committers
dteske updated the diff for D59019: git-arc: -t tag support for create to set Phabricator project tags.

Fix synopsis to align with man-page/code. Refactor.

Thu, Aug 20, 5:13 PM · Src Committers
dteske added inline comments to D59019: git-arc: -t tag support for create to set Phabricator project tags.
Thu, Aug 20, 4:47 PM · Src Committers
dteske added a comment to D59019: git-arc: -t tag support for create to set Phabricator project tags.

devin, let's split the 'handle -h and provide better help' change from the tag handling change.

Thu, Aug 20, 4:35 PM · Src Committers
dteske added inline comments to D59019: git-arc: -t tag support for create to set Phabricator project tags.
Thu, Aug 20, 4:33 PM · Src Committers
adrian added a comment to D59019: git-arc: -t tag support for create to set Phabricator project tags.

devin, let's split the 'handle -h and provide better help' change from the tag handling change.

Thu, Aug 20, 4:31 PM · Src Committers
dteske added inline comments to D59019: git-arc: -t tag support for create to set Phabricator project tags.
Thu, Aug 20, 4:31 PM · Src Committers