-
Notifications
You must be signed in to change notification settings - Fork 3
Add GitLab jobToken exploit #499
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
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.
Pull request overview
Adds a new GitLab gl jobToken exploit command path intended to validate a CI job token, download secure files, and attempt a repo write as an exploitation workflow within Pipeleek’s GitLab tooling.
Changes:
- Introduces new Cobra command group
gl jobTokenwithexploitsubcommand and config bindings. - Adds
pkg/gitlab/jobtokenimplementation plus unit tests and GitLab e2e tests. - Updates example configuration and documentation to include the new
gitlab.jobToken.exploit.projectsetting.
Reviewed changes
Copilot reviewed 10 out of 10 changed files in this pull request and generated 8 comments.
Show a summary per file
| File | Description |
|---|---|
| tests/e2e/gitlab/jobtoken/exploit_test.go | New e2e coverage for the gl jobToken exploit CLI flow (mock GitLab API). |
| pkg/gitlab/jobtoken/exploit.go | Implements job token validation, secure file download, and repo write attempt via git. |
| pkg/gitlab/jobtoken/exploit_test.go | Unit tests for URL normalization, branch naming, auth URL formatting, and token scrubbing. |
| internal/cmd/gitlab/jobToken/jobtoken.go | Adds jobToken root command with token prefix validation and inherited flag/config binding. |
| internal/cmd/gitlab/jobToken/exploit/exploit.go | Adds exploit subcommand and binds project config key. |
| internal/cmd/gitlab/gitlab.go | Registers the new jobToken command under gl. |
| pipeleek.example.yaml | Documents new gitlab.jobToken.exploit.project config entry. |
| docs/introduction/configuration.md | Documents new gitlab.jobToken.exploit.project config entry. |
| internal/cmd/gitlab/jobToken/jobtoken_test.go | Basic command wiring tests for jobToken root cmd. |
| internal/cmd/gitlab/jobToken/exploit/exploit_test.go | Basic command wiring tests for exploit subcommand. |
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
No description provided.