Skip to content

Add some security/fuzz testing #441

Closed

Description

@twsouthwick

We should add some sort of fuzz testing to test for potential security/reliability issues:

  • Zip bombs
  • Malicious XML
  • Recursive content

These are the items at the top of my head.... there are probably others

Activity

  1. Metalnem commented on Dec 27, 2018

    @Metalnem

    Hi Taylor!

    I'm the author of SharpFuzz, which is a tool that enables fuzzing of .NET programs using afl-fuzz. I did a small experiment on SpreadsheetDocument.Open method, which discovered that it can throw many unexpected exceptions (documentation states that this method should throw only OpenXmlPackageException). These are:

    • ArgumentException
    • FileFormatException
    • InvalidDataException
    • InvalidOperationException
    • XmlException

    I didn't have the time to do a longer fuzzing run, and I think that this only scratches the surface of all the possible problems that could be discovered. If you are interested in exploring this area, here is my fuzzing playground for Open XML SDK.

    If you have any questions, I'll be glad to assist you!

    All the best,
    Nemanja

  2. twsouthwick commented on Jan 4, 2019

    @twsouthwick
    MemberAuthor

    This is awesome! I had gone through and tried to update some of the exceptions (I had noticed more were thrown than was documented).

  3. github-actions commented on May 15, 2020

    @github-actions

    Stale issue message

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions