Page MenuHomeFreeBSD

libfetch: Reject control characters in credentials
ClosedPublic

Authored by des on Fri, Sep 25, 10:37 AM.
Tags
None
Referenced Files
F176554120: D60008.id188222.diff
Mon, Oct 19, 7:25 PM
Unknown Object (File)
Sun, Oct 18, 6:05 AM
Unknown Object (File)
Sun, Oct 18, 2:58 AM
Unknown Object (File)
Sat, Oct 17, 2:08 PM
Unknown Object (File)
Sat, Oct 17, 7:29 AM
Unknown Object (File)
Sat, Oct 17, 5:13 AM
Unknown Object (File)
Thu, Oct 15, 9:32 AM
Unknown Object (File)
Thu, Oct 15, 6:33 AM
Subscribers

Details

Summary

If a URL contains credentials, check that neither the user name nor the
password contain control characters.

MFC after: 1 week

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

des requested review of this revision.Fri, Sep 25, 10:37 AM
lib/libfetch/fetch.c
389

Shouldn't this be iscntrl()? isprint() will reject characters above 0x7f too, I'm not sure if that's desirable here.

use iscntrl() instead of !isprint()

des marked an inline comment as done.Wed, Sep 30, 4:36 PM

The commit log message should explain why.

This revision is now accepted and ready to land.Wed, Sep 30, 4:39 PM