Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
sqlite-injection
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cylab
play
sqlite-injection
Commits
4c3c1731
Commit
4c3c1731
authored
2 years ago
by
Thibault Debatty
Browse files
Options
Downloads
Patches
Plain Diff
updated readme and build for all push
parent
51fe6cb4
No related branches found
No related tags found
No related merge requests found
Pipeline
#10284
failed
2 years ago
Stage: build
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitlab-ci.yml
+20
-5
20 additions, 5 deletions
.gitlab-ci.yml
README.md
+14
-2
14 additions, 2 deletions
README.md
sqlite-injection.png
+0
-0
0 additions, 0 deletions
sqlite-injection.png
with
34 additions
and
7 deletions
.gitlab-ci.yml
+
20
−
5
View file @
4c3c1731
build
:
image
:
docker:20.10.16
# run on a gitlab-runner that is configured with docker-in-docker
tags
:
-
dind
stage
:
build
services
:
-
docker:20.10.16-dind
variables
:
# use TLS https://docs.gitlab.com/ee/ci/docker/using_docker_build.html#tls-enabled
# mounts /certs directory for the service and build container
# needed for the Docker client to use the certificates
DOCKER_TLS_CERTDIR
:
"
/certs"
before_script
:
-
docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
script
:
# use previous image as a cache to speedup build process
-
docker pull $CI_REGISTRY_IMAGE:latest ||
true
-
docker build --cache-from $CI_REGISTRY_IMAGE:latest --tag $CI_REGISTRY_IMAGE:$CI_COMMIT_TAG --tag $CI_REGISTRY_IMAGE:latest .
release
:
image
:
docker:20.10.16
# run on a gitlab-runner that is configured with docker-in-docker
tags
:
-
dind
# only for git tags
only
:
-
tags
services
:
-
docker:20.10.16-dind
variables
:
# use TLS https://docs.gitlab.com/ee/ci/docker/using_docker_build.html#tls-enabled
# mounts /certs directory for the service and build container
# needed for the Docker client to use the certificates
DOCKER_TLS_CERTDIR
:
"
/certs"
before_script
:
-
docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
script
:
# use previous image as a cache to speedup build process
-
docker pull $CI_REGISTRY_IMAGE:latest ||
true
# use git tag to tag the image
-
docker build --cache-from $CI_REGISTRY_IMAGE:latest --tag $CI_REGISTRY_IMAGE:$CI_COMMIT_TAG --tag $CI_REGISTRY_IMAGE:latest .
-
docker push $CI_REGISTRY_IMAGE:$CI_COMMIT_TAG
-
docker push $CI_REGISTRY_IMAGE:latest
...
...
This diff is collapsed.
Click to expand it.
README.md
+
14
−
2
View file @
4c3c1731
# SQLite Injection
[

](https://gitlab.cylab.be/cylab/play/sqlite-injection/-/commits/main)

An example web application that can be hacked using SQL injection attack. The web app uses a SQLite database.
*
it has a search page
...
...
@@ -13,12 +17,20 @@ Simply use this search query (for example):
' union select null, username, password from users where username like '%
```
## Running with Docker
```
bash
docker run
-p
8000:80 gitlab.cylab.be:8081/cylab/play/sqlite-injection
```
## Testing locally
You can use PHP built-in webserver to test locally:
```
cd public
```
bash
git clone https://gitlab.cylab.be/cylab/play/sqlite-injection.git
cd
sqlite-injection/public
php
-S
localhost:8000
```
This diff is collapsed.
Click to expand it.
sqlite-injection.png
0 → 100644
+
0
−
0
View file @
4c3c1731
106 KiB
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment