Skip to content

Commit

Permalink
2.11.23 Update the StackHawk scan action script
Browse files Browse the repository at this point in the history
  • Loading branch information
webpwnized committed Oct 23, 2024
1 parent 8b8d2c8 commit 2153f2f
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/scan-application-with-stackhawk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ jobs:
- uses: actions/setup-java@main
with:
distribution: 'temurin'
java-version: '21'
java-version: '17'

# Step 8: Run StackHawk Scan
- name: Run StackHawk Scan
Expand All @@ -104,5 +104,17 @@ jobs:
workspace: mutillidae # Path to the workspace.
apiKey: ${{ secrets.HAWK_API_KEY }} # Secret key for authentication.
configurationFiles: .github/workflows/config/stackhawk.yml # Path to configuration file relative to workspace.
codeScanningAlerts: true # Enable code scanning alerts.
githubToken: ${{ github.token }} # GitHub token for authentication to Code Scanning Alerts
env:
APP_ID: ${{ secrets.HAWK_APP_ID }}
NO_PROGRESS: true
SARIF_ARTIFACT: true

- name: Upload SARIF file
uses: github/codeql-action/upload-sarif@main
with:
# Path to SARIF file relative to the root of the repository
sarif_file: stackhawk.sarif
# Optional category for the results
# Used to differentiate multiple results for one commit
category: StackHawk
4 changes: 2 additions & 2 deletions src/webservices/rest/ws-user-account.php
Original file line number Diff line number Diff line change
Expand Up @@ -219,8 +219,8 @@ function jsonEncodeQueryResults($pQueryResult){
/* $_POST array is not auto-populated for DELETE method. Parse input into an array. */
populatePOSTSuperGlobal();

$lAccountUsername = getPOSTParameter("username", TRUE);
$lAccountPassword = getPOSTParameter("password", TRUE);
$lAccountUsername = getPOSTParameter("username", true);
$lAccountPassword = getPOSTParameter("password", true);

if($SQLQueryHandler->accountExists($lAccountUsername)){

Expand Down

0 comments on commit 2153f2f

Please sign in to comment.