It has been discovered that lftp up to and including version 4.8.3 does not properly sanitize remote file names, leading to a loss of integrity on the local system when reverse mirroring is used. A remote attacker may trick a user to use reverse mirroring on an attacker controlled FTP server, resulting in the removal of all files in the current working directory of the victim's system.
{ "vanir_signatures": [ { "signature_version": "v1", "signature_type": "Line", "target": { "file": "src/MirrorJob.cc" }, "deprecated": false, "digest": { "line_hashes": [ "244349369390668892595797760314999903510", "169581960840769298460240584613330507836", "146173860621971291836711667024800615959", "265483531252542994341281140526620986764", "107893587868234888144271310072353078929", "177756483980309683573063113426513097788", "288231527058620403338738675996276698652", "186893300704398393330693503705449305809", "223082308941403541402446697448846864745", "246633982740027109863840830855835297073", "21437594345881515407454960924631063328", "263669221529071279021023875539765791453", "173948165701196518792053061803653348440", "200140341648536081675757215393212583628", "16159581719100287329306216419001680671", "190649493202440113952718091698091985904", "180253791564285096656708248770043869326", "280245675576124995661559451913257467503", "200598246181497449339911598896651219367", "148684542870797260629902892665989974285", "76746558407179739893964469272790056611", "29291969798750880168856342168538504014", "233352089558434665714063550268823556344", "193065030735708514606678143362412964383", "193962930268369251624570650910520533367", "85664116373117485569111148701715145064", "287534179326712448988736661749163428167", "305769131065035972015028436761998493066", "26256688570243295304376914988958272674", "295539120064017512284362546220385050289", "207693647384250029276508105234085443761", "243476246154124037433451746078703124810", "162797194599769761067522937082633691032", "200598246181497449339911598896651219367", "148684542870797260629902892665989974285", "137882739764527447604796128799422246106", "229325972409361524971109481980906178033" ], "threshold": 0.9 }, "id": "CVE-2018-10916-a1d81ad8", "source": "https://github.com/lavv17/lftp/commit/a27e07d90a4608ceaf928b1babb27d4d803e1992" }, { "signature_version": "v1", "signature_type": "Function", "target": { "file": "src/MirrorJob.cc", "function": "MirrorJob::Do" }, "deprecated": false, "digest": { "length": 14791.0, "function_hash": "52361239392641749069012112899986580012" }, "id": "CVE-2018-10916-deba50ee", "source": "https://github.com/lavv17/lftp/commit/a27e07d90a4608ceaf928b1babb27d4d803e1992" } ] }