Giter VIP home page Giter VIP logo

Comments (11)

mriolo avatar mriolo commented on May 27, 2024

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.

lenamtl avatar lenamtl commented on May 27, 2024

Hi

does adding
require_once('header.php');
or
require_once('includes/userlevel_check.php');
fix the problem?

from projectsend.

mriolo avatar mriolo commented on May 27, 2024

Yes

from projectsend.

lenamtl avatar lenamtl commented on May 27, 2024

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.

mriolo avatar mriolo commented on May 27, 2024

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.

mriolo avatar mriolo commented on May 27, 2024

I believe I have resolved the issue on my system by implementing two changes.

  1. In process_upload.php modified line 8 to die if the return from check is false
  2. 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.

baldzern4 avatar baldzern4 commented on May 27, 2024

@mriolo
I can confirm that your changes are blocking the upload of unauthenticated users.

from projectsend.

lenamtl avatar lenamtl commented on May 27, 2024

+1 good
Thanks

from projectsend.

lenamtl avatar lenamtl commented on May 27, 2024

Hi
@baldzern4 @mriolo do you mind to check these security issues, if they are still present...
#80

Thanks

from projectsend.

NumberFourAG avatar NumberFourAG commented on May 27, 2024

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.

lenamtl avatar lenamtl commented on May 27, 2024

Hi I merge pulled requests about security fix, you can download the files and test it.

from projectsend.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.