GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Command injection lesson by nbaars · Pull Request #2257 · WebGoat/WebGoat

Conversation

@nbaars

@nbaars nbaars commented Nov 2, 2025

Copy link
Copy Markdown
Collaborator

Thank you for submitting a pull request to the WebGoat!

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
AdeenIlyas
AdeenIlyas reviewed Jun 29, 2026
View reviewed changes

@AdeenIlyas AdeenIlyas left a comment

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AI Review Summary

PR #2257: Found 6 issues across 6 security and 0 complexity.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread src/main/resources/lessons/commandinjection/html/CommandInjection.html Outdated
th:replace="~{doc:lessons/commandinjection/documentation/CommandInjection_Safety.adoc}"></div>
<div class="attack-container">
<div class="assignment-success"><i class="fa fa-2 fa-check hidden" aria-hidden="true"></i></div>
<form id="safety-form" class="attack-form" method="POST" th:action="@{/CommandInjection/safety}">

@AdeenIlyas AdeenIlyas Jun 29, 2026

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[LOW] Snippet: requires login. Semgrep reports a missing CSRF token for a manually created form. In Django, every state-changing <form> should contain {% csrf_token %} to prevent cross-site request forgery. This file appears to be a plain HTML lesson template rather than a Django template, so the finding is likely a false positive. Verify that your server-side framework (e.g., Spring Security) automatically injects and validates CSRF tokens for these endpoints; if not, add the framework-specific CSRF token field to the form.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
nbaars added 8 commits September 23, 2026 16:47
@nbaars
WIP
18fd477
@nbaars
WIP
0e0e057
@nbaars
WIP
e8aa92d
@nbaars
finish
d633182
@nbaars
clean up
27a7400
@nbaars
formatting
50cce60
@nbaars
fix test
50d33af
@nbaars
feat(command-injection): harden executable lesson
fb2aaae
The lesson runs real host commands, so it needs an explicit safety gate, bounded process handling, portable exercises, and executable remediation checks before publication.

Closes: #1555
@nbaars
nbaars force-pushed the nbaars/command-injection branch from 0aa6940 to fb2aaae Compare September 23, 2026 15:46
nbaars added 4 commits September 24, 2026 10:28
@nbaars
fix(command-injection): parse Windows API key output
cd341a0
Windows can concatenate findstr and type output when metadata lacks a trailing newline, so the test must locate the key token anywhere in the console output.

Closes: #1555
@nbaars
fix: broken CI test
4d76bb9
@nbaars
test(command-injection): match named token in integration test
4262d6c
@nbaars
docs(command-injection): clarify lesson headings and safety status
e9744b5
@nbaars
nbaars merged commit c8ebd95 into main Oct 6, 2026
4 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@nbaars
nbaars deleted the nbaars/command-injection branch October 6, 2026 14:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

1 more reviewer
@AdeenIlyas AdeenIlyas AdeenIlyas left review comments
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@nbaars @AdeenIlyas
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.