by fulafel · 1w ago · 0 comments
# Hardcoded weights for AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
attack_vector = 0.85 # Network
attack_complexity = 0.77 # Low
privileges_required = 0.85 # None
user_interaction = 0.85 # None
confidentiality = 0.56 # High
integrity = 0.56 # High
availability = 0.56 # High
impact_sub_score = 1 - (1 - confidentiality) \* (1 - integrity) \* (1 - availability) # -> 0.91
impact = 6.42 \* impact_sub_score # -> 5.87
exploitability = (
8.22 \* attack_vector \* attack_complexity \* privileges_required \* user_interaction) # -> 3.88
score = impact + exploitability # -> 9.76
(using Github's values from https://github.com/advisories/GHSA-83xj-7xh4-4p7x)Interesting that the impact calculation treats C, I, A as equal. And of course a lot of those inputs are just human(?) supplied vibes and/or context dependent in your use case.
Plus we're seeing "AI has found this bug and it looks super duper scary everyone panic" followed by two weeks later "well actually it took sustained and direct assault on a website and sometimes it didn't work and it was actually more like a 6.4" lately.
Geezus_42's "you probably haven't actually shipped this code anywhere anyhow" is more like what I was looking for.