You are not logged in. Your edit will be placed in a queue until it is peer reviewed.
We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.
Required fields*
-
3Why should a normal registered user upload PHP files? As developer you have FTP. And WordPress 3.9 is outdated and probably insecure. Use the Chrome Developer Tools and take a look at the code of the img and the console.user6090– user60902015-11-14 11:25:25 +00:00Commented Nov 14, 2015 at 11:25
-
Let's say that this is a pentest. So you say, that this is still possible to merge php with image, right?Insane– Insane2015-11-14 13:48:56 +00:00Commented Nov 14, 2015 at 13:48
-
1What do you mean with merge? If you mean steganography, you might want to read information about such things like CryptoPHP. Generally you can append any content to images but this is generally malicious and insecure. Webshells are often uploaded through insecure plugins. But you can not simply bypass the core mediagallery function of WordPress. It normally reprocesses the images and removes appended codes and so on. Sure, you can misuse EXIF and other headers. If there is no vulnerability like you mean on wpvulndb.com there might not be one.user6090– user60902015-11-14 14:47:20 +00:00Commented Nov 14, 2015 at 14:47
-
1But I do not see any valid reason why you want to do this. Pentesters use tools which also test for file upload vulnerabilities. And you may have to read the sourcecode of the plugin to find possible vulnerabilities.user6090– user60902015-11-14 14:50:12 +00:00Commented Nov 14, 2015 at 14:50
-
Yeah, just realized that there is a whole script that check's the uploaded code. I'm so stuck right now, cause I can get the admin account, but I can't do anything with it, cause permissions on theme editor/plugin editor are low and I can't edit plugin's/theme's files from the wp panel. The only 'permitted folder' is 'uploads', so I thought that I could somehow upload a PHP there and make it 'openable'. It's 3.9.2, clean, so it's totally insecure, but as we can see - permissions on files = win for the victim.Insane– Insane2015-11-14 15:23:19 +00:00Commented Nov 14, 2015 at 15:23
Add a comment
|
How to Edit
- Correct minor typos or mistakes
- Clarify meaning without changing it
- Add related resources or links
- Always respect the author’s intent
- Don’t use edits to reply to the author
How to Format
-
create code fences with backticks ` or tildes ~
```
like so
``` -
add language identifier to highlight code
```python
def function(foo):
print(foo)
``` - put returns between paragraphs
- for linebreak add 2 spaces at end
- _italic_ or **bold**
- quote by placing > at start of line
- to make links (use https whenever possible)
<https://example.com>[example](https://example.com)<a href="https://example.com">example</a>
How to Tag
A tag is a keyword or label that categorizes your question with other, similar questions. Choose one or more (up to 5) tags that will help answerers to find and interpret your question.
- complete the sentence: my question is about...
- use tags that describe things or concepts that are essential, not incidental to your question
- favor using existing popular tags
- read the descriptions that appear below the tag
If your question is primarily about a topic for which you can't find a tag:
- combine multiple words into single-words with hyphens (e.g. web-application), up to a maximum of 35 characters
- creating new tags is a privilege; if you can't yet create a tag you need, then post this question without it, then ask the community to create it for you