Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • A aem-hacker
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 12
    • Issues 12
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 2
    • Merge requests 2
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • 0ang3el
  • aem-hacker
  • Merge requests
  • !6

More details for POSTServlet docs

  • Review changes

  • Download
  • Email patches
  • Plain diff
Closed Administrator requested to merge github/fork/mgbelisle/expand-post-servelet-docs into master May 11, 2019
  • Overview 5
  • Commits 1
  • Pipelines 0
  • Changes 1

Created by: mgbelisle

Hi @0ang3el thanks for making this tool, it's easy to use and the code looks very clean. I'm a security researcher, new to AEM, and I'm trying to figure out how to exploit an unprotected POSTServlet endpoint.

$ curl -F ':operation=nop' 'https://somedomain.com/content/dam.json;%0Aa.png'
...
                <td><div id="Message">Null Operation Status: 200</div></td>
...

Can you explain a few more details about how that would be exploitable? I understand the RCE steps just fine but I'm having trouble with doing an actual upload. I have been reading over the sling docs here and trying several different paths but cannot get a 200 on anything other than a nop.

$ curl -Fhtml.jsp=@/tmp/html.jsp 'https://somedomain.com/content/dam/rcetype;%0Aa.png'
...
                <td><div id="Status">500</div></td>
...
                <td><div id="Message">org.apache.sling.api.SlingException: Exception during response processing.</div></td>
...

Any extra info is appreciated, and I can add some more details to the docs in the spirit of contribution.

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: github/fork/mgbelisle/expand-post-servelet-docs