Page MenuHomeFreeBSD

libfetch: Reject control characters in credentials
ClosedPublic

Authored by des on Fri, Sep 25, 10:37 AM.
Tags
None
Referenced Files
F176246247: D60008.id187651.diff
Sat, Oct 17, 7:29 AM
F176235706: D60008.id188222.diff
Sat, Oct 17, 5:13 AM
Unknown Object (File)
Thu, Oct 15, 9:32 AM
Unknown Object (File)
Thu, Oct 15, 6:33 AM
Unknown Object (File)
Thu, Oct 15, 5:13 AM
Unknown Object (File)
Tue, Oct 13, 3:14 PM
Unknown Object (File)
Mon, Oct 12, 7:47 AM
Unknown Object (File)
Sun, Oct 11, 11:49 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