-
-
Notifications
You must be signed in to change notification settings - Fork 401
update file php-function-names-933150.data
#2684
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
This issue has been open 120 days with no activity. Remove the stale label or comment, or this will be closed in 14 days |
@theMiddleBlue @lifeforms Where do you think we can get such a list of "common PHP functions used in injections"? Is there some heuristic we can use? |
let's say that we can't get a "common function used in injections" from a public list, what we can do is think about what is needed for a code injection exploit:
source: https://www.php.net/manual/en/refs.basic.php.php I didn't include "fetching from remote" via PHP wrappers because we already block them with other rules. I think that if we manage to select functions that can fit in one or more of the above categories, we can have a good "common function used in injection" list. |
I would choose these from Misc. Functions:
|
|
|
File System Related Extensions:
|
|
BTW, why not add all function names? |
I don't know 😄 Can you take over and push this one to the finish line? 8000 |
Do you mean takeing functions which i choosed and update the list? |
Yes, exactly that. This list, and all depending ones in the group. Please. |
Ok, few questions:
|
What about PHP deserialization functions? We need to add those too. |
@GenialHacker Feel free to add them here in the comments. |
@GenialHacker Can you be more specific and suggest function names which you consider dangerous? Thanks. |
I meant that, to exploit PHP deserialization certain |
Never mind, the idea just came suddenly when I took a look at this issue and hadn't thought the implementation would be complicated. :) |
While I think the chosen functions make sense, is there any way to automate this? I'm worried that every time we need to add one new function we need to redo all the reasoning here... and the future versions of us will hate us for this decision. |
Hey @M4tteoP, did you have to look into this during the week? |
@dune73 nope :(, It's planned for the weekend |
Good. Please keep us posted on this. |
Closing as completed via #3273 |
Uh oh!
There was an error while loading. Please reload this page.
These must be addressed as a group:
php-function-names-933150.data
#2684php-function-names-933151.data
#2685Rule 933150
~40 words highly common to PHP injection payloads and extremely rare in natural language or other contexts.
These words are detected as a match directly using @pmFromFile.
The text was updated successfully, but these errors were encountered: