Coder Social home page Coder Social logo

marcusleandro / document-upload-protection Goto Github PK

View Code? Open in Web Editor NEW

This project forked from righettod/document-upload-protection

0.0 2.0 0.0 43.87 MB

POC in order to protect an document upload application feature against "malicious" document submission.

Home Page: https://www.owasp.org/index.php/Protect_FileUpload_Against_Malicious_File

Batchfile 0.77% Shell 0.71% Java 98.52%

document-upload-protection's Introduction

Description

POC in order to protect an document upload application feature against "malicious" document submission.

It's the code repository if this OWASP article.

Note about dependencies not present into Maven repositories

Before to launch a build or execution of the POC, use the script install-non-maven-deps.bat to install dependencies into your local Maven cache.

Build status

Build Status

Run the POC

  1. Use the maven command below to run the web container:

mvn -DskipTests tomcat7:run-war

  1. Use the following URL to acces to upload form and use the POC:

http://localhost:9090

Format supported

We will focus our work on the following formats because it's the formats that are often used as attack vector and also to transmit legit information:

  • Microsoft Word document (from 97 to 2016),

  • Microsoft Excel document (from 97 to 2016),

  • Microsoft Powerpoint document (from 97 to 2016),

  • Adobe Pdf document,

  • Image document (formats supported by the IJ API: http://rsb.info.nih.gov/ij/developer/api).

Note on Word/Excel/Powerpoint API

The reason why Aspose API have been used into this POC are the following:

  • There many way to embed Macro into a Microsoft Office document and, instead of manually support all the way that exists on the wild (they evolve every days), we prefer to use features from a company that perform R&D on these formats, precisely DOC/XLS/PPT native formats that are proprietary.

  • The open source API POI for DOC native format is not very stable.

  • The open source API JEXCELAPI for XLS native format is not often maintained (last publishing on Maven repository date from 27-Nov-2012).

Information links

document-upload-protection's People

Contributors

righettod avatar

Watchers

James Cloos avatar Marcus Leandro Rosa Santos avatar

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.