This was reported to the security team privately and determined it could be public. This issue is a public duplicate of that private issue, but can be used for the ongoing work.
A security scan of Drupal gives following error in drupal core file \docroot\.ht.router.php.
Affected Components
\docroot\.ht.router.php
Details
The File Inclusion vulnerability allows an attacker to include a file, usually exploiting a "dynamic file inclusion" mechanisms implemented in the target application. The vulnerability occurs due to the use of user-supplied input without proper validation.
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | interdiff_4_6.txt | 509 bytes | anmolgoyal74 |
| #6 | s171603-6.patch | 1.1 KB | anmolgoyal74 |
| #4 | s171603-15_0.patch | 511 bytes | greggles |
Comments
Comment #2
larowlanPlease provide steps to exploit, this is likely a false positive produced by an automated scanner
Comment #3
cilefen commented@rangasamytk Did you see the message reading "Security issues should not be reported here." when you created this issue?
Comment #4
gregglesAttaching a patch by mcdruid from a private security team issue.
He should get credit for the patch.
Comment #6
anmolgoyal74 commentedComment #8
cilefen commentedComment #9
rangasamytk commented@cilefen, mail also sent already and during post creation isn't shown information.
Comment #10
cilefen commented@rangasamytk The warning about security issues is the first text after the "Create Issue" title.
Comment #11
chi commentedAren't ".ht" files protected in Apache by default?
Comment #16
gregglesComment #17
smustgrave commentedThank you @greggles
I see all tests pass for 9.5.x and 10.1.x and seems like a good change.
Comment #20
alexpottCrediting people who created, reviewed and commented on the security issue.
Comment #21
alexpottCommitted and pushed 86bced910a to 10.1.x and 58819d7a5e to 10.0.x and 88cf76a010 to 9.5.x. Thanks!
There's in existing test coverage that the php cli server works as expected in the build tests.