remove `-uacomment` #15048

issue isghe opened this issue on December 28, 2018
  1. isghe commented at 1:51 AM on December 28, 2018: contributor

    I think it can be a security problem, in a way I don't know, but:

    $ bitcoind -h
    …
     -uacomment=<cmt>
           Append comment to the user agent string
    …
    

    it looks to be dangerous and unnecessary. https://github.com/spesmilo/electrum/issues/4968#issuecomment-450268698

  2. achow101 commented at 3:55 AM on December 28, 2018: member

    NACK. The user agent comment is rarely shown to the user. When shown to the user, it is explicitly known to be part of a node's user agent string and is never shown in it's own dialog or message without surrounding context that makes it clear it is a user agent string for another node. I see no reason to remove this whatsoever.

  3. luke-jr commented at 3:57 AM on December 28, 2018: member

    Agree with @achow101.

    NACK

    If there is concern about how it is displayed, it should be addressed on that end. Making it harder to add comments doesn't help anyone.

  4. Manbearpixel commented at 4:29 AM on December 28, 2018: none

    I think this is a valid topic to discuss. It's about future proofing exploitable details of a codebase. We want mainstream adoption and to that end there should be considerations that future users might not realize some form of text is not official.

    While a user agent string to me isn't necessarily an alarming feature, some retrospective thought should be done on other flags or optional details that a bitcoin client might have exposed or available to be displayed. @isghe Do you have some examples where a user agent string in this case could be exploited or used to phish / attack another client?

  5. MarcoFalke commented at 11:33 AM on December 28, 2018: member

    Any fancy characters in the string are removed before displaying it to the user.

  6. markaw67 commented at 2:14 AM on December 29, 2018: none

    I do have a copy of a user attempting to use a phish/attack.

  7. Manbearpixel commented at 4:30 AM on December 29, 2018: none

    @markaw67 So someone was trying to use the user agent string maliciously? Do you have a screenshot of this? How did you discover it?

  8. fanquake closed this on May 28, 2019

  9. DrahtBot locked this on Dec 16, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-15 03:14 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me