Skip to content

[security] Do not store username/password in extended attributes when enabling --xattr flag #3423

@sidhpurwala-huzaifa

Description

@sidhpurwala-huzaifa

https://nvd.nist.gov/vuln/detail/CVE-2018-20483 contains the relevant information, can be reproduced by:

[huzaifas@babylon test]$ curl http://user1:redhat@localhost -o file --xattr
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0

[huzaifas@babylon test]$ getfattr curl
getfattr: curl: No such file or directory
[huzaifas@babylon test]$ getfattr file
# file: file
user.mime_type
user.xdg.origin.url

[huzaifas@babylon test]$ getfattr -n user.xdg.origin.url file
# file: file
user.xdg.origin.url="http://user1:redhat@localhost/"

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions