Giter Site home page Giter Site logo

ajnyga / alloweduploads Goto Github PK

View Code? Open in Web Editor NEW
6.0 4.0 6.0 50 KB

OJS/OMP/OPS plugin for limiting the allowed submission file types

License: GNU General Public License v3.0

PHP 84.84% Smarty 15.16%
ojs ojs-plugins ojs3 file-upload submissions omp ops

alloweduploads's People

Contributors

ajnyga avatar kant avatar vormia avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

alloweduploads's Issues

allowedUploads doesn't restrict undesired formats

Description of issue or problem I’m having:

We tried limiting our allowed uploads to .docx only, but we seem to be still allowed to upload files of any format. It is the same for accounts with only author role and for accounts with editor role

Steps I took leading up to the issue:
We have been using OJS (successfully) and didn't try to limit the uploads. When we did try to limit uploads, it didn't work

What I tried to resolve the issue:
@odkr tried some things, just in case, that we didn't expect to have any effect and they didn't

Application Version:

OJS: v3.3.0-10 running on a Debian v11.3 (“bullseye”) LAMP system, using

Linux v5.10.0-9
Apache v2.4.53
PHP (fpm-fcgi) v7.4.28
MariaDB v15.1

Additional information, such as screenshots and error log messages if applicable:

restricted uploads

Thank you for looking into this!

FBV:Element ID not set

I get the following error in OJS 3.1.1.2 after enabling the plugin. Apparently the text item 'allowedExtensions' requires an id attribute. I've fixed this issue in my own version by changing the following line in allowedUploads/templates/settingsForm.tpl.

image

{fbvElement type="text" name="allowedExtensions" value=$allowedExtensions label="plugins.generic.allowedUploads.manager.settings.allowedExtensions"}

To

{fbvElement id="allowedExtensions" type="text" name="allowedExtensions" value=$allowedExtensions label="plugins.generic.allowedUploads.manager.settings.allowedExtensions"}

I hope this is descriptive enough. I've never really posted an issue before.

workflow (or) flowchart for ojs

i want to give presentation about ojs 3. i am new to this software so anyone please guide me. How its working and what is the work flow(whom to whom) for this software.

Vulnerability - Filter can bypassed

The plugin can be easily bypassed with a little trick on the request. I submitted an .exe file that on the interface seems like a .txt file. See de examples:

image

To explore the problem I made this request:

image

Any file extension can be used.

Improvement: case insensitive file extensions

Would you be able to make the file extensions case insensitive?

For example currently if I allow only 'doc;mp4' and try to upload a {filename}.MP4 the plugin denies it. Is there a good reason why? From my understanding file extensions are usually case insensitive though windows allows for either.

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.