Skip to content

Conversation

J12934
Copy link
Member

@J12934 J12934 commented Jul 22, 2025

Description

Fixes Issue with nuclei parser not working properly with findings which do not have portnumbers in their hostname

Checklist

  • Test your changes as thoroughly as possible before you commit them. Preferably, automate your test by unit/integration tests.
  • Make sure that all your commits are signed-off and that you are added to the Contributors file.
  • Make sure that all CI finish successfully.
  • Optional (but appreciated): Make sure that all commits are Verified.

… do not have portnumbers in their hostname

Signed-off-by: Jannik Hollenbach <jannik.hollenbach@iteratec.com>
@J12934 J12934 self-assigned this Jul 22, 2025
@J12934 J12934 added the bug Bugs label Jul 22, 2025
Copy link

netlify bot commented Jul 22, 2025

Deploy Preview for docs-securecodebox canceled.

Name Link
🔨 Latest commit 89326c4
🔍 Latest deploy log https://app.netlify.com/projects/docs-securecodebox/deploys/688b64cde95cc300088d7787

@J12934 J12934 moved this from Triage to In Progress in secureCodeBox Jul 22, 2025
@J12934 J12934 moved this from In Progress to To Review in secureCodeBox Jul 29, 2025
@@ -99,10 +99,17 @@ function parseHostname(host) {
}

try {
const url = new URL(host);
// If the host doesn't have a protocol, add one to make URL parsing work
const urlString = host.includes("://") ? host : `http://${host}`;
Copy link
Member

Choose a reason for hiding this comment

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

At least in my browser an URL like www.example.com:// is valid. I suggest to check for ^http(s)://.

J12934 added 2 commits July 31, 2025 14:35
Signed-off-by: Jannik Hollenbach <jannik.hollenbach@iteratec.com>
Signed-off-by: Jannik Hollenbach <jannik.hollenbach@iteratec.com>
Copy link

@github-project-automation github-project-automation bot moved this from To Review to Reviewer Approved in secureCodeBox Jul 31, 2025
@Weltraumschaf Weltraumschaf merged commit e554ce7 into secureCodeBox:main Jul 31, 2025
48 checks passed
@github-project-automation github-project-automation bot moved this from Reviewer Approved to Done in secureCodeBox Jul 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bugs
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants