Git Product home page Git Product logo

spica-engine / spica Goto Github PK

View Code? Open in Web Editor NEW
97.0 3.0 19.0 16.61 MB

Spica is a development engine to build fast & efficient applications.

Home Page: http://spicaengine.com

License: GNU Affero General Public License v3.0

TypeScript 83.83% JavaScript 0.29% HTML 8.28% Shell 0.42% Dockerfile 0.07% Starlark 3.40% Smarty 0.04% SCSS 3.51% PEG.js 0.16%
engine content-management-system single-page-applications nodejs mongodb angular cloud-functions database development-engine cms

spica's People

Contributors

akhnos avatar davuttrg avatar dependabot[bot] avatar emre2345 avatar htuna07 avatar idriska avatar kenangsmv avatar parvineyvazov avatar thesayyn avatar tolgayigit avatar tthiscafer 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  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  avatar

Watchers

 avatar  avatar  avatar

spica's Issues

Cross Site Scripting on Bucket

Description

Stored attacks are those where the injected script is permanently stored on the target servers, such as in a database, in a message forum, visitor log, comment field, etc. The victim then retrieves the malicious script from the server when it requests the stored information. Stored XSS is also sometimes referred to as Persistent or Type-I XSS.

Steps to Reproduce

  • Create a new Bucket on your Spica Engine
  • Click "Add New" and enter the Title to your XSS Payload.

Proof

https://imgur.com/CWhfBJm

Impact

Can steal Cookie, Can run javascript code, etc

Incorrect devkit bucket return type

Bucket data getAll method shows the wrong return type. It says the return type is IndexResult which is only possible if paginate param is given. Also setting paginate as false shows an error that says false is not a type of true.

spica bucket orm error

Hi everyone

I have installed spica, according to here, and started a project instance.

I have created a bucket and an API-key.

image

It's running:

qqqqqqqq@spicadev:~/spicaclient01$ netstat -tuanp|grep 4500
(Es konnten nicht alle Prozesse identifiziert werden; Informationen über
nicht-eigene Processe werden nicht angezeigt; Root kann sie anzeigen.)
tcp 0 0 0.0.0.0:4500 0.0.0.0:* LISTEN -
tcp6 0 0 :::4500 :::* LISTEN -

Spica client version:

qqqqqqqq@spicadev:~/spicaclient01$ cat package.json
{
"dependencies": {
"@spica/cli": "^0.9.15"
}
}

Now I'm trying to generate the ORM file, but it fails. I have tried different systems (local and remote) and different ways of assigning parameters (with / without "=" sign).

qqqqqqqq@spicadev:~/spicaclient01$ spica bucket orm --url=http://localhost:4500 --apikey=405gzo18kz5q4ykk
✖ Building interface and method definitions..
Cannot create property 'title' on string '!'
TypeError: Cannot create property 'title' on string '!'
at makeTitlesUnique (/usr/local/lib/node_modules/@spica/cli/src/commands/bucket/orm.js:249:26)
at Object.createFileContent (/usr/local/lib/node_modules/@spica/cli/src/commands/bucket/orm.js:65:19)
at Object.op (/usr/local/lib/node_modules/@spica/cli/src/commands/bucket/orm.js:25:36)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async Se.orm [as _action] (/usr/local/lib/node_modules/@spica/cli/src/commands/bucket/orm.js:13:5)
at async Se.run (/usr/local/lib/node_modules/@spica/cli/node_modules/@caporal/core/dist/index.js:1:27579)
at async Te._run (/usr/local/lib/node_modules/@spica/cli/node_modules/@caporal/core/dist/index.js:1:32257)

What can I do?

I have also tried other spical client commands, and they seem to work fine.

Like this one:

qqqqqqqq@spicadev:~/spicaclient01$ spica project ls
NAMESPACE AGE STATUS VERSION PORT DESCRIPTION
testspica01 52y 45d 14h 54m 17s Up 22 hours latest 0.0.0.0:4500

Cannot use images on pure docker environment.

Currently, the spica images are built for kubernetes environment;

So current spica images have quirks like;

  • Static baseUrl that set to "/spica/" in order to work in kubernetes.
  • Static apiUrl that set to "/api" in order to work in kubernetes.

These configurations should be configurable through env variables to be able to work in other environments.

The current workaround is replacing those lines with appropriate ones.

# Like we do in getting started docs
docker exec -it spica sed -i "s/\/spica\//\//g" /usr/share/nginx/html/index.html
docker exec -w /usr/share/nginx/html -it spica find . -type f -iname 'main-es*.js' -exec sed -i 's/\"\/api\"/\"http:\/\/localhost:4300\"/g' {} \;

Bug: request.body is undefined

In the documentation it says, function parses application/json by default although it does not.

Example;

export default function(request: triggers.http.Request, response: triggers.http.Response) {
  // A entry will appear in function logs.
  console.dir(request.body);
  // Send body as response right away
  response.send(request.body);
}

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.