Skip to content
  • Allan McRae's avatar
    Do not use WKD to import keys for package installs from a file · 632eb973
    Allan McRae authored
    
    
    In order to use WKD in pacman -U/--upgrade operations, we need to
    get the packager information from the .PKGINFO within the package.
    That has obvious security implications. e.g. something like this
    could convince a user to download a different key to what they
    expect:
    
    packager = foo bar <>^[[2K^[[0G:: Import PGP key DEADBEEF, "foo <bar>
    
    While downloading an untrusted key has little impact due to the
    web-of-trust model used by pacman, this could be bad in combination
    with an exploit that allowed trust of keys in the keyring to be
    altered.
    
    To be safe, do not use WKD when installing using -U.
    
    Fixes FS#73703.
    
    Signed-off-by: default avatarAllan McRae <allan@archlinux.org>
    632eb973