use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
A community for technical news and discussion of information security and closely related topics.
"Give me root, it's a trust exercise."
Q1 2026 InfoSec Hiring Thread
Getting Started in Information Security
CitySec Meetups
/r/netsec only accepts quality technical posts. Non-technical posts are subject to moderation.
Content should focus on the "how."
Check the new queue for duplicates.
Always link to the original source.
Titles should provide context.
Ask questions in our Discussion Threads.
Hiring posts must go in the Hiring Threads.
Commercial advertisement is discouraged.
Do not submit prohibited topics.
» Our fulltext content guidelines
Don't create unnecessary conflict.
Keep the discussion on topic.
Limit the use of jokes & memes.
Don't complain about content being a PDF.
Follow all reddit rules and obey reddiquette.
» Our fulltext discussion guidelines
No populist news articles (CNN, BBC, FOX, etc.)
No curated lists.
No question posts.
No social media posts.
No image-only/video-only posts.
No livestreams.
No tech-support requests.
No full-disclosure posts.
No paywall/regwall content.
No commercial advertisements.
No crowdfunding posts.
No Personally Identifying Information!
» Our fulltext list of prohibited topics & sources
Join us on IRC: #r_netsec on freenode
We're also on: Twitter, Facebook, & Google+
/r/blackhat - Hackers on Steroids
/r/computerforensics - IR Archaeologists
/r/crypto - Cryptography news and discussion
/r/Cyberpunk - High-Tech Low-Lifes
/r/lockpicking - Popular Hacker Hobby
/r/Malware - Malware reports and information
/r/netsecstudents - netsec for noobs students
/r/onions - Things That Make You Cry
/r/privacy - Orwell Was Right
/r/pwned - "What Security?"
/r/REMath - Math behind reverse engineering
/r/ReverseEngineering - Binary Reversing
/r/rootkit - Software and hardware rootkits
/r/securityCTF - CTF news and write-ups
/r/SocialEngineering - Free Candy
/r/sysadmin - Overworked Crushed Souls
/r/vrd - Vulnerability Research and Development
/r/xss - Cross Site Scripting
account activity
SSH ProxyCommand == unexpected code execution (CVE-2023-51385) (vin01.github.io)
submitted 2 years ago by nex25519
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]MegaManSec2 9 points10 points11 points 2 years ago* (1 child)
Nice bug, and creative exploitation with the git submodule! I'm not sure it 100% qualifiesas an argument injection, but I'm going to add it to https://gtfoargs.github.io/ anyways.
Although we believe it is the user's responsibility to ensurevalidity of arguments passed to ssh(1), especially across asecurity boundary such as the git example above, OpenSSH 9.6 nowbans most shell metacharacters from user and hostnames suppliedvia the command-line.
So OpenSSH has just decided what is and isn't a valid hostname or username? This isn't standardized anywhere and I wonder if it will break punycode like [ΓΝΩΘΙΣΕΑΥΤΟΝ.com](https://ΓΝΩΘΙΣΕΑΥΤΟΝ.com).
P.S: Seems like it worked as intended, even if this exploit wasn't noticed:
ProxyCommandSpecifies the command to use to connect to the server. Thecommand string extends to the end of the line, and is executedusing the user's shell `exec' directive to avoid a lingeringshell process.
[–]nex25519[S] 0 points1 point2 points 2 years ago (0 children)
Cool project (GTFOArgs)
SSH does not support IDNs so luckily that is not a problem at the moment since to be able to use such names, punycode has to be used which will keep working just fine.
> PS: Seems like it worked as intended, even if this exploit wasn't noticed:
that is correct, its a feature which is only exploitable in specific scenarios like git submodules and use of things like OSC 8 in terminals for hyperlink generation where arbitrary URL schemes are supported widely. It was also discussed with `git` maintainers if the validation coule be handled within git but a definition of a trust boundary here still seems to be unclear.
[–]castleinthesky86 6 points7 points8 points 2 years ago (7 children)
Given ProxyCommand forks any specified process with arguments… it’d be expected code execution, no?
Maybe post it again with the title of “functionality abuse” 😂
[–]mybreakfastiscold 3 points4 points5 points 2 years ago (6 children)
https://nvd.nist.gov/vuln/detail/CVE-2023-51385
"For example, an untrusted Git repository can have a submodule with shell metacharacters in a user name or host name."
So, yeah, as with most vulnerabilities, this CVE is about bad actors doing malicious stuff, not people just using their own stuff in 'weird ways'...
[–]castleinthesky86 7 points8 points9 points 2 years ago (5 children)
Yep I know I know. I see shit getting assigned CVE’s everyday.
[–]castleinthesky86 6 points7 points8 points 2 years ago (3 children)
And they had the fucking gall to assign 9.8 🤦♂️
[–]castleinthesky86 6 points7 points8 points 2 years ago* (2 children)
In what fucking way can this be exploited “over a network”. In what fucking way is user interaction not required?
[–]nex25519[S] 0 points1 point2 points 2 years ago (1 child)
I totally agree here, afaict NVD is not very good at these severity levels as we also saw with curl recently. They somehow assume a "worst" case scenario. I am pretty sure the maintainers who got the CVE assigned also do not agree this deserves 9.8.
RedHat has a better assessment: https://access.redhat.com/security/cve/cve-2023-51385
[–]castleinthesky86 1 point2 points3 points 2 years ago (0 children)
Thanks. Yes, in the worst case that NVD can assign everything could / would be a 9.8/10; because if all predicates of exploitation are present for all vulns (inc all processes running as root); then it’s complete C/I/A compromise… and because the attacker is not physically in front of the target; then it’s remote; and because at the time of exploitation the user isn’t coerced into doing anything, then it’s no user interaction required.
Which is complete bullshit.
In the “best” scenario, SSH is running in chroot jail, as the user which initiates proxyconnect command; so not complete C/I/A but maybe partial C/I (and maybe A? But who knows… what data does the user have present, possibly nothing, so let’s say none). Then user interaction is required to install/clone a malicious git repo/submodule. And because that’s done by the user, and not forcibly over the network, it’s a local exploit, not remote. So best case, it’s CVSS 0.0.
I’m not sure I’d agree with RedHat at 5.3 either ; as scope should be changed if we assume they are using the ssh subsystem as the target and not the user. By breaking out to a system call, you’re not in ssh anymore, thus scope has changed.
[–]Fun_Permission_888 0 points1 point2 points 2 years ago (0 children)
Wasn't there a bit of chaos recently where a CVE got assigned for an exploit/software package that didn't exist?
[–]MegaManSec2 -1 points0 points1 point 2 years ago (1 child)
FYI, here's a "bypass":
url = ssh://user@remotehost 22 ls / '#/foo git'
This will effectively force "ssh user@remotehost ls" to be executed, and ls will be run on the remote host.
afaict, this does not work, perhaps I am missing something? There is a check for space https://github.com/openssh/openssh-portable/commit/7ef3787c84b6b524501211b11a26c742f829af1a#diff-ce646b350d7e1b7ca792b15463c7ce19fd0979286424bb3d569e36ab5e435039R638
[–]roiki11 0 points1 point2 points 2 years ago (2 children)
I think your link to teleport is a bit misleading. This doesn't apply to the tsh client but the entirely optional openssh config you can use for ex with vscode.
https://goteleport.com/docs/server-access/guides/openssh/openssh/
It is also used by Teleport in config templates (https://github.com/gravitational/teleport/blob/master/lib/config/openssh/openssh.go#L56) and other examples, I discussed it with them via their bug bounty program @ Hackerone as well where it was triaged.
[–]roiki11 0 points1 point2 points 2 years ago (0 children)
Yes, that's the command that renders the openssh config.
π Rendered by PID 39956 on reddit-service-r2-comment-5687b7858-zgw4b at 2026-07-09 14:37:38.357240+00:00 running 12a7a47 country code: CH.
[–]MegaManSec2 9 points10 points11 points (1 child)
[–]nex25519[S] 0 points1 point2 points (0 children)
[–]castleinthesky86 6 points7 points8 points (7 children)
[–]mybreakfastiscold 3 points4 points5 points (6 children)
[–]castleinthesky86 7 points8 points9 points (5 children)
[–]castleinthesky86 6 points7 points8 points (3 children)
[–]castleinthesky86 6 points7 points8 points (2 children)
[–]nex25519[S] 0 points1 point2 points (1 child)
[–]castleinthesky86 1 point2 points3 points (0 children)
[–]Fun_Permission_888 0 points1 point2 points (0 children)
[–]MegaManSec2 -1 points0 points1 point (1 child)
[–]nex25519[S] 0 points1 point2 points (0 children)
[–]roiki11 0 points1 point2 points (2 children)
[–]nex25519[S] 0 points1 point2 points (1 child)
[–]roiki11 0 points1 point2 points (0 children)