RTFM_ security field notes

FTP: access and data channels

Separate a control connection, a login decision and an actual file transfer.

FTP uses separate control and data connections. Reaching the command channel does not prove that a directory listing or file transfer can complete. Conversely, a blocked data connection is not evidence that a login was refused. RFC 959

Read the protocol before the result

Commands and replies travel over the control connection. File data and listings use the data-transfer process. Active and passive operation change which side listens for the data connection; network policy can affect these independently.

The transfer representation matters too. FTP distinguishes ASCII and image (binary) representations. A successful transfer is not necessarily a byte-for-byte forensic copy if a representation conversion was applied. rfc

Separate the access questions

Document the effective policy rather than reducing it to “FTP is open”:

  • Is the command channel reachable?
  • Was an authentication request actually accepted?
  • Which path and operations does that context permit?
  • Did the data connection complete?
  • Was an observed file readable, writable, or merely named in a listing?

Those are different observations. A read permission on one directory does not establish write permission or access elsewhere.

Interpret failures narrowly

A timeout during listing can arise after authentication and during data-channel setup. A failed login says nothing about whether a different permitted account or configuration would have the same result. Record the reply and context instead of inventing an exclusion.

Use existing configuration, administrator-provided material or previously authorized observations first. Even a supposedly anonymous login is an authentication action; this page provides no permission or request budget.

Sources and adaptation

rfc959 — RFC 959, protocol model, data representations and connection management, read 2026-11-20. Later extensions and a particular server’s policy require their own review.

rtfm-legacy-ftp — adapted from 6_services/ftp.md. The legacy network range and login commands are not carried into this explanatory guide.

Provenance and confidence
Version
1
Sources reviewed
2026-11-20
Confidence
medium — Protocol explanation checked against RFC 959; server-specific policy and active validation are not established.

Also searched as: ftp, partage ouvert, canal de données