Repository navigation
Closed
Description
Hi, Mainteners, i'm relunsec from insitetech.jp
We confirmed a DoS in triagebot, we used our fuzzer and that was the crash logs
thread '<unnamed>' (72700) panicked at /home/relunsec/triagebot/parser/src/command.rs:157:9:
succeeded parsing "\00\0\u{7f}\0\"\0bo#tt +" to multiple commands: [(Tokenizer { input: "\00\0\u{7f}\0\"\0bo#tt +", chars: Peekable { iter: CharIndices { front_offset: 0, iter: Chars(['\0', '0', '\0', '\u{7f}', '\0', '"', '\0', 'b', 'o', '#', 't', 't', ' ', '+']) }, peeked: None }, end_of_input_emitted: false }, Relabel(Err(Error { input: "\00\0\u{7f}\0\"\0bo#tt +", position: 5, source: QuoteInWord }))), (Tokenizer { input: "\00\0\u{7f}\0\"\0bo#tt +", chars: Peekable { iter: CharIndices { front_offset: 0, iter: Chars(['\0', '0', '\0', '\u{7f}', '\0', '"', '\0', 'b', 'o', '#', 't', 't', ' ', '+']) }, peeked: None }, end_of_input_emitted: false }, Assign(Err(Error { input: "\00\0\u{7f}\0\"\0bo#tt +", position: 5, source: QuoteInWord }))), (Tokenizer { input: "\00\0\u{7f}\0\"\0bo#tt +", chars: Peekable { iter: CharIndices { front_offset: 0, iter: Chars(['\0', '0', '\0', '\u{7f}', '\0', '"', '\0', 'b', 'o', '#', 't', 't', ' ', '+']) }, peeked: None }, end_of_input_emitted: false }, Note(Err(Error { input: "\00\0\u{7f}\0\"\0bo#tt +", position: 5, source: QuoteInWord }))), (Tokenizer { input: "\00\0\u{7f}\0\"\0bo#tt +", chars: Peekable { iter: CharIndices { front_offset: 0, iter: Chars(['\0', '0', '\0', '\u{7f}', '\0', '"', '\0', 'b', 'o', '#', 't', 't', ' ', '+']) }, peeked: None }, end_of_input_emitted: false }, Concern(Err(Error { input: "\00\0\u{7f}\0\"\0bo#tt +", position: 5, source: QuoteInWord }))), (Tokenizer { input: "\00\0\u{7f}\0\"\0bo#tt +", chars: Peekable { iter: CharIndices { front_offset: 0, iter: Chars(['\0', '0', '\0', '\u{7f}', '\0', '"', '\0', 'b', 'o', '#', 't', 't', ' ', '+']) }, peeked: None }, end_of_input_emitted: false }, Ping(Err(Error { input: "\00\0\u{7f}\0\"\0bo#tt +", position: 5, source: QuoteInWord }))), (Tokenizer { input: "\00\0\u{7f}\0\"\0bo#tt +", chars: Peekable { iter: CharIndices { front_offset: 0, iter: Chars(['\0', '0', '\0', '\u{7f}', '\0', '"', '\0', 'b', 'o', '#', 't', 't', ' ', '+']) }, peeked: None }, end_of_input_emitted: false }, Nominate(Err(Error { input: "\00\0\u{7f}\0\"\0bo#tt +", position: 5, source: QuoteInWord }))), (Tokenizer { input: "\00\0\u{7f}\0\"\0bo#tt +", chars: Peekable { iter: CharIndices { front_offset: 0, iter: Chars(['\0', '0', '\0', '\u{7f}', '\0', '"', '\0', 'b', 'o', '#', 't', 't', ' ', '+']) }, peeked: None }, end_of_input_emitted: false }, Prioritize(Err(Error { input: "\00\0\u{7f}\0\"\0bo#tt +", position: 5, source: QuoteInWord }))), (Tokenizer { input: "\00\0\u{7f}\0\"\0bo#tt +", chars: Peekable { iter: CharIndices { front_offset: 0, iter: Chars(['\0', '0', '\0', '\u{7f}', '\0', '"', '\0', 'b', 'o', '#', 't', 't', ' ', '+']) }, peeked: None }, end_of_input_emitted: false }, Second(Err(Error { input: "\00\0\u{7f}\0\"\0bo#tt +", position: 5, source: QuoteInWord }))), (Tokenizer { input: "\00\0\u{7f}\0\"\0bo#tt +", chars: Peekable { iter: CharIndices { front_offset: 0, iter: Chars(['\0', '0', '\0', '\u{7f}', '\0', '"', '\0', 'b', 'o', '#', 't', 't', ' ', '+']) }, peeked: None }, end_of_input_emitted: false }, Shortcut(Err(Error { input: "\00\0\u{7f}\0\"\0bo#tt +", position: 5, source: QuoteInWord }))), (Tokenizer { input: "\00\0\u{7f}\0\"\0bo#tt +", chars: Peekable { iter: CharIndices { front_offset: 0, iter: Chars(['\0', '0', '\0', '\u{7f}', '\0', '"', '\0', 'b', 'o', '#', 't', 't', ' ', '+']) }, peeked: None }, end_of_input_emitted: false }, Lock(Err(Error { input: "\00\0\u{7f}\0\"\0bo#tt +", position: 5, source: QuoteInWord }))), (Tokenizer { input: "\00\0\u{7f}\0\"\0bo#tt +", chars: Peekable { iter: CharIndices { front_offset: 0, iter: Chars(['\0', '0', '\0', '\u{7f}', '\0', '"', '\0', 'b', 'o', '#', 't', 't', ' ', '+']) }, peeked: None }, end_of_input_emitted: false }, Close(Err(Error { input: "\00\0\u{7f}\0\"\0bo#tt +", position: 5, source: QuoteInWord }))), (Tokenizer { input: "\00\0\u{7f}\0\"\0bo#tt +", chars: Peekable { iter: CharIndices { front_offset: 0, iter: Chars(['\0', '0', '\0', '\u{7f}', '\0', '"', '\0', 'b', 'o', '#', 't', 't', ' ', '+']) }, peeked: None }, end_of_input_emitted: false }, Transfer(Err(Error { input: "\00\0\u{7f}\0\"\0bo#tt +", position: 5, source: QuoteInWord }))), (Tokenizer { input: "\00\0\u{7f}\0\"\0bo#tt +", chars: Peekable { iter: CharIndices { front_offset: 0, iter: Chars(['\0', '0', '\0', '\u{7f}', '\0', '"', '\0', 'b', 'o', '#', 't', 't', ' ', '+']) }, peeked: None }, end_of_input_emitted: false }, Merge(Err(Error { input: "\00\0\u{7f}\0\"\0bo#tt +", position: 5, source: QuoteInWord })))]
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
==72700== ERROR: libFuzzer: deadly signal
#0 0x617f40208201 (/home/relunsec/triagebot/parser/fuzz/target/x86_64-unknown-linux-gnu/release/fuzz_target_1+0x5a5201) (BuildId: 9e7a7bd8bc2423fa63fbaf0f258bad023fc8f1dd)
#1 0x617f406c806b (/home/relunsec/triagebot/parser/fuzz/target/x86_64-unknown-linux-gnu/release/fuzz_target_1+0xa6506b) (BuildId: 9e7a7bd8bc2423fa63fbaf0f258bad023fc8f1dd)
#2 0x617f406b6889 (/home/relunsec/triagebot/parser/fuzz/target/x86_64-unknown-linux-gnu/release/fuzz_target_1+0xa53889) (BuildId: 9e7a7bd8bc2423fa63fbaf0f258bad023fc8f1dd)
#3 0x7f2615d7bcaf (/usr/lib/x86_64-linux-gnu/libc.so.6+0x45caf) (BuildId: 240c8909736b31f963346aca80667fd00c551e32)
#4 0x7f2615ddc42b (/usr/lib/x86_64-linux-gnu/libc.so.6+0xa642b) (BuildId: 240c8909736b31f963346aca80667fd00c551e32)
#5 0x7f2615d7bb7d (/usr/lib/x86_64-linux-gnu/libc.so.6+0x45b7d) (BuildId: 240c8909736b31f963346aca80667fd00c551e32)
#6 0x7f2615d5e8eb (/usr/lib/x86_64-linux-gnu/libc.so.6+0x288eb) (BuildId: 240c8909736b31f963346aca80667fd00c551e32)
#7 0x617f407319c9 (/home/relunsec/triagebot/parser/fuzz/target/x86_64-unknown-linux-gnu/release/fuzz_target_1+0xace9c9) (BuildId: 9e7a7bd8bc2423fa63fbaf0f258bad023fc8f1dd)
#8 0x617f40730638 (/home/relunsec/triagebot/parser/fuzz/target/x86_64-unknown-linux-gnu/release/fuzz_target_1+0xacd638) (BuildId: 9e7a7bd8bc2423fa63fbaf0f258bad023fc8f1dd)
#9 0x617f406af5a4 (/home/relunsec/triagebot/parser/fuzz/target/x86_64-unknown-linux-gnu/release/fuzz_target_1+0xa4c5a4) (BuildId: 9e7a7bd8bc2423fa63fbaf0f258bad023fc8f1dd)
#10 0x617f407308c1 (/home/relunsec/triagebot/parser/fuzz/target/x86_64-unknown-linux-gnu/release/fuzz_target_1+0xacd8c1) (BuildId: 9e7a7bd8bc2423fa63fbaf0f258bad023fc8f1dd)
#11 0x617f4071e811 (/home/relunsec/triagebot/parser/fuzz/target/x86_64-unknown-linux-gnu/release/fuzz_target_1+0xabb811) (BuildId: 9e7a7bd8bc2423fa63fbaf0f258bad023fc8f1dd)
#12 0x617f40716e38 (/home/relunsec/triagebot/parser/fuzz/target/x86_64-unknown-linux-gnu/release/fuzz_target_1+0xab3e38) (BuildId: 9e7a7bd8bc2423fa63fbaf0f258bad023fc8f1dd)
#13 0x617f4071ef2c (/home/relunsec/triagebot/parser/fuzz/target/x86_64-unknown-linux-gnu/release/fuzz_target_1+0xabbf2c) (BuildId: 9e7a7bd8bc2423fa63fbaf0f258bad023fc8f1dd)
#14 0x617f40745c2b (/home/relunsec/triagebot/parser/fuzz/target/x86_64-unknown-linux-gnu/release/fuzz_target_1+0xae2c2b) (BuildId: 9e7a7bd8bc2423fa63fbaf0f258bad023fc8f1dd)
#15 0x617f40293e1d (/home/relunsec/triagebot/parser/fuzz/target/x86_64-unknown-linux-gnu/release/fuzz_target_1+0x630e1d) (BuildId: 9e7a7bd8bc2423fa63fbaf0f258bad023fc8f1dd)
#16 0x617f40238d3b (/home/relunsec/triagebot/parser/fuzz/target/x86_64-unknown-linux-gnu/release/fuzz_target_1+0x5d5d3b) (BuildId: 9e7a7bd8bc2423fa63fbaf0f258bad023fc8f1dd)
#17 0x617f4023ac45 (/home/relunsec/triagebot/parser/fuzz/target/x86_64-unknown-linux-gnu/release/fuzz_target_1+0x5d7c45) (BuildId: 9e7a7bd8bc2423fa63fbaf0f258bad023fc8f1dd)
#18 0x617f406af134 (/home/relunsec/triagebot/parser/fuzz/target/x86_64-unknown-linux-gnu/release/fuzz_target_1+0xa4c134) (BuildId: 9e7a7bd8bc2423fa63fbaf0f258bad023fc8f1dd)
#19 0x617f406afd78 (/home/relunsec/triagebot/parser/fuzz/target/x86_64-unknown-linux-gnu/release/fuzz_target_1+0xa4cd78) (BuildId: 9e7a7bd8bc2423fa63fbaf0f258bad023fc8f1dd)
#20 0x617f406ae82d (/home/relunsec/triagebot/parser/fuzz/target/x86_64-unknown-linux-gnu/release/fuzz_target_1+0xa4b82d) (BuildId: 9e7a7bd8bc2423fa63fbaf0f258bad023fc8f1dd)
#21 0x617f406b6e3c (/home/relunsec/triagebot/parser/fuzz/target/x86_64-unknown-linux-gnu/release/fuzz_target_1+0xa53e3c) (BuildId: 9e7a7bd8bc2423fa63fbaf0f258bad023fc8f1dd)
#22 0x617f406bb995 (/home/relunsec/triagebot/parser/fuzz/target/x86_64-unknown-linux-gnu/release/fuzz_target_1+0xa58995) (BuildId: 9e7a7bd8bc2423fa63fbaf0f258bad023fc8f1dd)
#23 0x617f406be3c2 (/home/relunsec/triagebot/parser/fuzz/target/x86_64-unknown-linux-gnu/release/fuzz_target_1+0xa5b3c2) (BuildId: 9e7a7bd8bc2423fa63fbaf0f258bad023fc8f1dd)
#24 0x617f406bfd57 (/home/relunsec/triagebot/parser/fuzz/target/x86_64-unknown-linux-gnu/release/fuzz_target_1+0xa5cd57) (BuildId: 9e7a7bd8bc2423fa63fbaf0f258bad023fc8f1dd)
#25 0x617f406ea991 (/home/relunsec/triagebot/parser/fuzz/target/x86_64-unknown-linux-gnu/release/fuzz_target_1+0xa87991) (BuildId: 9e7a7bd8bc2423fa63fbaf0f258bad023fc8f1dd)
#26 0x617f4070d256 (/home/relunsec/triagebot/parser/fuzz/target/x86_64-unknown-linux-gnu/release/fuzz_target_1+0xaaa256) (BuildId: 9e7a7bd8bc2423fa63fbaf0f258bad023fc8f1dd)
#27 0x7f2615d60600 (/usr/lib/x86_64-linux-gnu/libc.so.6+0x2a600) (BuildId: 240c8909736b31f963346aca80667fd00c551e32)
#28 0x7f2615d60717 (/usr/lib/x86_64-linux-gnu/libc.so.6+0x2a717) (BuildId: 240c8909736b31f963346aca80667fd00c551e32)
#29 0x617f40172464 (/home/relunsec/triagebot/parser/fuzz/target/x86_64-unknown-linux-gnu/release/fuzz_target_1+0x50f464) (BuildId: 9e7a7bd8bc2423fa63fbaf0f258bad023fc8f1dd)
NOTE: libFuzzer has rudimentary signal handlers.
Combine libFuzzer with AddressSanitizer or similar for better crash reports.
SUMMARY: libFuzzer: deadly signal
MS: 3 ChangeBit-PersAutoDict-ChangeByte- DE: "\000\177"-; base unit: b87bc6c0085b7b2fa14aada0d6248f59a14ff857
0x75,0x73,0x7a,0x40,0x72,0x75,0xc5,0xbf,0x74,0x62,0x6f,0x74,0x0,0x30,0x0,0x7f,0x0,0x22,0x0,0x62,0x6f,0x23,0x74,0x74,0x20,0x2b,
usz@ru\305\277tbot\0000\000\177\000\"\000bo#tt +
artifact_prefix='/home/relunsec/triagebot/parser/fuzz/artifacts/fuzz_target_1/'; Test unit written to /home/relunsec/triagebot/parser/fuzz/artifacts/fuzz_target_1/crash-717263d16574b7ebc8d5f35b70eae314d9215a64
Base64: dXN6QHJ1xb90Ym90ADAAfwAiAGJvI3R0ICs=that was the fuzzer we used
#![no_main]
use libfuzzer_sys::fuzz_target;
fuzz_target!(|data: &[u8]| {
// Convert random fuzz bytes into a UTF-8 string slice
if let Ok(string_input) = std::str::from_utf8(data) {
// Define the name of the bot we are targeting (just like production code)
let bot_names = vec!["rustbot"];
// Initialize the official public Input parser engine
let mut parser_input = parser::command::Input::new(string_input, bot_names);
// Input implements Iterator. Let's step through it to force execution
// of all the inner sub-parsers (assign, relabel, close, merge, etc.)
while let Some(command_result) = parser_input.next() {
// Check if the command parsing resulted in an OK state or an Err
// This forces evaluation of the enum and triggers panics if a bug exists!
let _ = command_result.is_ok();
}
}
});that was the fuzzer input
relunsec@relunsec:~/triagebot/parser/fuzz/fuzz_targets$ cat ../artifacts/fuzz_target_1/crash-717263d16574b7ebc8d5f35b70eae314d9215a64 | xxd
00000000: 7573 7a40 7275 c5bf 7462 6f74 0030 007f usz@ru..tbot.0..
00000010: 0022 0062 6f23 7474 202b .".bo#tt +
relunsec@relunsec:~/triagebot/parser/fuzz/fuzz_targets$
that caused crashed triagebot, if an attacker feed it will crash the rust triagebot that used by the rust-lang
This reported to rust security team and they say just put it publicly because this a triage bot internal tool
the response i get is
Hi!
Sorry, I think the earlier report went to spam.
Hmm, I would recommend you just report this publicly, especially if you care about credit. Triagebot is an internal tool and while we would like it to not be DoSd I think fixing this in public is fine (worst case: the internal tool doesn't work for a day). Send me a link once you've reported it.
Please do clean up the report before posting, it's really hard to understand what the actual attack path is from this.
-Manish Goregaokar
from the rust security team so, they ask to me report it and will be fixed
Metadata
Metadata
Assignees
Labels
No labels
Activity
Kobzol commentedon Nov 14, 2026
Thank you for reporting the bug. #2564 should fix it.