CISA urges devs to weed out OS command injection vulnerabilities

Share:

​CISA and the FBI urged software companies on Wednesday to review their products and eliminate path OS command injection vulnerabilities before shipping.

The advisory was released in response to recent attacks that exploited multiple OS command injection security flaws (CVE-2024-20399, CVE-2024-3400, and CVE-2024-21887) to compromise Cisco, Palo Alto, and Ivanti network edge devices.

Velvet Ant, the Chinese state-sponsored threat actor that coordinated these attacks, deployed custom malware to gain persistence on hacked devices as part of a cyber espionage campaign.

“OS command injection vulnerabilities arise when manufacturers fail to properly validate and sanitize user input when constructing commands to execute on the underlying OS,” today’s joint advisory explains.

“Designing and developing software that trusts user input without proper validation or sanitization can allow threat actors to execute malicious commands, putting customers at risk.”

CISA advises developers to implement well-known mitigations to prevent OS command injection vulnerabilities at scale while designing and developing software products:

  • Use built-in library functions that separate commands from their arguments whenever possible instead of constructing raw strings fed into a general-purpose system command.
  • Use input parameterization to keep data separate from commands; validate and sanitize all user-supplied input.
  • Limit the parts of commands constructed by user input to only what is necessary.

Tech leaders should be actively involved in the software development process. They can do this by ensuring that the software uses functions that generate commands safely while preserving the command’s intended syntax and arguments.

Additionally, they should review threat models, use modern component libraries, conduct code reviews, and implement rigorous product testing to ensure the quality and security of their code throughout the development lifecycle.

 

“OS command injection vulnerabilities have long been preventable by clearly separating user input from the contents of a command. Despite this finding, OS command injection vulnerabilities—many of which result from CWE-78—are still a prevalent class of vulnerability,” CISA and the FBI added.

“CISA and FBI urge CEOs and other business leaders at technology manufacturers to request their technical leaders to analyze past occurrences of this class of defect and develop a plan to eliminate them in the future.”

OS command injection security bugs took the fifth spot in MITRE’s top 25 most dangerous software weaknesses, surpassed only by out-of-bounds write, cross-site scripting, SQL injection, and use-after-free flaws.

In May and March, two other “Secure by Design” alerts urged tech executives and software developers to weed out path traversal and SQL injection (SQLi) security vulnerabilities.

Leave a Comment

Your email address will not be published. Required fields are marked *

loader-image
London, GB
2:57 am, Jan 20, 2025
weather icon 3°C
L: 2° | H: 3°
overcast clouds
Humidity: 87 %
Pressure: 1019 mb
Wind: 3 mph E
Wind Gust: 0 mph
UV Index: 0
Precipitation: 0 mm
Clouds: 100%
Rain Chance: 0%
Visibility: 10 km
Sunrise: 7:54 am
Sunset: 4:28 pm
DailyHourly
Daily ForecastHourly Forecast
Today 9:00 pm
weather icon
2° | 3°°C 0 mm 0% 6 mph 87 % 1019 mb 0 mm/h
Tomorrow 9:00 pm
weather icon
2° | 6°°C 0 mm 0% 3 mph 95 % 1018 mb 0 mm/h
Wed Jan 22 9:00 pm
weather icon
4° | 5°°C 0.5 mm 50% 4 mph 95 % 1009 mb 0 mm/h
Thu Jan 23 9:00 pm
weather icon
2° | 8°°C 1 mm 100% 19 mph 91 % 1009 mb 0 mm/h
Fri Jan 24 9:00 pm
weather icon
4° | 11°°C 1 mm 100% 21 mph 91 % 1010 mb 0 mm/h
Today 3:00 am
weather icon
3° | 3°°C 0 mm 0% 2 mph 87 % 1019 mb 0 mm/h
Today 6:00 am
weather icon
3° | 4°°C 0 mm 0% 2 mph 82 % 1019 mb 0 mm/h
Today 9:00 am
weather icon
4° | 4°°C 0 mm 0% 3 mph 78 % 1019 mb 0 mm/h
Today 12:00 pm
weather icon
6° | 6°°C 0 mm 0% 6 mph 79 % 1019 mb 0 mm/h
Today 3:00 pm
weather icon
7° | 7°°C 0 mm 0% 6 mph 75 % 1018 mb 0 mm/h
Today 6:00 pm
weather icon
5° | 5°°C 0 mm 0% 4 mph 84 % 1018 mb 0 mm/h
Today 9:00 pm
weather icon
4° | 4°°C 0 mm 0% 4 mph 87 % 1018 mb 0 mm/h
Tomorrow 12:00 am
weather icon
3° | 3°°C 0 mm 0% 3 mph 90 % 1018 mb 0 mm/h
Name Price24H (%)
Bitcoin(BTC)
€99,109.58
-2.67%
Ethereum(ETH)
€3,164.33
-2.95%
XRP(XRP)
€3.00
-4.92%
Tether(USDT)
€0.97
-0.03%
Solana(SOL)
€229.16
-7.53%
Dogecoin(DOGE)
€0.349856
-11.67%
USDC(USDC)
€0.97
0.00%
Shiba Inu(SHIB)
€0.000019
-11.51%
Pepe(PEPE)
€0.000016
-16.97%
Peanut the Squirrel(PNUT)
€0.373491
-28.24%
Scroll to Top