Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8689223
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T23:35:27+00:00 2026-06-12T23:35:27+00:00

(By now, this problem is purely theoretical, since we have found a way to

  • 0

(By now, this problem is purely theoretical, since we have found a way to avoid it. However, I couldn’t solve it at the time it presented itself.)

Using Java, I want to discover and download a file from a single fixed server via SSH FTP at fixed intervals.
The remote server, the protocol, the timing and the file are outside my control.
The remote server is controlled by a trusted source.

I am currently using Java implementations of ls and get to do download the files.

My client is quite security-conscious, so he wants to prevent as many technical angles of attack as possible.

While thinking about the possibility of a malign entity either impersonating or taking control of the remote server, I noticed that they might replace the usual server with an implementation that replies to ls with an infinite list of files, or replies to get with an infinite stream of bytes.
At some point, my memory or harddrive would break and my program crash.

Assuming that I don’t know the size a file could take, are there ways to detect and prevent such an attack without stopping legal (but large) downloads?
I was thinking about checking the number of files/file size beforehand, but even then an attacker could trigger his attack only after I had made such checks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T23:35:28+00:00Added an answer on June 12, 2026 at 11:35 pm

    While thinking about the possibility of a malign entity either impersonating or taking control of the remote server.

    Unless there is a flaw in the client-side implementation of SSH or the trusted site’s private keys are leaked or cracked, it should not be possible to impersonate the site.

    Assuming that I don’t know the size a file could take, are there ways to detect and prevent such an attack without stopping legal (but large) downloads?

    I don’t think so.

    I was thinking about checking the number of files/file size beforehand …

    The problem is how you distinguish a “legal but large” download from a large download from a compromised server?


    I think that the solution is is to place a limit on download size.

    The other thing to note is that this is that even if the bad guys do trick you into doing an “infinite” download:

    1. It is really a denial-of-service attack, not an attack with direct security consequences.
    2. There are simpler and more effective ways of launching a denial of service attack.
    3. The download won’t be truly infinite. The connection will eventually drop due to networking problems, system reboot, etc, or someone will notice that the download is taking a very long time.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been stumped for 3 hours now on this problem, I need to
I'm trying for hours now to solve this problem.. So.. I want to use
This problem has bugged me so many times and i have now decided to
I have been working on this problem for 2 days now and it's an
THIRD EDIT: I now believe that this problem is due to a SOAP version
I'm finding this problem every now and then in my production website, and it
I've got this problem for a while now and I cannot find a solution
I've been investigating this problem for several hours now and narrowed it down to
I am currently stuck at this problem right now where I don't seem to
We are having this problem with a controller right now; the controller looks like

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.