Comments (11)
This seems to be because the function check_for_session(); being called in process-upload.php is not loaded and available when is executed directly - In testing I was able to immediately fix this by modifying the process-upload.php file to require includes/userlevel_check.php.
from projectsend.
Hi
does adding
require_once('header.php');
or
require_once('includes/userlevel_check.php');
fix the problem?
from projectsend.
Yes
from projectsend.
Hi,
Which one?
I'm a little bit confused..
require_once('sys.includes.php'); is already there and it's including
require_once(ROOT_DIR.'/includes/userlevel_check.php');
already so we don't need to add this...
So instead do we need to add require_once('header.php');
from projectsend.
No – the “fix” I put in was incorrect.
I had a syntax error in it, so it was actually blocking any uploads. When I fixed the typo, it still allowed the unauthenticated upload.
from projectsend.
I believe I have resolved the issue on my system by implementing two changes.
- In process_upload.php modified line 8 to die if the return from check is false
- In userlevel_check.php, added lines to the check_for_session() function to return true or false
I was able to successfully upload files when logged in, but the direct upload via python script was unsuccessful.
from projectsend.
@mriolo
I can confirm that your changes are blocking the upload of unauthenticated users.
from projectsend.
+1 good
Thanks
from projectsend.
Hi
@baldzern4 @mriolo do you mind to check these security issues, if they are still present...
#80
Thanks
from projectsend.
Hi @lenamtl yes these are still present and they are really critical.
With just one call you can add a new admin to the system. This has to be fixed ASAP.
BR
from projectsend.
Hi I merge pulled requests about security fix, you can download the files and test it.
from projectsend.
Related Issues (20)
- Some timezones not available in selector
- Slow loading every page
- The new UI seems to be non responsive
- Our projectsend page does not work HOT 1
- How to "use" Email translation HOT 1
- How to design %FILE% on email template
- When can we expect a new release?
- Add php-dom and php-ctype extensions to the php extension requirements HOT 1
- some function not work
- Translations for templates don't work HOT 1
- Your browser doesn't support HTML5, Flash or Silverlight. Please update your browser or install Adobe Flash or Silverlight to continue. HOT 5
- Buttons in E-mail templates not working
- Using custom port in Host field in setup
- Errors in log HOT 1
- 504 Gateway Time-out The server when https://www.projectsend.org is not available HOT 1
- Fatal error when files are in groups HOT 1
- Updating from r754, will it work? HOT 3
- Error 500 on manage-files.php HOT 4
- Client can't delete own files even though setting is enabled
- Files are visible to anyone
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from projectsend.