Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hacking the system #22

Closed
theodorDiaconu opened this issue Sep 28, 2016 · 0 comments
Closed

Hacking the system #22

theodorDiaconu opened this issue Sep 28, 2016 · 0 comments

Comments

@theodorDiaconu
Copy link
Contributor

Try to hack the system:

  • Create a Test that tries to hack the database, in exposing information you do not have access to
  • Create a suite of "hack attempts" that try to break the system
  • Write code until they get fixed.

Test exposure more, at deeper levels, try to hack it.

Try to hack the aggregate pipeline. Analize the code first.

Hacking ideas:

users: {
     $filters: { $or: { '_id': {$exists: true} } } // see if it bypasses our filters
     comments: {
           $filters: { $or: {'_id': {$exists: true} }; // check if sublinks of any kind can be filter bypassed
           // this means one,many,one-meta,many-meta,resolver.
     }
}

users: {
   $limit: -1 // see what that does
   comments: {
        $options: {sort: [some-hack-to-the-pipeline], limit: [same]},
        $filters: { $not: { userId: null } }
        // try also to by pass via other logical operators $or $nor $not $and
   }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant