Skip to content

Conversation

prabhu
Copy link
Collaborator

@prabhu prabhu commented Jul 30, 2025

Fixes #2104. The fix was vibe coded using qwen3-coder.

❯ curl "http://127.0.0.1:9090/sbom"                                                                                                                                                                                                               (base)
{"error":"Path or URL is required."}⏎
prabhu@mpro ~ [1]
❯ curl "http://127.0.0.1:9090/sbom?url=https://github.com/HooliCorp/vulnerable-aws-koa-app.git&multiProject=true&type=js"                                                                                                                         (base)
{"bomFormat":"CycloneDX","specVersion":"1.6","serialNumber":"urn:uuid:d90d817e-1156-476f-8ab7-87e0067d7ff7","version":1,"metadata":{"timestamp":"2025-07-30T14:51:03Z","tools":{"components":[{"group":"@cyclonedx","name":"cdxgen","version":"11.5.0","purl":"pkg:npm/%40cyclonedx/cdxgen@11.5.0","type":"application","bom-ref":"pkg:npm/@cyclonedx/cdxgen@11.5.0","publisher":"OWASP Foundation","authors":[{"name":"OWASP Foundation"}]}]},"authors":[{"name":"OWASP Foundation"}],"lifecycles":[{"phase":"build"}],"component":{"name":"vulnerable-aws-koa-app","group":"","version":"1.0.0","description":"Vulnerable AWS Koa App for testing SAST tools","purl":"pkg:npm/vulnerable-aws-koa-app@1.0.0","bom-ref":"pkg:npm/vulnerable-aws-koa-app@1.0.0","author":"Prabhu Subramanian<prabhu@shiftleft.io>","type":"application","licenses":[{"license":{"id":"Apache-2.0","url":"h

Signed-off-by: Prabhu Subramanian <prabhu@appthreat.com>
@prabhu prabhu added the mode:server cdxgen used as server label Jul 30, 2025
…attribute

Signed-off-by: Prabhu Subramanian <prabhu@appthreat.com>
@prabhu
Copy link
Collaborator Author

prabhu commented Jul 30, 2025

Saw the below crash in one of the container bom generation step.

file:///home/runner/work/cdxgen/cdxgen/lib/helpers/utils.js:10112
    csProjData.project.restore.projectName,
                       ^

TypeError: Cannot read properties of undefined (reading 'restore')
    at parseCsProjAssetsData (file:///home/runner/work/cdxgen/cdxgen/lib/helpers/utils.js:10112:24)
    at createCsharpBom (file:///home/runner/work/cdxgen/cdxgen/lib/cli/index.js:6585:23)
    at createMultiXBom (file:///home/runner/work/cdxgen/cdxgen/lib/cli/index.js:7404:23)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async createBom (file:///home/runner/work/cdxgen/cdxgen/lib/cli/index.js:8275:12)
    at async file:///home/runner/work/cdxgen/cdxgen/bin/cdxgen.js:837:20

Signed-off-by: Prabhu Subramanian <prabhu@appthreat.com>
@prabhu
Copy link
Collaborator Author

prabhu commented Jul 30, 2025

prabhu and others added 3 commits July 30, 2025 23:40
Signed-off-by: Prabhu Subramanian <prabhu@appthreat.com>
Signed-off-by: prabhu <7842+prabhu@users.noreply.github.com>
Signed-off-by: Prabhu Subramanian <prabhu@appthreat.com>
@prabhu prabhu merged commit b1afa39 into master Jul 31, 2025
80 checks passed
@prabhu prabhu deleted the fix/issue-2104 branch July 31, 2025 00:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Server Crash | Single GET Request
1 participant