Merge 841ba817c4
into c0f2689f4a
This commit is contained in:
commit
0ed69309b8
34
.github/workflows/build.yml
vendored
Normal file
34
.github/workflows/build.yml
vendored
Normal file
|
@ -0,0 +1,34 @@
|
|||
name: Build
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
- test
|
||||
- release-*
|
||||
pull_request:
|
||||
types: [opened, synchronize, reopened]
|
||||
jobs:
|
||||
sonarcloud:
|
||||
name: SonarCloud
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
|
||||
- name: SonarCloud Scan
|
||||
uses: SonarSource/sonarcloud-github-action@master
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
|
||||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
||||
- name: SonarCloud Quality Gate
|
||||
uses: SonarSource/sonarqube-quality-gate-action@master
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
|
||||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
3
.idea/.gitignore
vendored
Normal file
3
.idea/.gitignore
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
# Default ignored files
|
||||
/shelf/
|
||||
/workspace.xml
|
9
.idea/Vulnerable-Web-Application.iml
Normal file
9
.idea/Vulnerable-Web-Application.iml
Normal file
|
@ -0,0 +1,9 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<module type="JAVA_MODULE" version="4">
|
||||
<component name="NewModuleRootManager" inherit-compiler-output="true">
|
||||
<exclude-output />
|
||||
<content url="file://$MODULE_DIR$" />
|
||||
<orderEntry type="inheritedJdk" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
</component>
|
||||
</module>
|
6
.idea/misc.xml
Normal file
6
.idea/misc.xml
Normal file
|
@ -0,0 +1,6 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ProjectRootManager">
|
||||
<output url="file://$PROJECT_DIR$/out" />
|
||||
</component>
|
||||
</project>
|
8
.idea/modules.xml
Normal file
8
.idea/modules.xml
Normal file
|
@ -0,0 +1,8 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ProjectModuleManager">
|
||||
<modules>
|
||||
<module fileurl="file://$PROJECT_DIR$/.idea/Vulnerable-Web-Application.iml" filepath="$PROJECT_DIR$/.idea/Vulnerable-Web-Application.iml" />
|
||||
</modules>
|
||||
</component>
|
||||
</project>
|
6
.idea/vcs.xml
Normal file
6
.idea/vcs.xml
Normal file
|
@ -0,0 +1,6 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="VcsDirectoryMappings">
|
||||
<mapping directory="" vcs="Git" />
|
||||
</component>
|
||||
</project>
|
396
.idea/workspace.xml
Normal file
396
.idea/workspace.xml
Normal file
|
@ -0,0 +1,396 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ChangeListManager">
|
||||
<list default="true" id="2b8752ac-a037-4377-a6f3-e8a332ed1655" name="Default Changelist" comment="">
|
||||
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/SQL/sql6.php" beforeDir="false" afterPath="$PROJECT_DIR$/SQL/sql6.php" afterDir="false" />
|
||||
</list>
|
||||
<option name="SHOW_DIALOG" value="false" />
|
||||
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
||||
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
|
||||
<option name="LAST_RESOLUTION" value="IGNORE" />
|
||||
</component>
|
||||
<component name="Git.Settings">
|
||||
<option name="RECENT_BRANCH_BY_REPOSITORY">
|
||||
<map>
|
||||
<entry key="$PROJECT_DIR$" value="test" />
|
||||
</map>
|
||||
</option>
|
||||
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
|
||||
</component>
|
||||
<component name="IgnoredFileRootStore">
|
||||
<option name="generatedRoots">
|
||||
<set>
|
||||
<option value="$PROJECT_DIR$/.idea" />
|
||||
</set>
|
||||
</option>
|
||||
</component>
|
||||
<component name="ProjectId" id="25GMqIf7FCebX8Req49f14PzFL5" />
|
||||
<component name="ProjectLevelVcsManager">
|
||||
<ConfirmationsSetting value="2" id="Add" />
|
||||
</component>
|
||||
<component name="ProjectViewState">
|
||||
<option name="autoscrollToSource" value="true" />
|
||||
<option name="flattenPackages" value="true" />
|
||||
<option name="hideEmptyMiddlePackages" value="true" />
|
||||
<option name="showExcludedFiles" value="true" />
|
||||
<option name="showLibraryContents" value="true" />
|
||||
<option name="showMembers" value="true" />
|
||||
<option name="showVisibilityIcons" value="true" />
|
||||
</component>
|
||||
<component name="PropertiesComponent">
|
||||
<property name="ASKED_ADD_EXTERNAL_FILES" value="true" />
|
||||
<property name="GenerateAntBuildDialog.backupFiles" value="true" />
|
||||
<property name="GenerateAntBuildDialog.enableUiFormCompile" value="true" />
|
||||
<property name="GenerateAntBuildDialog.forceTargetJdk" value="true" />
|
||||
<property name="GenerateAntBuildDialog.outputFileNameProperty" value="vulnerable-web-application" />
|
||||
<property name="RunOnceActivity.ShowReadmeOnStart" value="true" />
|
||||
<property name="com.intellij.ide.scratch.LRUPopupBuilder$1/New Scratch File" value="Gherkin" />
|
||||
<property name="last_opened_file_path" value="$PROJECT_DIR$" />
|
||||
<property name="settings.editor.selected.configurable" value="terminal" />
|
||||
</component>
|
||||
<component name="SvnConfiguration">
|
||||
<configuration />
|
||||
</component>
|
||||
<component name="TaskManager">
|
||||
<task active="true" id="Default" summary="Default task">
|
||||
<changelist id="2b8752ac-a037-4377-a6f3-e8a332ed1655" name="Default Changelist" comment="" />
|
||||
<created>1645149159021</created>
|
||||
<option name="number" value="Default" />
|
||||
<option name="presentableId" value="Default" />
|
||||
<updated>1645149159021</updated>
|
||||
</task>
|
||||
<task id="LOCAL-00001" summary="New change">
|
||||
<created>1645149212473</created>
|
||||
<option name="number" value="00001" />
|
||||
<option name="presentableId" value="LOCAL-00001" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1645149212473</updated>
|
||||
</task>
|
||||
<task id="LOCAL-00002" summary="New change">
|
||||
<created>1645149663335</created>
|
||||
<option name="number" value="00002" />
|
||||
<option name="presentableId" value="LOCAL-00002" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1645149663335</updated>
|
||||
</task>
|
||||
<task id="LOCAL-00003" summary="New change">
|
||||
<created>1645149917618</created>
|
||||
<option name="number" value="00003" />
|
||||
<option name="presentableId" value="LOCAL-00003" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1645149917618</updated>
|
||||
</task>
|
||||
<task id="LOCAL-00004" summary="New change">
|
||||
<created>1645207967412</created>
|
||||
<option name="number" value="00004" />
|
||||
<option name="presentableId" value="LOCAL-00004" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1645207967412</updated>
|
||||
</task>
|
||||
<task id="LOCAL-00005" summary="New change">
|
||||
<created>1645208602592</created>
|
||||
<option name="number" value="00005" />
|
||||
<option name="presentableId" value="LOCAL-00005" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1645208602592</updated>
|
||||
</task>
|
||||
<task id="LOCAL-00006" summary="New change">
|
||||
<created>1645208848636</created>
|
||||
<option name="number" value="00006" />
|
||||
<option name="presentableId" value="LOCAL-00006" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1645208848636</updated>
|
||||
</task>
|
||||
<task id="LOCAL-00007" summary="New change">
|
||||
<created>1645211480802</created>
|
||||
<option name="number" value="00007" />
|
||||
<option name="presentableId" value="LOCAL-00007" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1645211480802</updated>
|
||||
</task>
|
||||
<task id="LOCAL-00008" summary="New change">
|
||||
<created>1645213997297</created>
|
||||
<option name="number" value="00008" />
|
||||
<option name="presentableId" value="LOCAL-00008" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1645213997297</updated>
|
||||
</task>
|
||||
<task id="LOCAL-00009" summary="New change">
|
||||
<created>1645215290283</created>
|
||||
<option name="number" value="00009" />
|
||||
<option name="presentableId" value="LOCAL-00009" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1645215290283</updated>
|
||||
</task>
|
||||
<task id="LOCAL-00010" summary="New change">
|
||||
<created>1645216066659</created>
|
||||
<option name="number" value="00010" />
|
||||
<option name="presentableId" value="LOCAL-00010" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1645216066659</updated>
|
||||
</task>
|
||||
<task id="LOCAL-00011" summary="New change">
|
||||
<created>1645216088872</created>
|
||||
<option name="number" value="00011" />
|
||||
<option name="presentableId" value="LOCAL-00011" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1645216088872</updated>
|
||||
</task>
|
||||
<task id="LOCAL-00012" summary="New change">
|
||||
<created>1645216166909</created>
|
||||
<option name="number" value="00012" />
|
||||
<option name="presentableId" value="LOCAL-00012" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1645216166909</updated>
|
||||
</task>
|
||||
<task id="LOCAL-00013" summary="New change">
|
||||
<created>1645216653317</created>
|
||||
<option name="number" value="00013" />
|
||||
<option name="presentableId" value="LOCAL-00013" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1645216653317</updated>
|
||||
</task>
|
||||
<task id="LOCAL-00014" summary="New change">
|
||||
<created>1645216824768</created>
|
||||
<option name="number" value="00014" />
|
||||
<option name="presentableId" value="LOCAL-00014" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1645216824768</updated>
|
||||
</task>
|
||||
<task id="LOCAL-00015" summary="New change">
|
||||
<created>1645217051424</created>
|
||||
<option name="number" value="00015" />
|
||||
<option name="presentableId" value="LOCAL-00015" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1645217051424</updated>
|
||||
</task>
|
||||
<task id="LOCAL-00016" summary="New change">
|
||||
<created>1645544310739</created>
|
||||
<option name="number" value="00016" />
|
||||
<option name="presentableId" value="LOCAL-00016" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1645544310739</updated>
|
||||
</task>
|
||||
<task id="LOCAL-00017" summary="New change">
|
||||
<created>1645544803941</created>
|
||||
<option name="number" value="00017" />
|
||||
<option name="presentableId" value="LOCAL-00017" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1645544803941</updated>
|
||||
</task>
|
||||
<task id="LOCAL-00018" summary="New change">
|
||||
<created>1645544896484</created>
|
||||
<option name="number" value="00018" />
|
||||
<option name="presentableId" value="LOCAL-00018" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1645544896484</updated>
|
||||
</task>
|
||||
<task id="LOCAL-00019" summary="New change">
|
||||
<created>1645545435448</created>
|
||||
<option name="number" value="00019" />
|
||||
<option name="presentableId" value="LOCAL-00019" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1645545435448</updated>
|
||||
</task>
|
||||
<task id="LOCAL-00020" summary="New change">
|
||||
<created>1645546040245</created>
|
||||
<option name="number" value="00020" />
|
||||
<option name="presentableId" value="LOCAL-00020" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1645546040245</updated>
|
||||
</task>
|
||||
<task id="LOCAL-00021" summary="New change">
|
||||
<created>1645546194007</created>
|
||||
<option name="number" value="00021" />
|
||||
<option name="presentableId" value="LOCAL-00021" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1645546194007</updated>
|
||||
</task>
|
||||
<task id="LOCAL-00022" summary="New change">
|
||||
<created>1645546719917</created>
|
||||
<option name="number" value="00022" />
|
||||
<option name="presentableId" value="LOCAL-00022" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1645546719917</updated>
|
||||
</task>
|
||||
<task id="LOCAL-00023" summary="New change">
|
||||
<created>1645547139336</created>
|
||||
<option name="number" value="00023" />
|
||||
<option name="presentableId" value="LOCAL-00023" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1645547139336</updated>
|
||||
</task>
|
||||
<task id="LOCAL-00024" summary="New change">
|
||||
<created>1645547427177</created>
|
||||
<option name="number" value="00024" />
|
||||
<option name="presentableId" value="LOCAL-00024" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1645547427177</updated>
|
||||
</task>
|
||||
<task id="LOCAL-00025" summary="New change">
|
||||
<created>1645547654309</created>
|
||||
<option name="number" value="00025" />
|
||||
<option name="presentableId" value="LOCAL-00025" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1645547654309</updated>
|
||||
</task>
|
||||
<task id="LOCAL-00026" summary="New change">
|
||||
<created>1645548186657</created>
|
||||
<option name="number" value="00026" />
|
||||
<option name="presentableId" value="LOCAL-00026" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1645548186657</updated>
|
||||
</task>
|
||||
<task id="LOCAL-00027" summary="New change">
|
||||
<created>1645548924931</created>
|
||||
<option name="number" value="00027" />
|
||||
<option name="presentableId" value="LOCAL-00027" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1645548924931</updated>
|
||||
</task>
|
||||
<task id="LOCAL-00028" summary="New change">
|
||||
<created>1645551993758</created>
|
||||
<option name="number" value="00028" />
|
||||
<option name="presentableId" value="LOCAL-00028" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1645551993758</updated>
|
||||
</task>
|
||||
<task id="LOCAL-00029" summary="New change">
|
||||
<created>1645552029033</created>
|
||||
<option name="number" value="00029" />
|
||||
<option name="presentableId" value="LOCAL-00029" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1645552029033</updated>
|
||||
</task>
|
||||
<task id="LOCAL-00030" summary="New change">
|
||||
<created>1645552145975</created>
|
||||
<option name="number" value="00030" />
|
||||
<option name="presentableId" value="LOCAL-00030" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1645552145975</updated>
|
||||
</task>
|
||||
<task id="LOCAL-00031" summary="New change">
|
||||
<created>1645552170630</created>
|
||||
<option name="number" value="00031" />
|
||||
<option name="presentableId" value="LOCAL-00031" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1645552170630</updated>
|
||||
</task>
|
||||
<task id="LOCAL-00032" summary="New change">
|
||||
<created>1645552821183</created>
|
||||
<option name="number" value="00032" />
|
||||
<option name="presentableId" value="LOCAL-00032" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1645552821183</updated>
|
||||
</task>
|
||||
<task id="LOCAL-00033" summary="New change">
|
||||
<created>1645554286859</created>
|
||||
<option name="number" value="00033" />
|
||||
<option name="presentableId" value="LOCAL-00033" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1645554286859</updated>
|
||||
</task>
|
||||
<task id="LOCAL-00034" summary="New change">
|
||||
<created>1645554408714</created>
|
||||
<option name="number" value="00034" />
|
||||
<option name="presentableId" value="LOCAL-00034" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1645554408714</updated>
|
||||
</task>
|
||||
<task id="LOCAL-00035" summary="New change">
|
||||
<created>1645555888504</created>
|
||||
<option name="number" value="00035" />
|
||||
<option name="presentableId" value="LOCAL-00035" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1645555888504</updated>
|
||||
</task>
|
||||
<task id="LOCAL-00036" summary="New change">
|
||||
<created>1646073709451</created>
|
||||
<option name="number" value="00036" />
|
||||
<option name="presentableId" value="LOCAL-00036" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1646073709451</updated>
|
||||
</task>
|
||||
<task id="LOCAL-00037" summary="New change">
|
||||
<created>1646074069847</created>
|
||||
<option name="number" value="00037" />
|
||||
<option name="presentableId" value="LOCAL-00037" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1646074069847</updated>
|
||||
</task>
|
||||
<task id="LOCAL-00038" summary="New change">
|
||||
<created>1646075273858</created>
|
||||
<option name="number" value="00038" />
|
||||
<option name="presentableId" value="LOCAL-00038" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1646075273858</updated>
|
||||
</task>
|
||||
<task id="LOCAL-00039" summary="New change">
|
||||
<created>1646075317923</created>
|
||||
<option name="number" value="00039" />
|
||||
<option name="presentableId" value="LOCAL-00039" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1646075317923</updated>
|
||||
</task>
|
||||
<task id="LOCAL-00040" summary="New change">
|
||||
<created>1646075427388</created>
|
||||
<option name="number" value="00040" />
|
||||
<option name="presentableId" value="LOCAL-00040" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1646075427388</updated>
|
||||
</task>
|
||||
<task id="LOCAL-00041" summary="New change">
|
||||
<created>1646075613273</created>
|
||||
<option name="number" value="00041" />
|
||||
<option name="presentableId" value="LOCAL-00041" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1646075613273</updated>
|
||||
</task>
|
||||
<task id="LOCAL-00042" summary="New change">
|
||||
<created>1646161623086</created>
|
||||
<option name="number" value="00042" />
|
||||
<option name="presentableId" value="LOCAL-00042" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1646161623086</updated>
|
||||
</task>
|
||||
<option name="localTasksCounter" value="43" />
|
||||
<servers />
|
||||
</component>
|
||||
<component name="VcsManagerConfiguration">
|
||||
<option name="ADD_EXTERNAL_FILES_SILENTLY" value="true" />
|
||||
<MESSAGE value="New change" />
|
||||
<option name="LAST_COMMIT_MESSAGE" value="New change" />
|
||||
</component>
|
||||
<component name="WindowStateProjectService">
|
||||
<state x="360" y="222" key="#com.intellij.execution.impl.EditConfigurationsDialog" timestamp="1645553002844">
|
||||
<screen x="0" y="0" width="1792" height="1120" />
|
||||
</state>
|
||||
<state x="360" y="222" key="#com.intellij.execution.impl.EditConfigurationsDialog/0.0.1792.1120@0.0.1792.1120" timestamp="1645553002844" />
|
||||
<state x="464" y="115" key="CommitChangelistDialog2" timestamp="1646162228833">
|
||||
<screen x="0" y="0" width="1792" height="1120" />
|
||||
</state>
|
||||
<state x="464" y="115" key="CommitChangelistDialog2/0.0.1792.1120@0.0.1792.1120" timestamp="1646162228833" />
|
||||
<state x="464" y="127" key="CommitChangelistDialog2/0.23.1792.1013@0.23.1792.1013" timestamp="1645217137275" />
|
||||
<state x="464" y="127" key="CommitChangelistDialog2/0.23.1792.1015@0.23.1792.1015" timestamp="1646075753392" />
|
||||
<state x="397" y="199" key="SettingsEditor" timestamp="1645553221314">
|
||||
<screen x="0" y="0" width="1792" height="1120" />
|
||||
</state>
|
||||
<state x="397" y="199" key="SettingsEditor/0.0.1792.1120@0.0.1792.1120" timestamp="1645553221314" />
|
||||
<state x="496" y="272" key="Vcs.Push.Dialog.v2" timestamp="1646162235647">
|
||||
<screen x="0" y="0" width="1792" height="1120" />
|
||||
</state>
|
||||
<state x="496" y="272" key="Vcs.Push.Dialog.v2/0.0.1792.1120@0.0.1792.1120" timestamp="1646162235647" />
|
||||
<state x="496" y="269" key="Vcs.Push.Dialog.v2/0.23.1792.1013@0.23.1792.1013" timestamp="1645217141605" />
|
||||
<state x="496" y="269" key="Vcs.Push.Dialog.v2/0.23.1792.1015@0.23.1792.1015" timestamp="1646075774591" />
|
||||
<state x="122" y="380" key="com.intellij.ide.util.TipDialog" timestamp="1646161606531">
|
||||
<screen x="0" y="0" width="1792" height="1120" />
|
||||
</state>
|
||||
<state x="122" y="380" key="com.intellij.ide.util.TipDialog/0.0.1792.1120@0.0.1792.1120" timestamp="1646161606531" />
|
||||
<state x="533" y="347" key="git4idea.merge.GitPullDialog" timestamp="1646075435247">
|
||||
<screen x="0" y="23" width="1792" height="1015" />
|
||||
</state>
|
||||
<state x="533" y="358" key="git4idea.merge.GitPullDialog/0.0.1792.1120@0.0.1792.1120" timestamp="1646074173031" />
|
||||
<state x="533" y="347" key="git4idea.merge.GitPullDialog/0.23.1792.1015@0.23.1792.1015" timestamp="1646075435247" />
|
||||
</component>
|
||||
</project>
|
21
Jenkinsfile
vendored
Normal file
21
Jenkinsfile
vendored
Normal file
|
@ -0,0 +1,21 @@
|
|||
pipeline {
|
||||
agent any
|
||||
stages{
|
||||
stage('Checkout Code from GitHub Repository'){
|
||||
steps{
|
||||
git 'https://github.com/Shobika/Vulnerable-Web-Application.git'
|
||||
}
|
||||
}
|
||||
stage('SonarQube Analysis') {
|
||||
environment {
|
||||
SCANNER_HOME = tool 'sonarscanner6'
|
||||
}
|
||||
steps {
|
||||
withSonarQubeEnv('sonar6') {
|
||||
sh "${SCANNER_HOME}/bin/sonar-scanner"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -28,6 +28,8 @@
|
|||
|
||||
// Create connection
|
||||
$conn = mysqli_connect($servername,$username,$password,$db);
|
||||
$conn = mysqli_connect($servername,$username,$password,$db);
|
||||
|
||||
|
||||
// Check connection
|
||||
if (!$conn) {
|
||||
|
@ -37,7 +39,7 @@
|
|||
|
||||
if(isset($_POST["submit"])){
|
||||
$firstname = $_POST["firstname"];
|
||||
$sql = "SELECT lastname FROM users WHERE firstname='$firstname'";//String
|
||||
$sql = "SELECT username FROM admin WHERE username = '$user_name' AND password = '$pass'";
|
||||
$result = mysqli_query($conn,$sql);
|
||||
|
||||
if (mysqli_num_rows($result) > 0) {
|
||||
|
|
|
@ -27,6 +27,7 @@
|
|||
|
||||
// Create connection
|
||||
$conn = new mysqli($servername, $username, $password,$db);
|
||||
$conn = mysqli_connect($servername,$username,$password,$db);
|
||||
|
||||
// Check connection
|
||||
if ($conn->connect_error) {
|
||||
|
|
|
@ -20,6 +20,8 @@
|
|||
</form>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<?php
|
||||
$servername = "localhost";
|
||||
$username = "root";
|
||||
|
|
|
@ -16,19 +16,19 @@
|
|||
<input type="submit" name="submit" value="Submit">
|
||||
</form>
|
||||
</div>
|
||||
<!--Admin password is in the secret table. I hope, anyone doesn't see it.-->
|
||||
|
||||
<?php
|
||||
$servername = "localhost";
|
||||
$username = "root";
|
||||
$password = "";
|
||||
$db = "1ccb8097d0e9ce9f154608be60224c7c";
|
||||
// Create connection
|
||||
$conn = new mysqli($servername, $username, $password,$db);
|
||||
//$conn = new mysqli($servername, $username, $password,$db);
|
||||
|
||||
// Check connection
|
||||
if ($conn->connect_error) {
|
||||
die("Connection failed: " . $conn->connect_error);
|
||||
}
|
||||
}
|
||||
//echo "Connected successfully";
|
||||
$source = "";
|
||||
if(isset($_GET["submit"])){
|
||||
|
@ -44,6 +44,6 @@
|
|||
}
|
||||
}
|
||||
|
||||
?>
|
||||
?>
|
||||
</body>
|
||||
</html>
|
||||
|
|
6
composer.json
Normal file
6
composer.json
Normal file
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"require": {
|
||||
"phpunit/phpunit": "4.3.*",
|
||||
"monolog/monolog": "2.0.*"
|
||||
}
|
||||
}
|
2
sonar-project.properties
Normal file
2
sonar-project.properties
Normal file
|
@ -0,0 +1,2 @@
|
|||
sonar.projectKey=Shobika_Vulnerable-Web-Application
|
||||
sonar.organization=shobika
|
3
vulnerable-web-application.properties
Normal file
3
vulnerable-web-application.properties
Normal file
|
@ -0,0 +1,3 @@
|
|||
path.variable.kotlin_bundled=/Applications/IntelliJ IDEA CE.app/Contents/plugins/Kotlin/kotlinc
|
||||
path.variable.maven_repository=/Users/shobikaramasubbarayalu/.m2/repository
|
||||
javac2.instrumentation.includeJavaRuntime=false
|
87
vulnerable-web-application.xml
Normal file
87
vulnerable-web-application.xml
Normal file
|
@ -0,0 +1,87 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project name="vulnerable-web-application" default="all">
|
||||
|
||||
|
||||
<property file="vulnerable-web-application.properties"/>
|
||||
<!-- Uncomment the following property if no tests compilation is needed -->
|
||||
<!--
|
||||
<property name="skip.tests" value="true"/>
|
||||
-->
|
||||
|
||||
<!-- Compiler options -->
|
||||
|
||||
<property name="compiler.debug" value="on"/>
|
||||
<property name="compiler.generate.no.warnings" value="off"/>
|
||||
<property name="compiler.args" value=""/>
|
||||
<property name="compiler.max.memory" value="700m"/>
|
||||
<patternset id="ignored.files">
|
||||
<exclude name="**/*.hprof/**"/>
|
||||
<exclude name="**/*.pyc/**"/>
|
||||
<exclude name="**/*.pyo/**"/>
|
||||
<exclude name="**/*.rbc/**"/>
|
||||
<exclude name="**/*.yarb/**"/>
|
||||
<exclude name="**/*~/**"/>
|
||||
<exclude name="**/.DS_Store/**"/>
|
||||
<exclude name="**/.git/**"/>
|
||||
<exclude name="**/.hg/**"/>
|
||||
<exclude name="**/.svn/**"/>
|
||||
<exclude name="**/CVS/**"/>
|
||||
<exclude name="**/__pycache__/**"/>
|
||||
<exclude name="**/_svn/**"/>
|
||||
<exclude name="**/vssver.scc/**"/>
|
||||
<exclude name="**/vssver2.scc/**"/>
|
||||
</patternset>
|
||||
<patternset id="library.patterns">
|
||||
<include name="*.war"/>
|
||||
<include name="*.swc"/>
|
||||
<include name="*.zip"/>
|
||||
<include name="*.egg"/>
|
||||
<include name="*.ane"/>
|
||||
<include name="*.jar"/>
|
||||
<include name="*.ear"/>
|
||||
<include name="*.klib"/>
|
||||
</patternset>
|
||||
<patternset id="compiler.resources">
|
||||
<exclude name="**/?*.java"/>
|
||||
<exclude name="**/?*.form"/>
|
||||
<exclude name="**/?*.class"/>
|
||||
<exclude name="**/?*.groovy"/>
|
||||
<exclude name="**/?*.scala"/>
|
||||
<exclude name="**/?*.flex"/>
|
||||
<exclude name="**/?*.kt"/>
|
||||
<exclude name="**/?*.clj"/>
|
||||
<exclude name="**/?*.aj"/>
|
||||
</patternset>
|
||||
|
||||
<property name="project.jdk.home" value=""/>
|
||||
<property name="project.jdk.bin" value=""/>
|
||||
<property name="project.jdk.classpath" value=""/>
|
||||
<!-- Register Custom Compiler Taskdefs -->
|
||||
<property name="javac2.home" value="${idea.home}/lib"/>
|
||||
<path id="javac2.classpath">
|
||||
<fileset dir="${javac2.home}">
|
||||
<include name="javac2.jar"/>
|
||||
<include name="jdom.jar"/>
|
||||
<include name="asm-all*.jar"/>
|
||||
<include name="forms-*.jar"/>
|
||||
</fileset>
|
||||
</path>
|
||||
<target name="register.custom.compilers">
|
||||
<taskdef name="javac2" classname="com.intellij.ant.Javac2" classpathref="javac2.classpath"/>
|
||||
<taskdef name="instrumentIdeaExtensions" classname="com.intellij.ant.InstrumentIdeaExtensions" classpathref="javac2.classpath"/>
|
||||
</target>
|
||||
|
||||
<!-- Modules -->
|
||||
|
||||
<import file="${basedir}/.idea/module_vulnerable-web-application.xml"/>
|
||||
|
||||
<target name="init" description="Build initialization">
|
||||
<!-- Perform any build initialization in this target -->
|
||||
</target>
|
||||
|
||||
<target name="clean" depends="clean.module.vulnerable-web-application" description="cleanup all"/>
|
||||
|
||||
<target name="build.modules" depends="init, clean, compile.module.vulnerable-web-application" description="build all modules"/>
|
||||
|
||||
<target name="all" depends="build.modules" description="build all"/>
|
||||
</project>
|
Loading…
Reference in New Issue
Block a user