Skip to content

templated/CVE-2026-18963 - #274

Open
dyeddala wants to merge 1 commit into
google:mainfrom
dyeddala:feature/CVE-2026-18963
Open

dyeddala wants to merge 1 commit into
google:mainfrom
dyeddala:feature/CVE-2026-18963

Conversation

@dyeddala

Copy link
Copy Markdown
Contributor

Please review.

Comment thread keycloak/CVE-2026-18963/README.md Outdated
Comment on lines +70 to +93
### 2. Automated Side-by-Side Verification with Tsunami

```bash
for port in 8080 8081; do
echo "=== Scanning Port $port ==="
docker run --rm --net=host \
--entrypoint /usr/bin/tsunami \
-v /tmp:/tmp \
ghcr.io/google/tsunami-scanner-full \
--ip-v4-target=127.0.0.1 \
--detectors-include=Keycloak_CVE_2026_18963 \
--port-ranges-target="${port}" \
--scan-results-local-output-format=JSON \
--scan-results-local-output-filename="/tmp/tsunami-out-${port}.json" 2>&1 | grep "# of detected vulnerability:"
done
```

**Expected Output:**
```text
=== Scanning Port 8080 ===
# of detected vulnerability: 1.
=== Scanning Port 8081 ===
# of detected vulnerability: 0.
```

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Could you replace this section with a section for how to reproduce the vulnerability without using tsunami (for example, with curl)?

Comment thread keycloak/CVE-2026-18963/README.md Outdated
Comment on lines +27 to +41
### Enable Reset-Credentials ("Forgot Password") on Both Instances

By default, Keycloak disables `resetPasswordAllowed` on the `master` realm. Enable it on both containers after startup:

```bash
# Enable on Vulnerable Instance (Port 8080)
docker exec keycloak_vulnerable_instance /opt/keycloak/bin/kcadm.sh update realms/master \
-s resetPasswordAllowed=true \
--server http://localhost:8080 --realm master --user admin --password admin

# Enable on Patched Instance (Port 8081)
docker exec keycloak_patched_instance /opt/keycloak/bin/kcadm.sh update realms/master \
-s resetPasswordAllowed=true \
--server http://localhost:8081 --realm master --user admin --password admin
```

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Could you put these commands into the docker-compose file instead so that it runs automatically?

@dyeddala
dyeddala force-pushed the feature/CVE-2026-18963 branch from ccc9f2b to a4966de Compare October 16, 2026 09:40
@dyeddala

Copy link
Copy Markdown
Contributor Author

Addressed.As per the comments.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants