Skip to content

Commit 7201b3f

Browse files
author
Offensive 360
committed
Stop generating fake KB URLs - only show references from VulnerabilityInfo.json
1 parent a5c6351 commit 7201b3f

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

src/main/kotlin/com/offensive360/sast/toolwindow/SecurityFindingsPanel.kt

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -617,12 +617,8 @@ class SecurityFindingsPanel(private val project: Project) {
617617
}
618618
}
619619

620-
// Add auto-generated O360 KB link only if no KB link exists yet
621-
if (seenUrls.none { it.contains("knowledge-base.offensive360.com") }) {
622-
val kbSlug = (finding.type.ifBlank { finding.title }).replace("\\s+".toRegex(), "")
623-
val url = "https://knowledge-base.offensive360.com/$kbSlug/"
624-
allRefs.add(0, "O360 Knowledge Base" to url)
625-
}
620+
// Only show KB links that actually exist in VulnerabilityInfo.json references
621+
// Never auto-generate KB URLs from titles (they may not exist on the website)
626622

627623
// Render deduplicated references
628624
for ((label, url) in allRefs) {

0 commit comments

Comments
 (0)