Giter Site home page Giter Site logo

ikkez / cryptdown Goto Github PK

View Code? Open in Web Editor NEW
48.0 48.0 13.0 781 KB

client-side AES-encrypted Markdown pastebin clone

Home Page: https://cryptdown.eu

License: GNU General Public License v3.0

PHP 91.40% CSS 1.15% HTML 4.17% JavaScript 3.28%
crypo markdown pastebin security-tools

cryptdown's People

Contributors

anaran avatar ikkez avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

cryptdown's Issues

Does not handle server port configuration

If the webserver hosting cryptdown use a non-standard port, browser will attempt to get the content from standard port.

You can reproduce this by setting FORCE_SSL = false in config.ini then host Cryptdown with php -S 127.0.0.1:8666.

I guess <base href= is missing the port number to use.

.htaccess

I don't use Apache, I use Caddy. Is it possible to get rid of .htaccess? I don't mind "ugly" URLs, for example. Could a setting be implemented so rewrite isn't needed? Thanks!

Error 404!

Whenever I create a new paste it leads me to a page that says "Sorry! Error 404, Status: Not Found
HTTP 404 (GET /view/)"

Add asymmetric encryption/decryption

I got a mail with a nice idea:

For example: First, CryptDown generate a key and a special URL. Then I give the URL to the receiver to let him encrypt his message (without another key since the URL is the public key) and send me the new URL for the encrypted text which I will then decrypt it with the key provided by CryptDown at the beginning.

XSS in CryptDown

STR:

  1. Type in the markdown window <script>alert(1)</script>
  2. Alert comes up :-)

I'd fix this by at best all of the items below:

  • disallowing active markup (not that easy when doing yourself, but look at github.com/cure53/DOMPurify for a good third-party solution)
  • rendering all markup on a sandbox domain e.g. cryptdownusercontent.com
  • applying a strong Content Security Policy. This is considerably easy, when you take into account how small your codebase is.

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.