CVE and update status of the FreeBSD ports tree4,526 unaddressed CVEs in 616 portsAll times are CET

Port details

security/doas6.4

Simple sudo alternative to run commands as another user

Maintainer
jsmith@resonatingmedia.com
Packages
doas 6.4
Upstream
up to date
CPE
doas_project:doas from the port
WWW
https://codeberg.org/thejessesmith/doas/
Links
cgit · VuXML

Unaddressed (0) · The CVE record lists this version as affected, no VuXML entry names the CVE

None. There is no CVE without a VuXML entry for this version.

VuXML only (0) · listed, port not fixed yet

None. pkg audit reports nothing for this version.

Fixed (1)

Show 1 fixed
VuXML entries whose affected range this version has left.

Commits (39)

Daniel Engberg (diizzy) · 6.4
*/*: Refresh checksums for on the fly archives on codeberg.org

See https://codeberg.org/Codeberg/Community/issues/2861

Approved by:	blanket
8b79ada9a6
Vladimir Druzenko (vvd) · 6.4
security/doas: Update 6.3p13 => 6.4

Changelog:
- Fix some typos in the documentation.
- Cause doasedit to better handle shell variables and find the best
  text editor for altering files.

Improve port:
- Move BINMODE=4755 to plist: "@(,,4755) bin/doas" - BINMODE is applied
  universally (to all programs and scripts). This means helper scripts
  like doasedit, which are meant to be run as a regular user, were also
  installed as setuid. This is a potential security issue.
- Move plist to file.
- Add "@sample" for "etc/doas.conf.sample".

PR:		293628
Sponsored by:	UNIS Labs
MFH:		2026Q2
Co-authored-by:	Vladimir Druzenko <vvd@FreeBSD.org>
b9d5e73e06
Hiroki Tagato (tagattie) · 6.3p13
security/doas: update to 6.3p13 and switch to new upsteam

The upstream repository has migrated from GitHub to CodeBerg. There
has also been a new update which fixes editing files with a leading
slash (/) character and enables building on illumos/OmniOS.

PR:		289344
Reported by:	Jesse Smith <jsmith@resonatingmedia.com> (maintainer)
96c4d6a107
Vladimir Druzenko (vvd) · 6.3p12
security/{open,}doas: add CONFLICTS to each other

They install files with the same names.

PR:		279598
Reported by:	fluffy (via email)
Fixes:		2820df617d13 (new port: portable version of OpenBSD's doas)
1acc62c562
Vladimir Druzenko (vvd) · 6.3p12
security/doas: update to 6.3p12

6.3p11:
* Cleaned up error checking for temporary files, removed redundant check.
* Fixed status check for copy and editor launch.

6.3p12:
* Make sure doasedit can work when target file to edit has a leading slash
character. ie A full path name is used.
* Update doas.1 manual page to indicate problems with piping input
on Linux when processes are launched by doas.

Upstream release announcement:
https://github.com/slicer69/doas/releases/tag/6.3p11
https://github.com/slicer69/doas/releases/tag/6.3p12

PR:	278897
MFH:	2024Q2
e05da69d0d
Vladimir Druzenko (vvd) · 6.3p10
security/doas: update to 6.3p10

This is a minor upgrade which includes two fixes for the doasedit utility,
allowing it to work with files containing special characters and including
more error checking.

Upstream release announcement:
https://github.com/slicer69/doas/releases/tag/6.3p10

PR:	278683
MFH:	2024Q2
fca92006e5
Baptiste Daroussin (bapt) · 6.3p9_1
MAN?PREFIX: eleminate its usage  and move man to share/man
e4610fcb8b
Fernando Apesteguía (fernape) · 6.3p9
security/doas: Update to 6.3p9

ChangeLog: https://github.com/slicer69/doas/releases/tag/6.3p9

PR:		266413
Reported by:	jsmith@resonatingmedia.com (maintainer)
d3198d9a7b
Fernando Apesteguía (fernape) · 6.3p7
security/doas: update to 6.3p7

PR:		266387
Reported by:	jsmith@resonatingmedia.com (maintainer)
155822900e
Stefan Eßer (se) · 6.3p6
Remove WWW entries moved into port Makefiles

Commit b7f05445c00f has added WWW entries to port Makefiles based on
WWW: lines in pkg-descr files.

This commit removes the WWW: lines of moved-over URLs from these
pkg-descr files.

Approved by:		portmgr (tcberner)
fb16dfecae
Stefan Eßer (se) · 6.3p6
Add WWW entries to port Makefiles

It has been common practice to have one or more URLs at the end of the
ports' pkg-descr files, one per line and prefixed with "WWW:". These
URLs should point at a project website or other relevant resources.

Access to these URLs required processing of the pkg-descr files, and
they have often become stale over time. If more than one such URL was
present in a pkg-descr file, only the first one was tarnsfered into
the port INDEX, but for many ports only the last line did contain the
port specific URL to further information.

There have been several proposals to make a project URL available as
a macro in the ports' Makefiles, over time.

This commit implements such a proposal and moves one of the WWW: entries
of each pkg-descr file into the respective port's Makefile. A heuristic
attempts to identify the most relevant URL in case there is more than
one WWW: entry in some pkg-descr file. URLs that are not moved into the
Makefile are prefixed with "See also:" instead of "WWW:" in the pkg-descr
files in order to preserve them.

There are 1256 ports that had no WWW: entries in pkg-descr files. These
ports will not be touched in this commit.

The portlint port has been adjusted to expect a WWW entry in each port
Makefile, and to flag any remaining "WWW:" lines in pkg-descr files as
deprecated.

Approved by:		portmgr (tcberner)
b7f05445c0
Stefan Eßer (se) · 6.3p6
security/doas: Add CPE information

Approved by:	portmgr (blanket)
6644157908
Nuno Teixeira (eduardo) · 6.3p6
security/doas: Update to 6.3p6

ChangeLog: https://github.com/slicer69/doas/releases/tag/6.3p6

PR:		258483
cef711955c
Nuno Teixeira (eduardo) · 6.3p5
security/doas: port update to 6.3p5

ChangeLog: https://github.com/slicer69/doas/releases

PR:		256447
Approved by:	dbaio, garga (mentors, implicit)
42a72a581b
Mathieu Arnold (mat) · 6.3p4
One more small cleanup, forgotten yesterday. Reported by:	lwhsu
cf118ccf87
Mathieu Arnold (mat) · 6.3p4
Remove # $FreeBSD$ from Makefiles.
305f148f48
Dmitry Marakasov (amdmi3) · 6.3p4
- Update to 6.3p4

PR:		253010
Submitted by:	jsmith@resonatingmedia.com (maintainer)
5bfeb4a58a
Jan Beich (jbeich) · 6.3p2
security/doas: update to 6.3p2

Changes:	https://github.com/slicer69/doas/releases/tag/6.3p1
Changes:	https://github.com/slicer69/doas/releases/tag/6.3p2
PR:		248524
Submitted by:	jsmith@resonatingmedia.com (maintainer)
4884295c9f
Fernando Apesteguía (fernape) · 6.3_1
security/doas: Add upstream doas.conf.sample

PR:	247496
Submitted by:	ed.arrakis@gmail.com
Approved by:	jsmith@resonatingmedia.com (maintainer)
41611e38e8
Xin LI (delphij) · 6.3
security/doas: update to 6.3.

PR:		247467
Submitted by:	maintainer (jsmith resonatingmedia com)
62e5d9deba
Tobias C. Berner (tcberner) · 6.2p4_1
security/doas: Manual page cleanup

PR:		245238
Submitted by:	jsmith@resonatingmedia.com (maintainer)
MFH:		2020Q2
ded6e9f445
Kurt Jaeger (pi) · 6.2p4
security/doas: upgrade 6.2 -> 6.2p4

PR:		242931
Submitted by:	jsmith@resonatingmedia.com (maintainer)
Relnotes:	https://github.com/slicer69/doas/releases/tag/6.2p4
95afc0b327
Steve Wills (swills) · 6.2
security/doas: Update to 6.2

PR:		240305
Submitted by:	jsmith@resonatingmedia.com (maintainer)
a0f9b06dbf
Kai Knoblich (kai) · 6.1
security/doas: Update to 6.1

* Update the pkg-message to give users that install/upgrade the port some
  info about the changed behavior regarding the environment variables. [1]

* Make the configuration of target user's sanitized $PATH that is set at
  compile time more flexible by enabling users to configure it via
  _GLOBAL_PATH. [2]

* Also pet portlint/portclippy by placing USES to the top of the USES block
  and remove the superfluous occurence of GH_PROJECT while I'm here.

Changelog:

* Most environment variables are no longer copied to the target user's
  environment. This avoids corrupting files through use of $HOME, for
  example.

  When environment variables are required, keepenv can be set in the
  doas.conf file.

* The target user's sanitized $PATH can be set at compile time to avoid
  passing malicious executables to the target user's path.

https://github.com/slicer69/doas/releases/tag/6.1

PR:		239629
Submitted by:	jsmith@resonatingmedia.com (maintainer)
Approved by:	jsmith@resonatingmedia.com (maintainer) [1] [2]
MFH:		2019Q3
2c4ec752b6
Tobias Kortkamp (tobik) · 6.0p3
security/doas: Convert pkg-message to UCL
9876db6cf8
Steve Wills (swills) · 6.0p3
security/doas: Port update to 6.0p3

PR:		236465
Submitted by:	jsmith@resonatingmedia.com (maintainer)
519af4e454
Vanilla I. Shu (vanilla) · 6.0p2
Update to 6.0p2.

PR:		222936
Submitted by:	maintainer
e18b992ad9
Tobias Kortkamp (tobik) · 6.0p1
security/doas: Update to 6.0p1

This update brings the security/doas port up to date with upstream.
This gives us the added benefit of restricted path searching.  Which
means if the admin puts a relative path in the doas.conf file, doas
will limit the number of places where the executable can be found.
This prevents users from putting malicious executables with the same
name in their custom path.

PR:		222092
Submitted by:	jsmith@resonatingmedia.com (maintainer)
MFH:		2017Q3
1d1c7d3eca
Joseph Mingrone (jrm) · 6.0p0
security/doas: Update to version 6.0p.

- Pull tarball from a GitHub release rather than a commit.
- Update license information.  There is code under BSD2CLAUSE and code
  under ISCL.

PR:		217176
Submitted by:	jsmith@resonatingmedia.com (maintainer)
Approved by:	mat, swills (mentor, implicit)
Differential Revision:	https://reviews.freebsd.org/D9664
3388f3de08
Wen Heping (wen) · 5.9p7
- Update to 5.9p7

PR:		214414
Submitted by:	jsmith@resonatingmedia.com(maintainer)
a70709760b
Pawel Pekala (pawel) · 5.9p6
Update to version 5.9p6

PR:		212975
Submitted by:	maintainer
8f25eef43e
Ben Woods (woodsb02) · 5.9p5
security/doas: Update to 5.9p5

This update enforces the correct uid and gid when -u switch is used.

PR:		211622
Reported by:	telnetuserid@sdf.org
Submitted by:	jsmith@resonatingmedia.com (maintainer)
Approved by:	koobs, adamw (mentors)
Relnotes:	https://github.com/slicer69/doas/releases/tag/v5.9-5
Differential Revision:	https://reviews.freebsd.org/D7630
fe6d7bfa94
Christian Weisgerber (naddy) · 5.9p4
Update to 5.9p4, which fixes a bug where command output is not displayed properly when the user authenticates with "nopass" specified in the doas.conf configuration file.

PR:		210851
Submitted by:	jsmith@resonatingmedia.com (maintainer)
e1f3397259
Kurt Jaeger (pi) · 5.9p2
security/doas: 5.9p1 -> 5.9p2

- fixed a bug where, when the user authenticates successfully as root,
  only the user's effective user id (euid) becomes zero (0).
  This leads to file permission errors when performing upgrades or
  other file-oriented operations.
- introduced gmake as a dependency as it is needed to process upstream's
  makefile.

PR:		210596
Submitted by:	jsmith@resonatingmedia.com (maintainer)
665abd49cf
Ollivier Robert (roberto) · 5.9p1
Fix filename in distinfo.

PR:		210553
Submitted by:	t@tobik.me
c18e71f49d
Ollivier Robert (roberto) · 5.9p1
Change PORTREVISION to something sensible as upstream did not change.

Reported by:	mat
1a4601bd17
Ollivier Robert (roberto) · 5.9
Missed the fact that ${ETCDIR} includes the port's name.

Submitted by:	@mordin_ on Twitter.
33d3d55396
Ollivier Robert (roberto) · 5.9
Update to commit 720db72 to fix a security issue.

Reported by:	Bryan Steele (@canadianbryan on Twitter)
d0474ec82b
Ollivier Robert (roberto) · 5.9
New port: security/doas

The doas program allows users to run commands as another user (usually
root). The doas program was written by the OpenBSD team to provide a
lightweight, simplified (and more secure) alternative to the sudo command.

Original upstream (OpenBSD) source:
http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/usr.bin/doas/

FreeBSD version: https://github.com/slicer69/doas

NOTE: I added the two patch files to workaround issues mentioned in the PR
about hardcoding of /usr/local.

PR:		210473
Submitted by:	jsmith@resonatingmedia.com
Modified by:	jrm@ftfl.ca (see PR) and me (roberto)
f93bc3ba8f