Skip to content

Commit ddc5e49

Browse files
committed
better-macro has deliberate RCE in proc-macro
It's "Proving A Point" in https://github.com/raycar5/better-macro/blob/master/doc/hi.md but there's no guarantee that this will remain benign (or is actually benign right now). The crate also has no useful functionality.
1 parent e20838a commit ddc5e49

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
```toml
2+
[advisory]
3+
id = "RUSTSEC-0000-0000"
4+
package = "better-macro"
5+
date = "2021-07-22"
6+
url = "https://github.com/raycar5/better-macro/blob/24ff1702397b9c19bbfa4c660e2316cd77d3b900/src/lib.rs#L36"
7+
categories = ["code-execution"]
8+
keywords = ["rce", "proc-macro"]
9+
10+
[affected]
11+
functions = { "better_macro::println" = ["> 1.0.0"] }
12+
13+
[versions]
14+
patched = []
15+
```
16+
17+
[better-macro](https://crates.io/crates/better-macro) is a fake crate which is
18+
"Proving A Point" that proc-macros can run arbitrary code. This a particularly
19+
novel or interesting observation.

0 commit comments

Comments
 (0)