rclone version and security concern

kiriak

Contributor
Joined
Mar 2, 2020
Messages
122
Maybe not a major issue, but there is a recommendation to update rclone due to less strong passwords in certain versions

https://en.wikipedia.org/wiki/Rclone

https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-28924


According to posts in the following thread, the user cannot update the rclone

https://www.truenas.com/community/threads/how-to-update-rclone.84684/


In my test TrueNAS setup with the latest Core version, the rclone is 1.53.1 I think.
Is this a concern regarding encrypted cloud backups?
 

kiriak

Contributor
Joined
Mar 2, 2020
Messages
122
Oh....
you are trying to teach an old dog new tricks :grin:

anyway, I'll see what I can do ..........
 

kiriak

Contributor
Joined
Mar 2, 2020
Messages
122

NugentS

MVP
Joined
Apr 16, 2020
Messages
2,947
Looks to me like U6 has 1.56 in it
 

kiriak

Contributor
Joined
Mar 2, 2020
Messages
122
Unfortunately,
my newly installed U6 still reports rclone v.1.53.1-DEV
 

Samuel Tai

Never underestimate your own stupidity
Moderator
Joined
Apr 24, 2020
Messages
5,399
Unfortunately,
my newly installed U6 still reports rclone v.1.53.1-DEV
Confirmed. On my 12.0-U6, I see:

Code:
root@raven:~ # rclone --version
rclone v1.53.1-DEV
- os/arch: freebsd/amd64
- go version: go1.16.4
 
Joined
Oct 22, 2019
Messages
3,641
The ticket says
Status: Done
Fix Version(s): 12.0-U6


But like @Samuel Tai and @kiriak, I just confirmed on U6, it is 1.53.1-DEV
 

Samuel Tai

Never underestimate your own stupidity
Moderator
Joined
Apr 24, 2020
Messages
5,399
Looking at the actual git commits in https://jira.ixsystems.com/browse/NAS-111588, it's not a full upgrade to 1.56, but a minor backport of a file validity check to stop assuming a non-zero-size object is a file:

Code:
net/rclone/Makefile

# $FreeBSD$
 
PORTNAME= rclone
-PORTREVISION= 2
+PORTREVISION= 3
DISTVERSIONPREFIX= v
DISTVERSION= 1.53.1
CATEGORIES= net


Code:
net/rclone/files/patch-backend__drive__drive.go
--- backend/drive/drive.go.orig
+++ backend/drive/drive.go
@@ -1321,8 +1321,8 @@ func (f *Fs) newLinkObject(remote string, info *drive.File, extension, exportMim
 //
 // When the drive.File cannot be represented as an fs.Object it will return (nil, nil).
 func (f *Fs) newObjectWithInfo(remote string, info *drive.File) (fs.Object, error) {
- // If item has MD5 sum or a length it is a file stored on drive
- if info.Md5Checksum != "" || info.Size > 0 {
+ // If item has MD5 sum it is a file stored on drive
+ if info.Md5Checksum != "" {
   return f.newRegularObject(remote, info), nil
  }
 
@@ -1355,8 +1355,8 @@ func (f *Fs) newObjectWithExportInfo(
   // Pretend a dangling shortcut is a regular object
   // It will error if used, but appear in listings so it can be deleted
   return f.newRegularObject(remote, info), nil
- case info.Md5Checksum != "" || info.Size > 0:
-  // If item has MD5 sum or a length it is a file stored on drive
+ case info.Md5Checksum != "":
+  // If item has MD5 sum it is a file stored on drive
   return f.newRegularObject(remote, info), nil
  case f.opt.SkipGdocs:
   fs.Debugf(remote, "Skipping google document type %q", info.MimeType)
 
Top