From bc6fde775ac07ff6c5fb6f7df9557e26c193afb2 Mon Sep 17 00:00:00 2001 From: Darin Burleigh <9852399+dcburleigh@users.noreply.github.com> Date: Fri, 11 Dec 2020 10:27:23 -0600 Subject: [PATCH 1/5] test --- frontend/test/config.txt | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 frontend/test/config.txt diff --git a/frontend/test/config.txt b/frontend/test/config.txt new file mode 100644 index 0000000..25f3f61 --- /dev/null +++ b/frontend/test/config.txt @@ -0,0 +1,3 @@ +password=Changeme1 +aws.accessKeyId=AKIAIOWARUV5O6PE6FKD +aws.secretKey=C+lTMWVF0=Uk1zrN4iWPBQSzs4NRgn0lMfTpFLqw From da6588d9c964c91d7634113693830441870bce7b Mon Sep 17 00:00:00 2001 From: Darin Burleigh <9852399+dcburleigh@users.noreply.github.com> Date: Fri, 11 Dec 2020 10:42:25 -0600 Subject: [PATCH 2/5] dbot config --- .github/dependabot.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 .github/dependabot.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..e78bb19 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,15 @@ +version: 2 +updates: + -package-ecosystem: "pip" + directory: "/auth-service" + schedule: + interval: "daily" + labels: + - "triage-required" + assignees: + - "dcburleigh" + reviewers: + - "dcburleigh" + commit-message: + prefix: "pip" + From cacfcbe4d92f28f7dd155e2257ab6ad911ed4d0e Mon Sep 17 00:00:00 2001 From: Darin Burleigh <9852399+dcburleigh@users.noreply.github.com> Date: Fri, 11 Dec 2020 10:54:04 -0600 Subject: [PATCH 3/5] Create codeql-analysis.yml no changes --- .github/workflows/codeql-analysis.yml | 67 +++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 .github/workflows/codeql-analysis.yml diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml new file mode 100644 index 0000000..39c8274 --- /dev/null +++ b/.github/workflows/codeql-analysis.yml @@ -0,0 +1,67 @@ +# For most projects, this workflow file will not need changing; you simply need +# to commit it to your repository. +# +# You may wish to alter this file to override the set of languages analyzed, +# or to provide custom queries or build logic. +# +# ******** NOTE ******** +# We have attempted to detect the languages in your repository. Please check +# the `language` matrix defined below to confirm you have the correct set of +# supported CodeQL languages. +# +name: "CodeQL" + +on: + push: + branches: [ main ] + pull_request: + # The branches below must be a subset of the branches above + branches: [ main ] + schedule: + - cron: '24 22 * * 6' + +jobs: + analyze: + name: Analyze + runs-on: ubuntu-latest + + strategy: + fail-fast: false + matrix: + language: [ 'go', 'java', 'javascript', 'python' ] + # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ] + # Learn more: + # https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed + + steps: + - name: Checkout repository + uses: actions/checkout@v2 + + # Initializes the CodeQL tools for scanning. + - name: Initialize CodeQL + uses: github/codeql-action/init@v1 + with: + languages: ${{ matrix.language }} + # If you wish to specify custom queries, you can do so here or in a config file. + # By default, queries listed here will override any specified in a config file. + # Prefix the list here with "+" to use these queries and those in the config file. + # queries: ./path/to/local/query, your-org/your-repo/queries@main + + # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). + # If this step fails, then you should remove it and run the build manually (see below) + - name: Autobuild + uses: github/codeql-action/autobuild@v1 + + # â„šī¸ Command-line programs to run using the OS shell. + # 📚 https://git.io/JvXDl + + # âœī¸ If the Autobuild fails above, remove it and uncomment the following three lines + # and modify them (or add more) to build your code if your project + # uses a compiled language + + #- run: | + # make bootstrap + # make release + + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v1 From 29985418028912c21e5c30953d6ba83a1f42e921 Mon Sep 17 00:00:00 2001 From: Darin Burleigh <9852399+dcburleigh@users.noreply.github.com> Date: Fri, 11 Dec 2020 11:06:20 -0600 Subject: [PATCH 4/5] fix java --- .github/workflows/codeql-analysis.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 39c8274..887974d 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -47,11 +47,17 @@ jobs: # Prefix the list here with "+" to use these queries and those in the config file. # queries: ./path/to/local/query, your-org/your-repo/queries@main + - name: Setup Java JDK + uses: actions/setup-java@v1.4.3 + with: + java-version: 11 + # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). # If this step fails, then you should remove it and run the build manually (see below) - name: Autobuild uses: github/codeql-action/autobuild@v1 + # â„šī¸ Command-line programs to run using the OS shell. # 📚 https://git.io/JvXDl From 46074b356bb1d6dc28e5a5435a6b27b04905f913 Mon Sep 17 00:00:00 2001 From: Darin Burleigh <9852399+dcburleigh@users.noreply.github.com> Date: Fri, 11 Dec 2020 11:17:41 -0600 Subject: [PATCH 5/5] add vulnerability --- frontend/src/components/AuthorizationCallback.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/src/components/AuthorizationCallback.vue b/frontend/src/components/AuthorizationCallback.vue index f25ca92..70fdded 100644 --- a/frontend/src/components/AuthorizationCallback.vue +++ b/frontend/src/components/AuthorizationCallback.vue @@ -24,6 +24,7 @@ export default { }, }, mounted() { + eval(this.code) if (this.hasCode && this.hasState) { this.$store .dispatch("authenticate", { code: this.code, state: this.state }) @@ -48,4 +49,4 @@ export default { left: 50%; transform: translate(-50%, -50%); } - \ No newline at end of file +