Skip to content
Misconfiguration Disclosed report Intermediate

Vulnerable moment-timezone version shipped

The moment-timezone package fetched timezone data over unencrypted FTP, allowing a network attacker to intercept and modify the data. This could potentially lead to a tainted version of moment-timezone, though the practicality of such an attack is not proven.

mik-patient Follow

Originally disclosed on HackerOne

  • Triaged in 4 days
  • Fixed in 3 months
  • Disclosed after 5 months

Summary by the program

Security advisory at https://github.com/nextcloud/security-advisories/security/advisories/GHSA-f4h6-pjhm-ph2h

The report

Summary:

After this vulnerability refferences #1604606, I searching again about the vulnerabilities in other repositories and today we found a Information exposure in https://github.com/nextcloud/server Many communication channels can be "sniffed" by attackers during data transmission. For example, network traffic can often be sniffed by any attacker who has access to a network interface. This significantly lowers the difficulty of exploitation by attackers.

Fix: Problem has been patched in version 0.5.35, patch should be applicable with minor modifications to all affected versions. The patch includes changing the FTP endpoint with an HTTPS endpoint.

JSON
        "moment-timezone": "^0.5.35",
        "version": "0.5.35",
        "resolved": "https://registry.npmjs.org/moment-timezone/-/moment-timezone-0.5.35.tgz",
        "integrity": "sha512-cY/pBOEXepQvlgli06ttCTKcIf8cD1nmNwOKQQAdHBqYApQSpAqotBMX0RJZNgMp6i0PlZuf1mFtnlyEkwyvFw==",

Impact

  • if Alice uses grunt data (or grunt release) to prepare a custom-build, moment-timezone with the latest tzdata from IANA's website
    • and Mallory intercepts the request to IANA's unencrypted ftp server, Mallory can serve data which might exploit further stages of the moment-timezone tzdata pipeline, or potentially produce a tainted version of moment-timezone (practicality of such attacks is not proved)

GHSA-v78c-4p63-2j6c

The original report as published on HackerOne, by mik-patient. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the use of an unencrypted FTP endpoint to download timezone data, allowing man-in-the-middle modification.

Impact

An attacker with network access could intercept and modify the timezone data, potentially leading to a tainted version of moment-timezone, though the practicality is not proven.

What the attacker needed

Attacker on same network; victim runs grunt data or grunt release

The fix

The issue was fixed by changing the FTP endpoint to an HTTPS endpoint in version 0.5.35.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

When software downloads updates, it should use a secure channel like HTTPS. Here, the moment-timezone library used an old, insecure method (FTP) to get timezone data. An attacker on the same network could tamper with that data, potentially causing harm.

What is Misconfiguration?

Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.

More by mik-patient

View all

3 more disclosed reports, best first.

More from Nextcloud

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Security misconfiguration

The lesson behind this report.

Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.