Code Monkey home page Code Monkey logo

geekwiseapplicationsecurity's People

Contributors

coreyshuman avatar karvel avatar

Stargazers

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

Watchers

 avatar  avatar  avatar

geekwiseapplicationsecurity's Issues

Docker Migrations Running Simultaneously

The docker migrations aren't waiting for the previous to finish before continuing.

It is currently using Promise.all(filePromises), this should be changed to a synchronous solution.

Support code tags with embedded html

The browser strips invalid html tags before my parsing script can fix it up.

Example:

<pre><code class="php"><html>
<body>

  <?php
  print "Not found: " . urldecode($_SERVER["REQUEST_URI"]);
  ?>

</body>
</html></code></pre>

becomes:

<pre><code class="php">

  <?php
  print "Not found: " . urldecode($_SERVER["REQUEST_URI"]);
  ?>

</code></pre>

I added the following script tag to encapsulate these types of code sections:
<script type="code-template"></script>

These will be stripped out. However if there is embedded script tags, it doesn't work properly:

<pre><code><script type='code-template'><script>alert("You've been hacked!")</script></script></code></pre>

Options:

  • Fix the stripping code by building an algorithm to keep track of nested divs
  • Go a different route:
    • Use the script tags only and have my implementation manually add the <code> tag and pass in the script content. HLJS already seems to have some support for something like this.

Migration fail if it starts before postgres is ready.

Postgres takes a long time start up on some machines (30+ seconds).
In this situation, the migration server will try to run and will crash because Postgres will either not have opened the port yet, or it will send a incomplete startup packet.

Migration server should have a retry mechanism to keep trying until success (or container kill).

docker-composer up permission denied error Ubuntu 16.04

I am getting the following error when using docker-compose up

$ docker-compose up

01basicinsecurewebapp_frontend_1 is up-to-date
01basicinsecurewebapp_postgres_1 is up-to-date
Starting 01basicinsecurewebapp_apiserver_1 ... error

ERROR: for 01basicinsecurewebapp_apiserver_1  Cannot start service apiserver: OCI runtime create failed: container_linux.go:296: starting container process caused "exec: \"/home/node/server/scripts/entrypoint.sh\": permission denied": unknown

ERROR: for apiserver  Cannot start service apiserver: OCI runtime create failed: container_linux.go:296: starting container process caused "exec: \"/home/node/server/scripts/entrypoint.sh\": permission denied": unknown
ERROR: Encountered errors while bringing up the project.

Arrow functions in PHP code samples are getting mangled

Example:

$stmt = $dbh->prepare("SELECT * FROM product WHERE price BETWEEN :price1 AND :price2");
$stmt->bindParam(':price1', $price1);
$stmt->bindParam(':price2', $price2);
$price1 = 1;
$price2 = 10;
$stmt->execute();

Becomes:

$stmt = $dbh-&gt;prepare("SELECT * FROM product WHERE price BETWEEN :price1 AND :price2");
$stmt-&gt;bindParam(':price1', $price1);
$stmt-&gt;bindParam(':price2', $price2);
$price1 = 1;
$price2 = 10;
$stmt-&gt;execute();

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.