Skip to content
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

gix-path release #1582

Merged
merged 2 commits into from
Sep 6, 2024
Merged

gix-path release #1582

merged 2 commits into from
Sep 6, 2024

Conversation

Byron
Copy link
Member

@Byron Byron commented Sep 6, 2024

In preparation for advisory.

@Byron
Copy link
Member Author

Byron commented Sep 6, 2024

@EliahKagan I jumped the gun and published the advisory before adding comments, so I am adding the comment here instead.
The CVE is requested as well, and with the publish of gix-path done (it was a patch-release fortunately) I think everything worked out as planned.
Merging this PR is just a formality due to branch-protection now activated - auto-merge compensates well for that.

@Byron Byron marked this pull request as ready for review September 6, 2024 05:53
@Byron Byron enabled auto-merge September 6, 2024 05:53
@Byron Byron merged commit 93e86f1 into main Sep 6, 2024
15 checks passed
@EliahKagan
Copy link
Member

Thanks!

Seeing this, I have edited the "Affected versions" in the advisory metadata to change it from <= 0.10.10 to < 0.10.11, which I think is clearer and also is similar to what we have been doing for the other advisories. (If you prefer this not be done, please certainly change it back and/or ask me to do so.)

@Byron Byron deleted the gix-path-release branch September 6, 2024 09:24
@EliahKagan
Copy link
Member

I've opened rustsec/advisory-db#2071 to create the corresponding RUSTSEC advisory.

@EliahKagan
Copy link
Member

The GitHub Advisory Database global advisory for CVE-2024-45405 has been released. I've updated the PR rustsec/advisory-db#2071 (already updated with the CVE number) to include a reference to it. I've also opened github/advisory-database#4768 to fix the rendering/linkifying of a commit hash that is intended to be a hyperlink, which rendered as intended automatically in the repo-local GHSA but not in the global GHSA. (This would not render automatically in a RUSTSEC advisory either, but I anticipated that when submitting it, so nothing further has to be done in that PR for this rendering issue.)

@EliahKagan
Copy link
Member

EliahKagan commented Sep 9, 2024

Unfortunately there were some problems revising the global CVE-2024-45405 advisory and the published version is now substantially broken.

Merging github/advisory-database#4768 has, along with the one change I made there, also brought in a number of incorrect changes to parts of the advisory not edited in that PR. I have verified using this tool that there really is nothing in the PR itself that corresponds to these other changes.

Applied changes, including the breakages, took effect on the published global advisory in github/advisory-database@58f1bbf. (Those changes also include adding a reference to the RUSTSEC advisory.)

This appears to be due to different parsing or rendering rules applying before and after a PR is merged, and I have no idea how that happens, but it is something I've seen before in github/advisory-database#3290.

However, in that older PR on an older advisory, a member of the GitHub security curation team was visibly involved in reviewing the advisory, and was therefore available to fix the problem. I don't know how to go about fixing it in this case.

Presumably a manual PR with some syntax could fix it, but:

  • I have no firm idea what syntax changes would work, because I have no way to preview it accurately.
  • Proposing an improvement to an advisory through the web-based interface shows a preview, but this is a preview of the changes as one writes them, and it does not include other changes that are, for some reason, also made automatically afterwards, which is the cause of this problem. So I cannot use that preview to figure out how to write a manual PR, either.
  • A revert would not work: presumably the same rules would continue to apply, but even if not, a revert would also undo the date change in the metadata, thereby causing the previous version with the later date to still be considered authoritative.

The undesirable changes include adding backslashes and newlines to code blocks. This includes commands in the PoC section. As they currently appear in the global advisory, those commands will fail to trigger the vulnerability even when it is present and all other steps have been followed correctly. The risk is low, since the vulnerability is itself low risk as described in the "Impact" section, but this could lead to unjustified confidence that a patched version is in use.

For example, though this is not the only breakage, these are the commands that "Ren" should run, as still correctly shown in the repo-local advisory:

$d = "$HOME\303\251e\AppData\Local\Programs\Git\etc"
mkdir $d
git config --file $d\gitconfig core.sshCommand calc.exe
icacls $HOME\303 /grant 'Renée:(RX)' /T

This is what they have become in the global advisory since github/advisory-database#4768 was merged:

$d = \"$HOME\\303\\251e\\AppData\\Local\\Programs\\Git\\etc\"
mkdir $d
git config --file $d\\gitconfig core.sshCommand calc.exe
icacls $HOME\\303 /grant 'Renée:(RX)' /T

So the global advisory should be fixed in some way, but I don't know how.

Edit: I've opened github/advisory-database#4777 for this.

@EliahKagan

This comment was marked as duplicate.

@EliahKagan
Copy link
Member

The formatting and content problems that had arisen in the the global CVE-2024-45405 advisory have been completely fixed (github/advisory-database#4777).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants