Skip to content

[Security] UID/GID validation lacks system UID range checking #253

@Mossaka

Description

@Mossaka

Priority

Low

Description

The current UID/GID validation doesn't check against system UID ranges. This could allow using system UIDs (typically 0-999) which may have unintended privileges.

Impact

  • Severity: Low
  • Attack Vector: Using system UIDs could bypass some security checks
  • Risk: Privilege escalation via system UID usage

Proposed Solution

Add validation to reject system UID ranges:

// Reject UIDs 0-999 (system range on most Linux distributions)
if (uid < 1000) {
  throw new Error('UID must be >= 1000 (system UIDs not allowed)');
}

Effort Estimate

~1 hour

References

Metadata

Metadata

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions