Skip to content

Commit 7915ac5

Browse files
committed
Bugfix: Prevent cleartext transmission of tz data during build
grunt build script downloaded tz data via unencrypted ftp, which could enable an attacker to MITM and provide a bogus tz data, compromising the build pipeline or the whole build moment. Switch to using an https endpoing provided by IANA to avoid this. Advisory: GHSA-v78c-4p63-2j6c
1 parent ce955a3 commit 7915ac5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tasks/data-download.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ module.exports = function (grunt) {
99

1010
var done = this.async(),
1111
src = (version === 'latest' ?
12-
'ftp://ftp.iana.org/tz/tzdata-latest.tar.gz' :
12+
'https://data.iana.org/time-zones/tzdata-latest.tar.gz' :
1313
'https://data.iana.org/time-zones/releases/tzdata' + version + '.tar.gz'),
1414
curl = path.resolve('temp/curl', version, 'data.tar.gz'),
1515
dest = path.resolve('temp/download', version);

0 commit comments

Comments
 (0)